DocIDs from Facet Results

2014-07-07 Thread Sandeep Khanzode
Hi,

For Lucene 4.7.2 Facets, once we invoke FacetCollector and get the topNChildren 
into FacetResult, is there any mechanism that for a particular search result, I 
could get the docIds corresponding to any facet?

Say, I have a facet defined on Field1. Upon Search and FacetCollection, I get 
FVal1, FVal2, and FVal3 as top3Children along with their corresponding counts. 
Can I look into (a) Field1 and get all docIDs, or (b) FVal1 or FVal2 or FVal3 
and get their corresponding docIds?
 
---
Thanks n Regards,
Sandeep Ramesh Khanzode

Re: DocIDs from Facet Results

2014-07-07 Thread Jigar Shah
I think, you need to execute DrilDownQuery to get the docIds.


On Mon, Jul 7, 2014 at 4:40 PM, Sandeep Khanzode 
sandeep_khanz...@yahoo.com.invalid wrote:

 Hi,

 For Lucene 4.7.2 Facets, once we invoke FacetCollector and get the
 topNChildren into FacetResult, is there any mechanism that for a particular
 search result, I could get the docIds corresponding to any facet?

 Say, I have a facet defined on Field1. Upon Search and FacetCollection, I
 get FVal1, FVal2, and FVal3 as top3Children along with their corresponding
 counts. Can I look into (a) Field1 and get all docIDs, or (b) FVal1 or
 FVal2 or FVal3 and get their corresponding docIds?

 ---
 Thanks n Regards,
 Sandeep Ramesh Khanzode