Some typo out there in my example:  I mean the first 2 movies by angelina
jolie.  This is the correct example:

result 1:  <--  title match
score: 1.0
title_name: tom's story
actor: Angelina Jolie

result 2:  <--  title match
score: 0.95
title_name: tom green's store
actor: Angelina Jolie

result 3:  <-- actor match
actor 2: tommy jackson  -- score: 0.5
actor 1:  tim robin   -- score: 0.4
See all actors match "Tom"

result 4:   <-- title match
score: 0.333
title_name: atom theory
actor: kevin sheen



Here is the corresponding result if field collasping (result grouping) is
used:

group value: Anglelina Jolie  
          numFound:13
              
                id:1,
                title_name:tom's story
              
                id:2,
                title_name:tom green's store

group value: tommy jackson
          numFound:1              
                id: 201,
                title_name: ...              

group value: tim robin
          numFound:1              
                id: 202,
                title_name: ...

group value: kevin sheen
          numFound:1              
                id: 30,
                title_name:  atom theory
            
  
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-group-result-when-search-on-multiple-fields-tp2358441p2368512.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to