Re: Types of Queries

2013-03-29 Thread Vitaly Funstein
Something like this will work: BooleanQuery query = new BooleanQuery(); query.add(new MatchAllDocsQuery(), Occur.MUST); query.add(new BooleanClause(termQuery, Occur.MUST_NOT)); On Fri, Mar 29, 2013 at 1:06 PM, Paul Bell wrote: > Hi, > > I've done a few experiments in Lucene 4.2 wit

Types of Queries

2013-03-29 Thread Paul Bell
Hi, I've done a few experiments in Lucene 4.2 with several different query types: TermQuery TermRangeQuery NumericRangeQuery WildcardQuery PrefixQuery MatchAllDocsQuery I think I more or less understand their behavior. But I'm missing something obvious: how does one do "not equal" type queries?