lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: search keyword Fields +Text Field with BooleanQuery
Date Mon, 22 Jan 2007 19:26:59 GMT
On Monday 22 January 2007 17:19, Xue, Yijun wrote:

> I try a query "Secondname:Beckwith AND Firstname:Louise AND
> content:school"
> on Luke with WhitespaceAnalyzer, I can get hits, but nothing if I use
> StandardAnalyzer

You need to use the same analyzer for indexing and searching. For example, 
WhitespaceAnalyzer doesn't lowercase the words. Also see the FAQ:

http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-3558e5121806fb4fce80fc022d889484a9248b71

-- 
http://www.danielnaber.de

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