and != AND?
http://lucene.apache.org/core/4_4_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#AND
It works for or rather than OR because that is the default. If you
had a doc with id="or" you'd find that too, I think.
It looks odd to be escaping the value when you are
Hi!
I have documents with two fields id and name. I create index with code:
Document doc = new Document();
doc.add(new TextField("id", id), Store.YES));
doc.add(new TextField("name", QueryParser.escape(name), Store.YES));
indexWriter.addDocument(doc);
When I try to search with query with code:
Que