lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Problem with spaces in untokenized field using QueryParser
Date Sat, 06 Dec 2008 13:30:41 GMT
On Samstag, 6. Dezember 2008, chaiguy1337 wrote:

> tag:"my tag"

The QueryParser will create a phrase query from this, but for untokenized 
fields you can only search with a TermQuery, i.e. something like this: 
new TermQuery(new Term("tag", "my tag"))

Regards
 Daniel

-- 
http://www.danielnaber.de

Mime
View raw message