lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Abraham <george.abraham.li...@gmail.com>
Subject Re: querying multiple fields
Date Wed, 22 Jun 2005 18:02:04 GMT
Erik,
That worked like a charm. It seems to me that reading up on the
different analyzers would solve a lot of questions in my mind.
Unfortunately your book has not arrived yet from Amazon. Aarrgh!

Thanks a ton!
George

> Your analyzer is eating the ImageExistsBit:1 because "1" returns no
> tokens through StopAnalyzer.  Here's a solution, adapted from the
> code that powers lucenebook.com.  Use this as your analyzer:
> 
>       PerFieldAnalyzerWrapper analyzer = new PerFieldAnalyzerWrapper
> (new StopAnalyzer());
>       analyzer.addAnalyzer("ImageExistsBit", new WhitespaceAnalyzer());
> 
> That should do the trick.
> 
>     Erik

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