QueryParser vs. BooleanQuery

2008-09-04 Thread bogdan71
(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

Re: QueryParser vs. BooleanQuery

2008-09-04 Thread Ian Lea
assertEquals(12, Integer.parseInt(h.doc(0).get("ID"))); >} >catch(Exception exn) > { > fail("Eexception occurred."); >} >} > > Rewr

Re: QueryParser vs. BooleanQuery

2008-09-04 Thread 叶双明
Directory directory = > > FSDirectory.getDirectory(); > >recordSearcher = new IndexSearcher(directory); > > > >Hits h = recordSearcher.search(bq); > > > >assertEquals(1, h.length()); /