Hi Erik:

On Jul 16, 2011, at 7:38 PM, Erik Hatcher wrote:

> I'm a bit confused by what you're asking for, but maybe it's as simple as 
> making a fq=facet_field:facet_value&fl=id request?  You'd have to do this for 
> each value in the field.

I don't want to query for a particular facet value, but rather have Solr do a 
grouping of facet values. I'm not sure about the appropriate nomenclature 
there. But, I have a multi-valued field named "process" that can have values 
such as "catalysis", "activation", "inhibition", "expression", "modification", 
"reaction" etc.  About ~100K documents are indexed where this field may have 
none or one or more of these processes.

When the client makes a request, I need to tell it that for the process 
"catalysis", refer to documents 1,5,6,8,32 etc., and for "modification", 
documents 43545,22,2134, etc.  When I simply facet on this field, I can see, 
for example, catalysis (23), modification(87) etc.  So, rather than the count, 
what would be very handy is the IDs of the documents comprising the count and 
then everything would be available as I need it.

I have a number of fields I need to treat this way,  and things work as 
expected when faceted. But, now I have a new requirement to satisfy and I'm 
looking for an efficient solution, preferably handled by Solr. :)   My app does 
not really know up front all of the possible values for a facet, and there are 
many, and I'd rather not issue numerous queries to get the document IDs.

Anyway, perhaps I'm latching on to my hoped for approach after having such a 
positive experience with faceting, and I should be looking at a different Solr 
capability?

Any insight is greatly appreciated.

Cheers,

Jeff

> On Jul 16, 2011, at 09:59 , Jeff Schmidt wrote:
> 
>> Hello:
>> 
>> I have a need for applying certain terms and filter queries to my index 
>> (producing the result set), and to create a response to clients that 
>> indicates for a number of fields (some are multi-valued), the document IDs 
>> with values for those fields. These fields are both indexed and stored. For 
>> existing operations, these fields are treated as facets and that works great.
>> 
>> I'd like to do this as efficiently as possible. It seems my problem will be 
>> solved if there is some way to get the document IDs associated with the 
>> facet counts.
>> 
>> I'm using SolrJ to talk to Solr in my application, and I don't see a way to 
>> do this. I'm using Sorl 3.3.
>> 
>> Many thanks!
>> 
>> Jeff
>> --
>> Jeff Schmidt
>> 535 Consulting
>> j...@535consulting.com
>> http://www.535consulting.com
>> (650) 423-1068
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 



--
Jeff Schmidt
535 Consulting
j...@535consulting.com
http://www.535consulting.com
(650) 423-1068









Reply via email to