lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
Subject Re: select where from query type in lucene
Date Fri, 18 Feb 2005 12:26:19 GMT
Miles Barr writes:
> On Fri, 2005-02-18 at 03:58 +0100, Miro Max wrote:
> > how can i search for content where type=document or
> > (type=document OR type=view).
> > actually i can do it with: "(type:document OR
> > type:entry) AND queryText" as QueryString.
> > but does exist any other better way to realize this?
> Another alternative is to put each type in it's own index and use a
> MultiSearcher to pull in the types you want.
If the change rate of the index and the number of commonly used
type combinations aren't too large, cached filters might be another 
Of couse the filter would have to be recreated whenever the index changes.
The advantage is, that you save searching for the types for each query
where the filter is reused while you can keep all documents within one 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message