lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: Seraching in Keyword Field
Date Thu, 30 Sep 2004 06:40:04 GMT
Bernhard Messer wrote 

> Hi,
> 
> try that query:
> 
> MyKeywordField:ABC
> 
Why should that help?
foo:(bla) and foo:bla create the same query:

java -classpath lucene-1.4.1/lucene-1.4.1.jar org.apache.lucene.queryParser.QueryParser 'foo:(bla)'
foo:bla
java -classpath lucene-1.4.1/lucene-1.4.1.jar org.apache.lucene.queryParser.QueryParser 'foo:bla'
foo:bla

As often the necessary step is to look at what query parser produced
using query.toString()

I guess SimpleAnalyzer lowercases the term and prevents entries 'ABC' from 
beeing found.
Using an apropriate PerFieldAnalyzerWrapper might help.

Morus

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


Mime
View raw message