Re: Re: Phonetic search with Lucene 3.2

2011-11-09 Thread janwen
+original+", encoded="+encoded); } } After compiling and running this example program you will get an output like this: original=Phonetix, encoded=FNTK 2011-11-10 janwen | China website : http://www.qianpin.com/ 发件人: Paul Libbrecht 发送时间: 2011-11-09 18:38 主 题: Re: Phonetic se

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Peter Karich
well using embedded solr would be an option althought not recommended. or look into elasticsearch: http://www.elasticsearch.org/guide/reference/index-modules/analysis/phonetic-tokenfilter.html http://www.elasticsearch.org/guide/reference/java-api/client.html Regards, Peter. > Can I use Solr as

RE: Phonetic search with Lucene 3.2

2011-11-09 Thread Uwe Schindler
28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Felipe Carvalho [mailto:felipe.carva...@gmail.com] > Sent: Wednesday, November 09, 2011 2:12 PM > To: java-user@lucene.apache.org > Subject: Re: Phonetic search with Lucene 3.2 > &g

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Erik Hatcher
On Nov 9, 2011, at 05:11 , Felipe Carvalho wrote: > Can I use Solr as a lib, like Lucene? My company is not willing to install > a Solr server... =/ That's too bad. What's the rationale for that decision? A large number of big big companies are deploying on Solr quite happily. I just taught

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Paul Libbrecht
That uses Lucene 2.9.2 indeed. paul Le 9 nov. 2011 à 11:43, Felipe Carvalho a écrit : > Which version of Lucene are you using? I had tried it with Lucene 3.3 and > had some problems, did you have to do any customizations? > > On Wed, Nov 9, 2011 at 8:38 AM, Paul Libbrecht wrote: > >> We've b

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
Can I use Solr as a lib, like Lucene? My company is not willing to install a Solr server... =/ On Wed, Nov 9, 2011 at 9:35 AM, Erik Hatcher wrote: > Solr has, for a long while, included a PhoneticFilter that can leverage > several different algorithms. This was pulled down to Lucene, but only f

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Erik Hatcher
Solr has, for a long while, included a PhoneticFilter that can leverage several different algorithms. This was pulled down to Lucene, but only for trunk/4.0. Maybe use Solr instead?! ;) Erik On Nov 9, 2011, at 02:29 , Felipe Carvalho wrote: > Using PerFieldAnalyzerWrapper seems to

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
Which version of Lucene are you using? I had tried it with Lucene 3.3 and had some problems, did you have to do any customizations? On Wed, Nov 9, 2011 at 8:38 AM, Paul Libbrecht wrote: > We've been using >http://www.tangentum.biz/en/products/phonetix/ > which does double-metaphone. > Ma

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Paul Libbrecht
We've been using http://www.tangentum.biz/en/products/phonetix/ which does double-metaphone. Maybe that helps. paul Le 9 nov. 2011 à 11:29, Felipe Carvalho a écrit : > Using PerFieldAnalyzerWrapper seems to be working for what I need! > > On indexing: > >PerFieldAnalyzerWrappe

Re: Phonetic search with Lucene 3.2

2011-11-09 Thread Felipe Carvalho
Using PerFieldAnalyzerWrapper seems to be working for what I need! On indexing: PerFieldAnalyzerWrapper wrapper = new PerFieldAnalyzerWrapper(new StandardAnalyzer(Version.LUCENE_33)); wrapper.addAnalyzer("nome", new MetaphoneReplacementAnalyzer()); IndexWriterConfig indexW

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
On Nov 8, 2011, at 05:42 , Felipe Carvalho wrote: >> Yes, quite possible, including boosting on exact matches if you want. Use >> a BooleanQuery to wrap clauses parsed once with phonetic analysis, and once >> without, including fields at indexing time for both too of course. >> > > Would it be

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Paul Libbrecht
Felipe, I do not have a tutorial but what you are describing is what I have been doing in ActiveMath. I have a little paper for you if you want that explains how it goes there (http://www.hoplahup.net/paul_pubs/AccessRetrievalAM.html) and the software is open-source (http://www.activemath.org

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
On Tue, Nov 8, 2011 at 10:06 AM, Erik Hatcher wrote: > > On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > > > One other question: I'm looking at Lucene 3.4 javadocs ( > > http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't > find > > MetaphoneReplacementAnalyzer anywhere. Does

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
Felipe - Look at the other Lucene JARs available. lucene-analyzers, I think is where it is: Personally, I'd download Lucene 3.4 release from Apache and use the JARs from there. Erik On No

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Sorry, the last was a dumb question, just found org.apache.lucene:lucene-analyzers:3.3.0 on maven central repo Thanks a lot for the help! On Tue, Nov 8, 2011 at 10:16 AM, Felipe Carvalho wrote: > Thanks, Erik! > > I'm looking at lucene-all javadocs, and there are some interesting classes > (spec

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Thanks, Erik! I'm looking at lucene-all javadocs, and there are some interesting classes (specifically I'd like to use org.apache.lucene.analysis.br.BrazilianAnalyzer). I'm able to find lucene-core on http://search.maven.org/, but is there a lucene-all published on some maven repo? or should I get

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Erik Hatcher
On Nov 8, 2011, at 03:58 , Felipe Carvalho wrote: > One other question: I'm looking at Lucene 3.4 javadocs ( > http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't find > MetaphoneReplacementAnalyzer anywhere. Does any one know if this class has > been removed from lucene-core. T

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
One other question: I'm looking at Lucene 3.4 javadocs ( http://lucene.apache.org/java/3_4_0/api/core/index.html) but I can't find MetaphoneReplacementAnalyzer anywhere. Does any one know if this class has been removed from lucene-core. My Lucene In Action edition is from 2004, so I'm guessing thi

Re: Phonetic search with Lucene 3.2

2011-11-08 Thread Felipe Carvalho
Thanks for the reply, Paul! I got this example from Lucene In Action: public void testKoolKat(){ RAMDirectory directory = new RAMDirectory(); Analyzer analyzer = new MetaphoneReplacementAnalyzer(); IndexWriter writer = new IndexWriter(directory, analyzer, true); Document doc = ne

Re: Phonetic search with Lucene 3.2

2011-11-07 Thread Paul Libbrecht
Felipe, in Lucene in Action there's a little bit on that. Basically it's just about using the right analyzer. paul Le 8 nov. 2011 à 01:45, Felipe Carvalho a écrit : > Hello, > I'm using Lucene 3.2 on a phone book app and phonetic search is a > requirement. I've googled up "lucene phonetic sea

Phonetic search with Lucene 3.2

2011-11-07 Thread Felipe Carvalho
Hello, I'm using Lucene 3.2 on a phone book app and phonetic search is a requirement. I've googled up "lucene phonetic search" but could not find many references. I did find this article, but I'm not sure about how updated it is: http://tech.javayogi.com/hello-world-lucene.html I couldn't find