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.
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
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
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
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
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
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