Suggestion for content searches
Posted: 25 Oct 2010 00:55
Suggestion: add "match whole word" to content search options
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Yes, would be possible. Define "word", please. What are the delimiters?highstream wrote:Suggestion: add "match whole word" to content search options
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
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.
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.
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.