lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: phonetic search
Date Mon, 02 Sep 2013 19:15:25 GMT
What you need to do is include one of the phonetic
filters in your analysis chain, see:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PhoneticFilterFactory
All you've done with the stemmer is make
things like (sorry, English examples are all I can do)
running, runner etc. be indexed and searched as "run",
not phonetic processing....

There are several variants, each uses a different
algorithms at the link above. Not sure what to tweak
for handling Brazilian Portuguese though...

Best
Erick


On Mon, Sep 2, 2013 at 1:41 PM, Sergio Stateri <stateri@gmail.com> wrote:

> Please,
>
> How can I make I phonetic search in Solr with portuguese (brazilian)
> language?
>
> I tryied including this field type:
>
>     <fieldType name="brazilianPhonetic" class="solr.TextField"
> sortMissingLast="true" omitNorms="true">
> <analyzer type="index">
> <tokenizer class="solr.StandardTokenizerFactory"/>
> <filter class="solr.BrazilianStemFilterFactory"/>
> </analyzer>
> </fieldType>
> ...
> <field name="descricaoRoteiroPhonetic" type="brazilianPhonetic"
> multiValued="true" indexed="true" required="true" stored="true"/>
>
>
> But this didn´t work. I have no idea about how to make a phonetic search.
> I´m using Solr 4.
>
>
>
> Thanks in advance,
> --
> Sergio Stateri Jr.
> stateri@gmail.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message