Navaa,
You need the query to be sent to the two fields. In dismax, this is easy.
Paul

On 12 février 2014 14:22:33 HNEC, Navaa <navnath.thomb...@xtremumsolutions.com> 
wrote:
>Hi,
>I am using solr for searching phoneticly equivalent string
>my schema contains...
><fieldType name="text_general_doubleMetaphone" class="solr.TextField"
>positionIncrementGap="100">
>               <analyzer type="index">
>                       <tokenizer class="solr.StandardTokenizerFactory" />
>                       <filter class="solr.PhoneticFilterFactory" 
> encoder="DoubleMetaphone"
>inject="true"/>
>                       <filter class="solr.LowerCaseFilterFactory"/> 
>               </analyzer>
>               <analyzer type="query">
>                       <tokenizer class="solr.StandardTokenizerFactory" />
>                       <filter class="solr.PhoneticFilterFactory" 
> encoder="DoubleMetaphone"
>inject="true"/>
>                       <filter class="solr.LowerCaseFilterFactory"/> 
>               </analyzer>
>     </fieldType>
>
>and fields are
>
><field name="fname" type="text_general" indexed="true" stored="true"
>required="false" />
><field name="fname_sound" type="text_general_doubleMetaphone"
>indexed="true"
>stored="true" required="false" />
>   <copyField source="fname" dest="fname_sound" />
>
>
>it works when i search stfn===> stephen, stephn 
>
>But I am expecting stephn=====> stephen like 
>How I will get this result. m I doing something wrong
>
>Thanks in advance
>
>
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/Searching-phonetic-by-DoubleMetaphone-soundex-encoder-tp4116885.html
>Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.

Reply via email to