Suggestion for content searches
-
highstream
- Posts: 328
- Joined: 10 Apr 2010 21:43
Suggestion for content searches
Suggestion: add "match whole word" to content search options
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Suggestion for content searches
Yes, would be possible. Define "word", please. What are the delimiters?highstream wrote:Suggestion: add "match whole word" to content search options
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Suggestion for content searches
My definition would be 'space' as the most common, and then typical punctuation as next, like period, comma, colon, etc.admin wrote:Yes, would be possible. Define "word", please. What are the delimiters?highstream wrote:Suggestion: add "match whole word" to content search options
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
highstream
- Posts: 328
- Joined: 10 Apr 2010 21:43
Re: Suggestion for content searches
I was thinking of word as whatever single group of alphanumeric characters that is put in content. Of course, when one adds a space that complicates matters a bit. What led to my suggestion was a search for "rick." That combo occurs a lot and returned a lot of results and took a long time, but would not have as a single separate group.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Suggestion for content searches
I should add that "Whole Words" will not work together with wildcards, and will be much slower than the normal search.
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Suggestion for content searches
Well, I'm not doing the coding but don't see why it would be that much slower as you'd still do the same search for string and then just check the byte prior to and after the found string for any delimiter...which, BTW, would also need to include typical doucument separators, like LF or CR.admin wrote:I should add that "Whole Words" will not work together with wildcards, and will be much slower than the normal search.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Suggestion for content searches
Just curious...since it didn't say in Change Log...what is the definition of what makes it a word? That is, exactly what delimiters do you check for? It might be good to document this in Log.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Suggestion for content searches
space and these: ()[]{},.;=+~-_'!§$%&#@:/\?*"|<>j_c_hallgren wrote:Just curious...since it didn't say in Change Log...what is the definition of what makes it a word? That is, exactly what delimiters do you check for? It might be good to document this in Log.
and all ASCII < 32
BTW, you were right, it's not that much slower than the normal search. Depends on the input, of course.
FAQ | XY News RSS | XY X
-
highstream
- Posts: 328
- Joined: 10 Apr 2010 21:43
Re: Suggestion for content searches
Thanks! Works well with whole word. Please explain how the wildcard choice works. I note that it greys out, but doesn't remove the check from, the whole word choice.
-
admin
- Site Admin
- Posts: 66361
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Suggestion for content searches
If "Wildcards" is checked and the string actually contains wildcards, the "Whole words" option is internally ignored.highstream wrote:Thanks! Works well with whole word. Please explain how the wildcard choice works. I note that it greys out, but doesn't remove the check from, the whole word choice.
FAQ | XY News RSS | XY X
XYplorer Beta Club