Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Lucene: is it possible to search with an error in one letter?

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


boraldo at mail

May 30, 2011, 5:08 AM

Post #1 of 3 (233 views)
Permalink
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: http://lucene.472066.n3.nabble.com/Lucene-is-it-possible-to-search-with-an-error-in-one-letter-tp3001723p3001723.html
Sent from the Lucene - General mailing list archive at Nabble.com.


otis_gospodnetic at yahoo

May 30, 2011, 10:33 AM

Post #2 of 3 (225 views)
Permalink
Re: Lucene: is it possible to search with an error in one letter? [In reply to]

Hi,

Yes, penc?l should do it.

Otis
---
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:
>http://lucene.472066.n3.nabble.com/Lucene-is-it-possible-to-search-with-an-error-in-one-letter-tp3001723p3001723.html
>
> Sent from the Lucene - General mailing list archive at Nabble.com.
>


lucene at mikemccandless

May 30, 2011, 10:46 AM

Post #3 of 3 (223 views)
Permalink
Re: Lucene: is it possible to search with an error in one letter? [In reply to]

If you want to allow for any single character "change", you can use
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.

Mike

http://blog.mikemccandless.com

On Mon, May 30, 2011 at 1:33 PM, Otis Gospodnetic
<otis_gospodnetic [at] yahoo> wrote:
> Hi,
>
> Yes, penc?l should do it.
>
> Otis
> ---
> 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:
>>http://lucene.472066.n3.nabble.com/Lucene-is-it-possible-to-search-with-an-error-in-one-letter-tp3001723p3001723.html
>>
>> Sent  from the Lucene - General mailing list archive at Nabble.com.
>>
>

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.