Use can use BooleanQuery for this (check the Javadoc on the site for method names), or if it's easier for you try using QueryParser.
Otis --- Pradeep Kumar K <[EMAIL PROTECTED]> wrote: > Hi > > How can I create a searcher which searcher for multiplequeries. > > Example > assume that I store indexes in ramdirectory named 'rdir' > > let my first query query1 = "name:pradeep"; > second query query2 = "age:22"; > Hits hits= indSe.search(the_quer); > > I know the following will return no of hits for the query > query1 > Hits hits = indSe.search(query1); > > But how can I get hits for a compination of queries query1 AND > query2. > > TIA > Pradeep > > > -------------------------------------------------------------- > Robosoft Technologies, Mangalore, India > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
