Page 1 of 1
Numeric and characters sequence in searches
Posted: Tue Oct 25, 2005 4:03 pm
by sniec
Our company displays technical documents by form number such as 3806T. Our users often type in just the "3806" when looking for a document. No results found. But if they type in the "3806T", the document is located. What's the technical reason for the lack of results returned so that I can get these guys off my back?
Thanks.
Numeric and characters sequence in searches
Posted: Tue Oct 25, 2005 4:50 pm
by mark
"word" boundaries. The default word expression encompasses letters and numbers. So "3806T" is a word. Just as you wouldn't want to find "anderson" when searching for "and" it doesn't find "3806T" when searching for "3806".
But you can change or add word expressions. By adding
\alnum{1,50}
you could also search for just the numeric parts.
Numeric and characters sequence in searches
Posted: Wed Oct 26, 2005 9:34 am
by sniec
Here's what I have in the Word Definitions dialog box. (I added the last line as suggested.) No change - still can't pull up 3806T result when searching for 3806. How do I get it to return results for the numeric sequence? I have the search settings set for "Any Word Forms." When I search for "broad" I get "broader" "broadly" etc. I'm surprised the logic doesn't hold for numeric variants also.
[\alnum\x80-\xff]{1,70}
[\alnum\x80-\xff.]{1,70}>>[.&']=[\alnum\x80-\xff.]{1,70}
\alnum{1,20}
Numeric and characters sequence in searches
Posted: Wed Oct 26, 2005 4:03 pm
by mark
Doh! That should be \digit{1,20} not \alnum{1,20} . Sorry.