You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Si...@VWR.COM on 2002/08/28 20:40:32 UTC

Filtering

Hi All:

Is there any one who has written a filter for Lucene?

According to the FAQ there are two methods of achieving this
1. Search Query
                                                       
       in this approach, provide your custom filter    
      object to the when you call the search() method. 
      This filter will be called exactly once to       
      evaluate every document that resulted in non     
      zero score.                                      
                                                       


2. Selective Collection
                                                       
      in this approach you perform the regular search  
      and when you get back the hit list, collect only 
      those that matches your filtering criteria. In   
      this approach, your filter is called only for    
      hits that returned by the search method which    
      may be only a subset of the non zero matches     
      (useful when evaluating your search filter is    
      expensive).                                      
                                                       



Searching is done using JSP based site.
The index may change consistently.
The majority of searches that take place will need filtering.
There will be lots of hits.
Index is large.

1.Which would be more efficient (faster search) on a very large index?
2.Which is more maintanable?
3.Which is easier to code?
4.Are there any other ways of filtering that anyone else has come up with?

All opinions and comments would be appreciated.

Thanks

Sid


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Filtering

Posted by Peter Carlson <ca...@bookandhammer.com>.
What do you wan to the filtering to accomplish?

--Peter


On Wednesday, August 28, 2002, at 11:40 AM, Sid_Raisoni@VWR.COM wrote:

>
> Hi All:
>
> Is there any one who has written a filter for Lucene?
>
> According to the FAQ there are two methods of achieving this
> 1. Search Query
>
>        in this approach, provide your custom filter
>       object to the when you call the search() method.
>       This filter will be called exactly once to
>       evaluate every document that resulted in non
>       zero score.
>
>
>
> 2. Selective Collection
>
>       in this approach you perform the regular search
>       and when you get back the hit list, collect only
>       those that matches your filtering criteria. In
>       this approach, your filter is called only for
>       hits that returned by the search method which
>       may be only a subset of the non zero matches
>       (useful when evaluating your search filter is
>       expensive).
>
>
>
>
> Searching is done using JSP based site.
> The index may change consistently.
> The majority of searches that take place will need filtering.
> There will be lots of hits.
> Index is large.
>
> 1.Which would be more efficient (faster search) on a very large index?
> 2.Which is more maintanable?
> 3.Which is easier to code?
> 4.Are there any other ways of filtering that anyone else has come up 
> with?
>
> All opinions and comments would be appreciated.
>
> Thanks
>
> Sid
>
>
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>