Directory directory =
> > FSDirectory.getDirectory();
> >recordSearcher = new IndexSearcher(directory);
> >
> >Hits h = recordSearcher.search(bq);
> >
> >assertEquals(1, h.length()); /
assertEquals(12, Integer.parseInt(h.doc(0).get("ID")));
>}
>catch(Exception exn)
> {
> fail("Eexception occurred.");
>}
>}
>
> Rewr
(Exception exn)
{
fail("Eexception occurred.");
}
}
Rewriting the BooleanQuery and taking toString() yields the same String
given to QueryParser.parse() in the first test. I am using Lucene 2.3.0. Can
somebody