List Info

Thread: Getting a DocSet with a filter and filterList




Getting a DocSet with a filter and filterList
country flaguser name
United States
2007-10-23 23:27:03
Hi,

I'm working on a request handler pluging that needs to use a
DocSet filter
(for distance limiting) as well as a list of filter queries
to filter down a
search.  I'm trying to figure out how to best pass that to
the
SolrIndexSearcher.

There's a method that takes a DocSet filter, and method that
takes a
List<Query> filterList, but none that take both.  I
was thinking I could
convert the filterList to a DocSet and intersect it with the
filter, but the
method that does that well getDocSet(List<Query>
queries) is protected
access.

Any ideas?

Also, it looks that the getDocListC method, which takes both
filter and
filterList, actually uses both if it decides to use the
filterCache, but
only uses one of the two if it takes the else block.  Is
that by design?

Thanks,
Doug
-- 
View this message in context: http://www.nabble.co
m/Getting-a-DocSet-with-a-filter-and-filterList-tf4681959.ht
ml#a13378896
Sent from the Solr - Dev mailing list archive at
Nabble.com.


Re: Getting a DocSet with a filter and filterList
country flaguser name
United States
2007-10-23 23:59:58
Hi Doug,
I'm having the same kind of issue to filter the list of
documents through
their unique id keys and stumbled on the same getDocList
hurdle.
The closest to a solution might be using a
ConstantScoreQuery that wraps the
filter so everything turns into queries... I could not get
another opinion
on that solution though.
Cheers
Henrib


Doug Daniels wrote:
> 
> Hi,
> 
> I'm working on a request handler pluging that needs to
use a DocSet filter
> (for distance limiting) as well as a list of filter
queries to filter down
> a search.  I'm trying to figure out how to best pass
that to the
> SolrIndexSearcher.
> 
> There's a method that takes a DocSet filter, and method
that takes a
> List<Query> filterList, but none that take both. 
I was thinking I could
> convert the filterList to a DocSet and intersect it
with the filter, but
> the method that does that well
getDocSet(List<Query> queries) is protected
> access.
> 
> Any ideas?
> 
> Also, it looks that the getDocListC method, which takes
both filter and
> filterList, actually uses both if it decides to use the
filterCache, but
> only uses one of the two if it takes the else block. 
Is that by design?
> 
> Thanks,
> Doug
> 

-- 
View this message in context: http://www.nabble.co
m/Getting-a-DocSet-with-a-filter-and-filterList-tf4681959.ht
ml#a13379079
Sent from the Solr - Dev mailing list archive at
Nabble.com.


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )