Re: Suggestion words in FuzzyQuery

2013-01-08 Thread Michael McCandless
On Tue, Jan 8, 2013 at 11:53 AM, Dawid Weiss wrote: >> It'd be even better if it took context into account to get better >> corrections ... but we just don't have that API yet (patches >> welcome!!). > > Yeah... it's just asking for maximizing the probability of the > correction over the entire se

Re: Suggestion words in FuzzyQuery

2013-01-08 Thread Dawid Weiss
> It'd be even better if it took context into account to get better > corrections ... but we just don't have that API yet (patches > welcome!!). Yeah... it's just asking for maximizing the probability of the correction over the entire sequence, huh? :) Dawid -

Re: Suggestion words in FuzzyQuery

2013-01-08 Thread Michael McCandless
Unfortunately DirectSpellChecker operates only on one "term" at a time (where term = whatever tokens were indexed into that field). I agree it'd be wonderful to have an API that takes a whole query, tokenizes it, runs suggest on each word, and puts it back together into a simple "Did you mean?" I

Re: Suggestion words in FuzzyQuery

2013-01-08 Thread algebra
Thanks Michael, I would like to get the suggestion of terms and not just words, for example: addDoc(w,"Lucene in Action"); addDoc(w,"Lucene for Dummies"); addDoc(w,"Managing Gigabytes"); addDoc(w,"The Art of Computer Science"); main.printSuggests("lucina in",my_reader); public void printSuggest

Re: Suggestion words in FuzzyQuery

2013-01-07 Thread Michael McCandless
Hi, I think you missed my last response? You need Lucene 4.0. Mike McCandless http://blog.mikemccandless.com On Mon, Jan 7, 2013 at 6:25 PM, algebra wrote: > Hi Michael, > > What library and version I need install to use DirectSpellChecker class? > > =) > > > > -- > View this message in conte

Re: Suggestion words in FuzzyQuery

2013-01-07 Thread algebra
Hi Michael, What library and version I need install to use DirectSpellChecker class? =) -- View this message in context: http://lucene.472066.n3.nabble.com/Suggestion-words-in-FuzzyQuery-tp4031354p4031375.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

Re: Suggestion words in FuzzyQuery

2013-01-07 Thread Michael McCandless
I don't think there are ready code samples ... but the API is fairly straightforward ... try reading the javadocs? http://lucene.apache.org/core/4_0_0/suggest/org/apache/lucene/search/spell/DirectSpellChecker.html Basically you create it and then call one of its suggestSimilar methods. Note that

Re: Suggestion words in FuzzyQuery

2013-01-07 Thread algebra
Thanks Mike McCandless, but I would like know how works DirectSpellChecker, I'd like to see a complete example using DirectSpellchecker. Can somebody help me? -- View this message in context: http://lucene.472066.n3.nabble.com/Suggestion-words-in-FuzzyQuery-tp4031354p4031363.html Sent from

Re: Suggestion words in FuzzyQuery

2013-01-07 Thread Michael McCandless
Use DirectSpellChecker? That's basically FuzzyQuery without matching the documents ... Mike McCandless http://blog.mikemccandless.com On Mon, Jan 7, 2013 at 5:12 PM, algebra wrote: > Somebody know how get suggestion words using FuzzyQuery class? > > > > -- > View this message in context: > ht