lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Gunn <kg...@csd.abdn.ac.uk>
Subject Re: Multiple queries
Date Sun, 30 Jun 2002 14:26:33 GMT
On Sun, 30 Jun 2002, Pradeep Kumar K wrote:

Can't you just make one query which does "name:pradeep age:22"


> 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:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message