Suggestion for content searches

Features wanted...
Post Reply
highstream
Posts: 328
Joined: 10 Apr 2010 21:43

Suggestion for content searches

Post by highstream »

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

Post by admin »

highstream wrote:Suggestion: add "match whole word" to content search options
Yes, would be possible. Define "word", please. What are the delimiters?

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

Post by j_c_hallgren »

admin wrote:
highstream wrote:Suggestion: add "match whole word" to content search options
Yes, would be possible. Define "word", please. What are the delimiters?
My definition would be 'space' as the most common, and then typical punctuation as next, like period, comma, colon, etc.
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.

highstream
Posts: 328
Joined: 10 Apr 2010 21:43

Re: Suggestion for content searches

Post by highstream »

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

Post by admin »

I should add that "Whole Words" will not work together with wildcards, and will be much slower than the normal search.

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

Post by j_c_hallgren »

admin wrote:I should add that "Whole Words" will not work together with wildcards, and will be much slower than the normal search.
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.
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.

admin
Site Admin
Posts: 66361
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Suggestion for content searches

Post by admin »

Done. 8)

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

Post by j_c_hallgren »

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.

admin
Site Admin
Posts: 66361
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Suggestion for content searches

Post by admin »

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.
space and these: ()[]{},.;=+~-_'!§$%&#@:/\?*"|<>
and all ASCII < 32

BTW, you were right, it's not that much slower than the normal search. Depends on the input, of course.

highstream
Posts: 328
Joined: 10 Apr 2010 21:43

Re: Suggestion for content searches

Post by highstream »

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

Post by admin »

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.
If "Wildcards" is checked and the string actually contains wildcards, the "Whole words" option is internally ignored.

Post Reply