You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sagar Chaturvedi <sa...@nectechnologies.in> on 2013/05/24 08:43:18 UTC

Fuzzy search in solr

Hi,

How to perform fuzzy search in solr? Which request handler is used for fuzzy search by default?

Regards,
Sagar



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only. 
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the
opinions of NEC or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------

Re: Fuzzy search in solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
Fuzzy query is invoked just like any other query:

.../select?q=alpha~1

-- Jack Krupansky

-----Original Message----- 
From: Sagar Chaturvedi
Sent: Sunday, May 26, 2013 11:27 PM
To: solr-user@lucene.apache.org
Subject: RE: Fuzzy search in solr

Thank you jack for the response.

>> Fuzzy search is the syntax for a term, not a handler. For example: 
>> alpha~1 will match terms that have an editing distance of 0 or 1 from 
>> "alpha".
So the search query string will be like -  /term?q= alpha~1

>> But, are you sure you really mean "fuzzy search", as opposed to, say, 
>> spellcheck?
Yes, I need to implement fuzzy search. Spell check matches exact string but 
fuzzy search is done for approximately matching strings. Please correct me 
if my understanding is wrong.

-----Original Message-----
From: Jack Krupansky [mailto:jack@basetechnology.com]
Sent: Friday, May 24, 2013 6:40 PM
To: solr-user@lucene.apache.org
Subject: Re: Fuzzy search in solr

Fuzzy search is the syntax for a term, not a handler. For example: alpha~1 
will match terms that have an editing distance of 0 or 1 from "alpha".

All of the search "handlers" support fuzzy search. Some query parsers, such 
as dismax, do not, but the standard Solr query parser and edismax query 
parser do.

But, are you sure you really mean "fuzzy search", as opposed to, say, 
spellcheck?

-- Jack Krupansky

-----Original Message-----
From: Sagar Chaturvedi
Sent: Friday, May 24, 2013 2:43 AM
To: solr-user@lucene.apache.org
Subject: Fuzzy search in solr

Hi,

How to perform fuzzy search in solr? Which request handler is used for fuzzy 
search by default?

Regards,
Sagar



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and 
intended for the named recipient(s) only.
It shall not attach any liability on the originator or NEC or its 
affiliates. Any views or opinions presented in this email are solely those 
of the author and may not necessarily reflect the opinions of NEC or its 
affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. .
-----------------------------------------------------------------------------------------------------------------------




DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect 
the
opinions of NEC or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail 
is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
----------------------------------------------------------------------------------------------------------------------- 


RE: Fuzzy search in solr

Posted by Sagar Chaturvedi <sa...@nectechnologies.in>.
Thank you jack for the response.

>> Fuzzy search is the syntax for a term, not a handler. For example: alpha~1 will match terms that have an editing distance of 0 or 1 from "alpha".
So the search query string will be like -  /term?q= alpha~1

>> But, are you sure you really mean "fuzzy search", as opposed to, say, spellcheck?
Yes, I need to implement fuzzy search. Spell check matches exact string but fuzzy search is done for approximately matching strings. Please correct me if my understanding is wrong.

-----Original Message-----
From: Jack Krupansky [mailto:jack@basetechnology.com] 
Sent: Friday, May 24, 2013 6:40 PM
To: solr-user@lucene.apache.org
Subject: Re: Fuzzy search in solr

Fuzzy search is the syntax for a term, not a handler. For example: alpha~1 will match terms that have an editing distance of 0 or 1 from "alpha".

All of the search "handlers" support fuzzy search. Some query parsers, such as dismax, do not, but the standard Solr query parser and edismax query parser do.

But, are you sure you really mean "fuzzy search", as opposed to, say, spellcheck?

-- Jack Krupansky

-----Original Message-----
From: Sagar Chaturvedi
Sent: Friday, May 24, 2013 2:43 AM
To: solr-user@lucene.apache.org
Subject: Fuzzy search in solr

Hi,

How to perform fuzzy search in solr? Which request handler is used for fuzzy search by default?

Regards,
Sagar



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or NEC or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NEC or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. .
----------------------------------------------------------------------------------------------------------------------- 




DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only. 
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the
opinions of NEC or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------

Re: Fuzzy search in solr

Posted by Jack Krupansky <ja...@basetechnology.com>.
Fuzzy search is the syntax for a term, not a handler. For example: alpha~1 
will match terms that have an editing distance of 0 or 1 from "alpha".

All of the search "handlers" support fuzzy search. Some query parsers, such 
as dismax, do not, but the standard Solr query parser and edismax query 
parser do.

But, are you sure you really mean "fuzzy search", as opposed to, say, 
spellcheck?

-- Jack Krupansky

-----Original Message----- 
From: Sagar Chaturvedi
Sent: Friday, May 24, 2013 2:43 AM
To: solr-user@lucene.apache.org
Subject: Fuzzy search in solr

Hi,

How to perform fuzzy search in solr? Which request handler is used for fuzzy 
search by default?

Regards,
Sagar



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NEC or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect 
the
opinions of NEC or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail 
is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------