lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Phonetic search with Lucene 3.2
Date Tue, 08 Nov 2011 12:25:20 GMT
Felipe -

Look at the other Lucene JARs available.  lucene-analyzers, I think is where it is:

   <http://search.maven.org/#search|ga|1|g%3A%22org.apache.lucene%22%20AND%20v%3A%223.4.0%22>

Personally, I'd download Lucene 3.4 release from Apache and use the JARs from there.

	Erik


On Nov 8, 2011, at 04:16 , Felipe Carvalho wrote:

> 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 those contrib classes out of
> some other dependency?
> 
> Thanks!
> 
> On Tue, Nov 8, 2011 at 10:06 AM, Erik Hatcher <erik.hatcher@gmail.com>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 any one know if this class
>> has
>>> been removed from lucene-core.
>> 
>> That class is in Lucene in Action's companion code, not Lucene itself.
>> Download it from http://www.manning.com/lucene
>> 
>>> My Lucene In Action edition is from 2004, so I'm guessing things kinda
>>> changed since then.
>> 
>> There's a second edition out now, well worth getting if I do say so myself
>> :)  (I've learned a lot from reading and re-reading it myself, to be honest
>> - thanks MikeM!)
>> 
>>>> Now suppose my document had a particular field I don't want to be
>>>> metaphones one the search, for instance, "exactName". For example,
>> suppose
>>>> I want to look for all documents which contents phonetically match "kool
>>>> kat" and exactName match "kat" but not "cat", generating an expression
>> like
>>>> this: "exactName:kat AND contents:kool kat".
>>>> 
>>>> Is it possible to do this? If so, how would I do it? Can I use specific
>>>> analyzers for each field?
>> 
>> 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.
>> 
>>       Erik
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message