lucene at mikemccandless
May 30, 2011, 10:46 AM
Post #3 of 3
If you want to allow for any single character "change", you can use
Re: Lucene: is it possible to search with an error in one letter?
[In reply to]
FuzzyQuery. EG, pencil~1 allows for 1 character change, pencil~2
allows for 2.
Note that FuzzyQuery is very costly in 3.x, but is substantially (eg
factor of 100 times) faster in trunk / 4.0.
On Mon, May 30, 2011 at 1:33 PM, Otis Gospodnetic
<otis_gospodnetic [at] yahoo> wrote:
> Yes, penc?l should do it.
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
> ----- Original Message ----
>> From: boraldo <boraldo [at] mail>
>> To: general [at] lucene
>> Sent: Mon, May 30, 2011 8:08:54 AM
>> Subject: Lucene: is it possible to search with an error in one letter?
>> I have a document with text "pencil". I want to search it using query
>> "pencel". Or vica versa.
>> Is it possible ?
>> View this message in context:
>> Sent from the Lucene - General mailing list archive at Nabble.com.