I am interested in this as well ... Im also having the issue of understanding 
if a result has been elevated by the QueryElevation component.  It should like 
SolrJ would need to know about some type of metadata contained within the docs 
but I haven't seen SolrJ dealing w/ payloads specifically yet.  

I also can't tell if these would require some feature request on those 
components or if it's something that is too custom that it would require 
writing new components.  

It sounds like retrieving a document should answer questions like ...

"did this document come from a facet query?"
"was this document elevated?"

Etc.  Maybe something the Debug component can handle if it can write payloads 
back to the results, etc.

- Jon

On Mar 15, 2010, at 7:56 AM, Saïd Radhouani wrote:

> I'm faceting with a two different query ranges while using addFacetQuery. I
> wonder wether it's possible using SolrJ to extract the result of each query
> range separately. Here's is an example:
> 
> addFacetQuery("price:[* TO 150]"); addFacetQuery("price:[151 TO 300]"); etc.
> addFacetQuery("length:[* TO 5]");addFacetQuery("length:[5 TO 10]"); etc.
> 
> When I use getFacetQuery, SolrJ gives me the responses of both query ranges
> (prices and lengths) mixed in the same list. I wonder wether it's possible
> to tell SolrJ to extract the response of a specific query range, i.e., tell
> it to extract the price-based response in a list and the length-based
> response in another list. It would be helpful to have something like
> getFacetQuery(field=price), getFacetQuery(field=length), etc.
> 
> Any ideas?
> 
> Thanks.

Reply via email to