lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <karl.wet...@gmail.com>
Subject Re: Double Quotes and TermQuery
Date Tue, 13 Feb 2007 18:54:38 GMT

13 feb 2007 kl. 19.47 skrev Rajesh parab:

> I am not using QueryParser in my application and
> constructing queries (TermQuery, RangeQuery,
> BooleanQuery, etc.) explicitly. But, it looks like
> double quotes are not working with TermQuery.
>
> For example:
> query = new TermQuery(new Term("location", "\"san
> mateo\""))
>
> Any help/pointers will be much appreciated.

Is it perhaps PhraseQuery or SpanNearQuery you are looking for?

-- 
karl

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