Wild char

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

Wild char

Post by gaurav.shetti »

Small clarification.

Recently one of our users compained that using adm* returns 8 results and using admin* returns 32 results.

As i understand, it should return 8 or less than 8 results. Is there any limit to the number of characters that can be extended or appended to the query term while searching with *. Perhaps a setting in Thunderstone.
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Wild char

Post by John »

Checking vortex.log should give a clue if one of the limits was reached. The most likely one causing a problem is qmaxsetwords or qmaxwords, which control how many terms in the index are expanded from the wildcard. It may also be a sign of a poor index expression. You can do the following to see the full list of terms starting with adm:

set indexaccess=1;
select * from IndexName where Word matches 'adm%';
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

Wild char

Post by gaurav.shetti »

I could see this used in some if conditions
<apicp qminwordlen 1>

<apicp suffixproc 0> or <apicp suffixproc 1>

<apicp minwordlen 4>


Will this affect the * (wild cards) things.
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Wild char

Post by John »

Those settings shouldn't affect the wildcard queries you have above.
John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

Wild char

Post by gaurav.shetti »

Is there any way, i can check what is the value set for qmaxsetwords or qmaxwords in texis.
Can you provide me the query for it ?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Wild char

Post by John »

John Turnbull
Thunderstone Software
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

Wild char

Post by gaurav.shetti »

Ok another question.. when i type adm* will it expand only english letters. like if i have some word like administración .. notice that 'o', will it be searched by that query adm*.
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Wild char

Post by John »

It should match based on your settings for index expression and word characters. In any case it should match, the question would be how much of the word is considered to be the match (administración or administraci).
John Turnbull
Thunderstone Software
Post Reply