best bet inclusive matching

kuchida
Posts: 3
Joined: Fri Aug 19, 2005 2:03 pm

best bet inclusive matching

Post by kuchida »

I have a best bet entry with the keywords "john doe" I would like to have the best bet suggested link appear when someone types is "john", "john doe", or "john doe <any word>? is this possible.

If so, how do I do this?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

best bet inclusive matching

Post by mark »

That's the default behavior except when their query is too specific "john doe <any word>" it won't match.
kuchida
Posts: 3
Joined: Fri Aug 19, 2005 2:03 pm

best bet inclusive matching

Post by kuchida »

is there any way to change the default behavior?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

best bet inclusive matching

Post by mark »

Basically the user's query is applied to the best bet keywords much as it would the page text. All of the query terms must occur in the keywords for a match.
legedza.henry
Posts: 142
Joined: Wed Jul 24, 2002 11:52 pm

best bet inclusive matching

Post by legedza.henry »

Hi there,

I'm a little confused re this as I am having a similar issue; I have entered the Best Bets keyword as "innovative community action network" within quote marks.

When I do a search though I only need to enter any one of those words and the best bets results comes up.

Instead I would like to limit the above so that it only shows the best bets links when those exact words are put in.

Regards
Henry
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

best bet inclusive matching

Post by mark »

Quotes in the keywords are irrelevant. It will match any time the user's query is any subset of the keywords. Imagine it like this
select bestbet where Keywords like $userquery

If you have webinator or texis (not an appliance) you could modify the search script to do "=" instead of "like". You'd also need to create a regular index on Keywords instead of a metamorph.