That's phone the filter is doing - transforming text into phonetic codes at
index time. And at query time as well to do the phonetic matching in the
query. The actual phonetic codes are stored in the index for the purposes
of query matching.
-- Jack Krupansky
On Fri, Jan 23, 2015 at 12:57 PM, Ami
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 wrote:
>
> Your app can use
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
Faceting returns indexed terms. So adding
&facet=on&facet.field=firstname_phonetic will get you back the phonetic codes
across an entire result set.
If you have a single string and want the phonetic codes back, you can use the
analysis request handler (document or field).
For a bit more detai
What are you actually trying to do on a business level? Because this
feels like an "XY Problem":
https://people.apache.org/~hossman/#xyproblem
Solr will generate MetaPhone during indexing, then during Query and
will do the matching. It's not clear why you actually want to get
those codes back to o
Thanks for response, I can see generated MetaPhone codes using Luke. I am
using solr only because it creates the phonetic code at time of indexing.
Otherwise for each record I need to call Metaphone algorithm in realtime to
get the codes and compare them. I think when luke can read and display it,
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:*
Hi,
Thanks for response, I can see generated MetaPhone codes using Luke. I am
us
On 1/22/2015 6:42 AM, Amit Jha wrote:
> 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:*
>
> class="solr.TextField" >
>
>
> maxCodeLength="4"/>
>
>