Page 1 of 2

best bets

Posted: Wed May 18, 2005 11:22 am
by KMandalia
We want the best bet feature to return results only when ALL words in keywords column are present in the query.

Right now best bet uses matches which is not something we can use because of the unique nature of our application. For example if we have keywords set to 'loan processing' then we want to show best bets only when the query is any of the following forms:

loan processing, processing loan, processing loans, loans processing,xyz loan abc processing, abc processing xyz loan .....................

can't uses matches (we don't want to return best bets when someone types in loan.It is too general term and it would not have any relevance to the query as such). Can't use eq (as you can see word order and proximity are not important, what is important is ALL WORDS). I am willing to repeat the description, title etc. by having only one keyword in keywords box. But we do need best bets to do something like what i mentioned above. I don't know how to accomplish this. Help is greatly appreciated.

best bets

Posted: Wed May 18, 2005 11:43 am
by John
In the query against the bestbet table use LIKEIN, and create a metamorph counter index on it.

best bets

Posted: Wed May 18, 2005 12:15 pm
by KMandalia
don't know how to do the second part (never done it). Could you please elaborate? Say i create index from command line then how to use the index in the query?

best bets

Posted: Wed May 18, 2005 12:34 pm
by mark

best bets

Posted: Wed May 18, 2005 2:09 pm
by KMandalia
what would be the name of the index?

best bets

Posted: Wed May 18, 2005 2:19 pm
by mark
Like any other index, you can call it whatever you want (within the naming conventions of sql indices).

best bets

Posted: Thu Jun 23, 2005 5:49 pm
by KMandalia
Pefect. One thing though... in the search settings the word forms is set to 'plural and possesives'. Using likein doesn't return results when someone has used plural/possesive of Keywords however the regular results are returned as expected..

Is this by nature of likein... what's the way around it?

Another thing I just noticed.. if I have a keyword called 'e-statement' and someone types in e-statement as query the best bets don't return any results. But if the keyword is estatement and someone types in estatement ... it works...this needs to be fixed in our case...

best bets

Posted: Wed Jul 06, 2005 2:37 pm
by KMandalia
Any idea whether the likein issues I mentioned are addressable or not...???

best bets

Posted: Wed Jul 06, 2005 3:43 pm
by John
Currently LIKEIN always runs with suffix processing
disabled. I did try the e-statement example and it
seemed to work for me.

best bets

Posted: Thu Jul 07, 2005 9:00 am
by KMandalia
1) When you say suffix processing disabled do you mean that e-statement=e-statement but e-statement!=e-statements? I need the suffix processing enabled, how can I do that?

2) It doesn't work for me. Can you tell me how you tried it?

Thank you.