lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "FieldCollapsing" by YonikSeeley
Date Sun, 31 Oct 2010 14:11:20 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "FieldCollapsing" page has been changed by YonikSeeley.
The comment on this change is: add paging params.
http://wiki.apache.org/solr/FieldCollapsing?action=diff&rev1=24&rev2=25

--------------------------------------------------

  = Introduction =
  Field Collapsing and Result Grouping are different ways to think about the same Solr feature.
  
- Field Collapsing collapses a group of results with the same field value down to a single
(or fixed number) of entries.  For example, most search engines such as Google collapse on
site so only 1 or two entries are shown, along with a link to click to see more results from
that site.  Field collapsing can also be used to suppress duplicate documents. 
+ Field Collapsing collapses a group of results with the same field value down to a single
(or fixed number) of entries.  For example, most search engines such as Google collapse on
site so only one or two entries are shown, along with a link to click to see more results
from that site.  Field collapsing can also be used to suppress duplicate documents. 
  
- Result Grouping groups documents with a common field value into groups, returning the top
documents per group, and the top groups based on what documents are in the groups.  One example
is a search at BestBuy for a common term such as DVD, that shows the top 3 results for each
category ("TVs & Video","Movies","Computers", etc)
+ Result Grouping groups documents with a common field value into groups, returning the top
documents per group, and the top groups based on what documents are in the groups.  One example
is a search at Best Buy for a common term such as DVD, that shows the top 3 results for each
category ("TVs & Video","Movies","Computers", etc)
  
  = Quick Start =
  If you haven't already, get a recent nightly build of [[Solr4.0]], start the example server
and index the example data as shown in the [[http://lucene.apache.org/solr/tutorial.html|solr
tutorial]].
@@ -106, +106 @@

  ||group.func||[function query]||Group based on the unique values of a function query.||
  ||group.query||[query]||Return a single group of documents that also match the given query.||
  ||rows||[number]||The number of groups to return. Defaults to 10.||
+ ||start||[number]||The offset into the list of groups.||
  ||group.limit||[number]||The number of results (documents) to return for each group.  Defaults
to 1.||
+ ||group.offset||[number]||The offset into the document list of each group.||
  ||sort||[sortspec]||How to sort the groups relative to each other.  For example, {{{sort=popularity
desc}}} will cause the groups to be sorted by the popularity of the highest ranking (first)
document in each group.  Defaults to "score desc".||
  ||group.sort||[sortspec]||How to sort documents within a single group.  Defaults to the
same value as the {{{sort}}} parameter.||
  

Mime
View raw message