Re: matching products with suggest feature

2009-12-15 Thread eddiec
message in context: http://old.nabble.com/matching-products-with-suggest-feature-tp15462672p26796228.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

Re: matching products with suggest feature

2008-02-14 Thread Shai Erera
If it adds the clauses as Occur.SHOULD, it means they should appear, but does not have to appear. Looking at suggestSimilar, it looks like it computes the edit_distance values of the requested word and the suggestions. If the score is lower than the minimum score, it may skip the word. Could you tr

Re: matching products with suggest feature

2008-02-14 Thread Cam Bazz
Hello Shai, Thats right, Speller is in the contrib.it is named spellchecker. Basically it is a special index that stores the words as ngrams. I looked at the code to see how it is querying the index and basically it makes ngrams and adds each ngram to a boolean query. Here is how it adds to the b

Re: matching products with suggest feature

2008-02-13 Thread Shai Erera
Is this Speller class a Lucene class? I didn't find it in the main code stream, maybe it's part of contrib? Anyway, still it depends how it is implemented (OR or AND). For example, someone indexed a document with the word "abcde" and the index keeps the ngrams "abc", "bcd" and "cde". Then somebody

Re: matching products with suggest feature

2008-02-13 Thread Cam Bazz
Hello Shai, The class that does the matching is Speller. It does not work query based but rather there is a method called - suggestSimilar(String word, int numSug); where the numSug is number of suggestions. The words are kept in the index as ngrams. For example abcde is kept as abc bcd cde. So th

Re: matching products with suggest feature

2008-02-13 Thread Shai Erera
What is the default Operator of your QueryParser? Is it AND_OPERATOR or OR_OPERATOR. If it's OR ... then it's strange. If it's AND, then once you add more terms than what exists, it won't find anything. On Feb 13, 2008 6:54 PM, Cam Bazz <[EMAIL PROTECTED]> wrote: > Hello; > > I am trying to make

matching products with suggest feature

2008-02-13 Thread Cam Bazz
Hello; I am trying to make a product matcher based on lucene's ngram based suggest. I did some changes so that instead of giving the speller a dictionary I feed it with a List. For example lets say I have "HP NC4400 EY605EA CORE 2 DUO T5600 1.83GHz/512MB/80GB/12.1'' NOTEBOOK" and I index it with