Numeric and characters sequence in searches

Post Reply
sniec
Posts: 4
Joined: Wed Sep 01, 2004 3:15 pm

Numeric and characters sequence in searches

Post 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.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Numeric and characters sequence in searches

Post 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.
sniec
Posts: 4
Joined: Wed Sep 01, 2004 3:15 pm

Numeric and characters sequence in searches

Post 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}
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Numeric and characters sequence in searches

Post by mark »

Doh! That should be \digit{1,20} not \alnum{1,20} . Sorry.
Post Reply