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 <stat...@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.
> stat...@gmail.com
>

Reply via email to