Page 1 of 1

Suggestion for content searches

Posted: 25 Oct 2010 00:55
by highstream
Suggestion: add "match whole word" to content search options

Re: Suggestion for content searches

Posted: 25 Oct 2010 09:40
by admin
highstream wrote:Suggestion: add "match whole word" to content search options
Yes, would be possible. Define "word", please. What are the delimiters?

Re: Suggestion for content searches

Posted: 25 Oct 2010 16:02
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.

Re: Suggestion for content searches

Posted: 25 Oct 2010 19:16
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.

Re: Suggestion for content searches

Posted: 25 Oct 2010 19:49
by admin
I should add that "Whole Words" will not work together with wildcards, and will be much slower than the normal search.

Re: Suggestion for content searches

Posted: 25 Oct 2010 20:04
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.

Re: Suggestion for content searches

Posted: 25 Oct 2010 22:00
by admin
Done. 8)

Re: Suggestion for content searches

Posted: 26 Oct 2010 15:17
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.

Re: Suggestion for content searches

Posted: 26 Oct 2010 15:39
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.

Re: Suggestion for content searches

Posted: 26 Oct 2010 16:50
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.

Re: Suggestion for content searches

Posted: 26 Oct 2010 17:55
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.