dash's in words.

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

dash's in words.

Post by jgdoke »

This query returns Zero:
reflective tape 9299

This query returns many matches:
reflective tape 92-99

Example return:
distance of most PHOTOSWITCH sensors. The 92-39 reflector has a reflective index of 100. The 92-99 reflective tape has a reflective index of 77 meaning that it will...

The content has the dash in it and I was wondering two things, If there is a way to have 9299 return matches. And if there is a way to have this query return partial matches: reflective tape 9299.

"Reflective tape" returns many matches but add that third term (that does not exist) and zero matches.

thanks
John
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

dash's in words.

Post by John »

You might look at the "Ignore Characters" setting. It lists characters which should be removed from the text and query. These might be punctuation that is optional. An example might be - for part numbers, phone numbers, etc. Care should be taken not to remove important characters which you may want to delimit words.
John Turnbull
Thunderstone Software
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

dash's in words.

Post by jgdoke »

Does this affect the word definition? there is a dash in there

[\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: 5513
Joined: Tue Apr 25, 2000 6:56 pm

dash's in words.

Post by mark »

No. The dash inside [] is a range operator. \x80-\xff means \x80 through \xff
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

dash's in words.

Post by jgdoke »

I have used until now the ignore character for a dash, but need to change that, Sample query "plc 5"

Needs to find any of these plc5, plc-5 or plc 5.

Just ignoring character fixed only the first two and an large issue came up with the third style.

Any ideas??
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

dash's in words.

Post by mark »

Is this a controlled vocabulary? Or just any 2 random strings attached or not? If the vocabulary is controlled you might consider setting up a thesaurus to make "plc5" a synonym for "plc 5", etc.
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

dash's in words.

Post by jgdoke »

I have read all the documentation and cannot find out how to upload a thesaurus. figured it was like the XSL style sheet but do not find that to be true.
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

dash's in words.

Post by mark »

Post Reply