dilshan  
                
                  
                    May 21, 2013,  7:20am
                   
                  1 
               
             
            
              Hi,
In the current implementation of terms stats facethttp://www.elasticsearch.org/guide/reference/api/search/facets/terms-stats-facet/ ,
"term" : 4728,
Can we get more information about these terms? I'm looking for info like,
ids of matching docs in an array or so. 
some field value of matching docs in array or so. 
 
Is there a possibility of doing such a thing? (May be using a facet other
Thanks,
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .
             
            
              
            
           
          
            
              
                Ivan  
              
                  
                    May 22, 2013,  4:46am
                   
                  2 
               
             
            
              What you are probably looking for is field collapsing, which is a popular
  
  
    
  
  
    
    
      
        opened 05:02PM - 13 Jul 10 UTC 
      
        
          closed 02:08PM - 23 May 14 UTC 
        
      
     
    
    
   
 
  
    Ability to collapse on a field. For example, I want the most relevant result fro… m all different report types. Or similarly, the most recent result of each report type. Or maybe, I want to de-dup on headline. 
So, the sort order would dictate which one from the group is returned. Similar to what is discussed here:
http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/
From my understanding, it seems that in order for field collapsing to be efficient, the result set must be relatively small.
This is also referred to as "Combine" on some other search products. 
   
   
  
    
    
  
  
 
--
On Tue, May 21, 2013 at 12:20 AM, dilshan dilshan@calcey.com  wrote:
Hi,
In the current implementation of terms stats facethttp://www.elasticsearch.org/guide/reference/api/search/facets/terms-stats-facet/ ,
"term" : 4728,
Can we get more information about these terms? I'm looking for info like,
ids of matching docs in an array or so. 
some field value of matching docs in array or so. 
 
Is there a possibility of doing such a thing? (May be using a facet other
Thanks,
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .
 
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .
             
            
              
            
           
          
            
            
              What you can do is:
Run a query to generate facets 
Use multi-search to pull back the docs for each facet result 
 
clint
On 22 May 2013 06:46, Ivan Brusic ivan@brusic.com  wrote:
What you are probably looking for is field collapsing, which is a popularField Collapsing/Combining · Issue #256 · elastic/elasticsearch · GitHub 
--
On Tue, May 21, 2013 at 12:20 AM, dilshan dilshan@calcey.com  wrote:
Hi,
In the current implementation of terms stats facethttp://www.elasticsearch.org/guide/reference/api/search/facets/terms-stats-facet/ ,
"term" : 4728,
Can we get more information about these terms? I'm looking for info like,
ids of matching docs in an array or so. 
some field value of matching docs in array or so. 
 
Is there a possibility of doing such a thing? (May be using a facet other
Thanks,
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .
 
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .
 
--elasticsearch+unsubscribe@googlegroups.com .https://groups.google.com/groups/opt_out .