lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aaz"...@interoperate.com>
Subject != queries
Date Thu, 10 Feb 2005 18:02:23 GMT
Hi,
I have an index with field "documentNumber". There are 10 documents. One of the documents
has documentNumber A5058970

I want to return all matches where documentNumber != A505*. I should get 9 docs back.

I construct a query like

wq = WildcardQuery("documentNumber","a505*")

BooleanQuery bq = new BooleanQuery();
bq.addQuery(wq,false,true);

I always get no results for this type of query.

Ideas?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message