Correction..
second time I used the following code to test. Then I got the above
IllegalStateException issue.
w = new QueryParser(null, new WhitespaceAnalyzer()).parse("*B:\"1 2\"*");
not the below one.
w = new QueryParser(null, new WhitespaceAnalyzer()).parse("*\**"B:1 2\"*");
Can someone poi
Hi all,
I have created lucene documents like below.
Document doc = new Document();
doc.add(new TextField("A", "1", Field.Store.YES));
doc.add(new StringField("B", "1 2 3", Field.Store.NO));
doc.add(new TextField("Publish Date", "2010", Field.Store.NO));
indexWriter.addDocument(doc);
doc = new Do