queries with a dot in them

jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

queries with a dot in them

Post by jgdoke »

I have users querying this
.dno
or this
*.dno

which is a file extension we provide. but the appliance is returning zero hits.

if they query dno they get many matching pages. if you look below you can see that the dot is in the text.

1. AS_PF700S_AnalogSpdRef.doc
Analog Speed Ref Drive Product PowerFlex 700S File Name for (AS) AS_PF700S_AnalogSpdRef.dno Date / Revision 11/15/2002 - 01 Attention: This document and related file(s) ...
http://www.ab.com/...pSets_PF700S/AS_PF ... SpdRef.pdf
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

queries with a dot in them

Post by John »

You can add to the Word Definition to index extensions as well, e.g. adding

>>[.]=[\alnum\x80-\xff.]{1,70}

to the Word Definition setting in all walk settings.
John Turnbull
Thunderstone Software
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

queries with a dot in them

Post by jgdoke »

this is my word definition. It seems like the dot is part of the defintion. [.&']

[\alnum\x80-\xff]{1,70}
[\alnum\x80-\xff.]{1,70}>>[.&']=[\alnum\x80-\xff.]{1,70}
[\alnum/\x80-\xff]{1,70}

the bottom was added to include the "/" as part of a word.
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

queries with a dot in them

Post by John »

The dot in the middle definition will pick up the dot in the middle of a word (e.g. domain name), but not just at the beginning.
John Turnbull
Thunderstone Software
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

queries with a dot in them

Post by jgdoke »

with this as my word definition how would I add your piece?
[\alnum\x80-\xff]{1,70}
[\alnum\x80-\xff.]{1,70}>>[.&']=[\alnum\x80-\xff.]{1,70}
[\alnum/\x80-\xff]{1,70}
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

queries with a dot in them

Post by mark »

Add John's expression to the bottom of the list.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

queries with a dot in them

Post by mark »

This should do it

[\alnum\x80-\xff.]{1,70}>>@=[\alnum\x80-\xff.]{1,70}
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

queries with a dot in them

Post by mark »

The - is a phrase word separator so that's considered a 2 word phrase. The second word has . but no @ so it won't match the expression above. You may want to add an expression to handle words with embedded ..

[\alnum\x80-\xff.]{2,70}

Or you could enable post processing.