Can I extend solr to add phonetic codes at time of indexing as uuid field 
getting added. Because I want to preprocess the metaphone code because I 
calculate the code on runtime will give me some performance hit.

Rgds
AJ

> On Jan 23, 2015, at 5:37 PM, Jack Krupansky <jack.krupan...@gmail.com> wrote:
> 
> Your app can use the field analysis API (FieldAnalysisRequestHandler) to
> query Solr for what the resulting field values are for each filter in the
> analysis chain for a given input string. This is what the Solr Admin UI
> Analysis web page uses.
> 
> See:
> http://lucene.apache.org/solr/4_10_2/solr-core/org/apache/solr/handler/FieldAnalysisRequestHandler.html
> and in solrconfig.xml
> 
> 
> -- Jack Krupansky
> 
>> On Thu, Jan 22, 2015 at 8:42 AM, Amit Jha <shanuu....@gmail.com> wrote:
>> 
>> Hi,
>> 
>> I need to know how can I retrieve phonetic codes. Does solr provide it as
>> part of result? I need codes for record matching.
>> 
>> *following is schema fragment:*
>> 
>> <fieldtype name="phonetic" stored="true" indexed="true"
>> class="solr.TextField" >
>>      <analyzer type="index">
>>        <tokenizer class="solr.StandardTokenizerFactory"/>
>>        <filter class="solr.DoubleMetaphoneFilterFactory" inject="true"
>> maxCodeLength="4"/>
>>      </analyzer>
>>    </fieldtype>
>> 
>> <field name="firstname" type="text_general" indexed="true" stored="true"/>
>>  <field name="firstname_phonetic" type="phonetic" />
>>  <field name="lastname_phonetic" type="phonetic" />
>>  <field name="lastname" type="text_general" indexed="true" stored="true"/>
>> 
>> <copyField source="lastname" dest="lastname_phonetic"/>
>> <copyField source="firstname" dest="firstname_phonetic"/>
>> 

Reply via email to