Re: Retrieving Phonetic Code as result

2015-01-23 Thread Jack Krupansky
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

Re: Retrieving Phonetic Code as result

2015-01-23 Thread Amit Jha
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

Re: Retrieving Phonetic Code as result

2015-01-23 Thread Jack Krupansky
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

Re: Retrieving Phonetic Code as result

2015-01-22 Thread Erik Hatcher
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

Re: Retrieving Phonetic Code as result

2015-01-22 Thread Alexandre Rafalovitch
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

Re: Retrieving Phonetic Code as result

2015-01-22 Thread Amit Jha
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,

Re: Retrieving Phonetic Code as result

2015-01-22 Thread Amit Jha
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

Re: Retrieving Phonetic Code as result

2015-01-22 Thread Shawn Heisey
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"/> > >