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"/> >