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 Kaoul <ka...@gmail.com> on 2009/08/31 12:00:41 UTC
How to set similarity to catch more results ?
Hello,
I'm new to Solr and don't find in documentation how-to to set
similarity. I want it more flexible, as if I make a mistake with
letters, results are found like with google.
Thank you in advance.
Re: How to set similarity to catch more results ?
Posted by Aakash Dharmadhikari <aa...@gmail.com>.
hi Kaoul,
There are multiple ways that you can use to get the desired results.
- Stemming - this makes all forms of a word (e.g. Run, Running, Runner)
match to its stem or root word Run.
- Synonyms - this will take a list of synonyms from you and would match
veg = vegetarian and even tiger = lion if you map so.
- PhoneticFilterFactory - As the name suggests, it would do all your
soundex matches.
Apart from these FilterFactories, using a StandardTokenizer would match
"mickey mouse" to "mouse mickey", as you would expect from google.
There are still tens of other Filters and Tokenizers that you can use,
depending on your need. I would suggest you to go through
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters to get more
understanding of available options.
regards,
aakash
On Mon, Aug 31, 2009 at 3:33 PM, rajan chandi <ch...@gmail.com>wrote:
> There are fuzzy searches which might be able to help a bit.
> There could be more but I am just a newbie.
>
> Regards
> Rajan
>
> On Mon, Aug 31, 2009 at 3:30 PM, Kaoul <ka...@gmail.com> wrote:
>
> > Hello,
> >
> > I'm new to Solr and don't find in documentation how-to to set
> > similarity. I want it more flexible, as if I make a mistake with
> > letters, results are found like with google.
> >
> > Thank you in advance.
> >
>
Re: How to set similarity to catch more results ?
Posted by rajan chandi <ch...@gmail.com>.
There are fuzzy searches which might be able to help a bit.
There could be more but I am just a newbie.
Regards
Rajan
On Mon, Aug 31, 2009 at 3:30 PM, Kaoul <ka...@gmail.com> wrote:
> Hello,
>
> I'm new to Solr and don't find in documentation how-to to set
> similarity. I want it more flexible, as if I make a mistake with
> letters, results are found like with google.
>
> Thank you in advance.
>
Re: How to set similarity to catch more results ?
Posted by Kaoul <ka...@gmail.com>.
Thank you three for answers. After more research, I think I need to
use fuzzy search as I already know Levenshtein Distance and I don't
want to manage a list of synonyms manually. So "manually" spell check
isn't for me.
Thanks a lot.
On Tue, Sep 1, 2009 at 1:15 AM, Avlesh Singh<av...@gmail.com> wrote:
>>
>> I want it more flexible, as if I make a mistake with letters, results are
>> found like with google.
>>
> You are talking about spelling mistakes?
> http://wiki.apache.org/solr/SpellCheckComponent
>
> Cheers
> Avlesh
>
> On Mon, Aug 31, 2009 at 3:30 PM, Kaoul <ka...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm new to Solr and don't find in documentation how-to to set
>> similarity. I want it more flexible, as if I make a mistake with
>> letters, results are found like with google.
>>
>> Thank you in advance.
>>
>
Re: How to set similarity to catch more results ?
Posted by Avlesh Singh <av...@gmail.com>.
>
> I want it more flexible, as if I make a mistake with letters, results are
> found like with google.
>
You are talking about spelling mistakes?
http://wiki.apache.org/solr/SpellCheckComponent
Cheers
Avlesh
On Mon, Aug 31, 2009 at 3:30 PM, Kaoul <ka...@gmail.com> wrote:
> Hello,
>
> I'm new to Solr and don't find in documentation how-to to set
> similarity. I want it more flexible, as if I make a mistake with
> letters, results are found like with google.
>
> Thank you in advance.
>