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 "SimpleFacetParameters" by naomidushay
Date Wed, 16 Feb 2011 02:20:22 GMT
Dear Wiki user,

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

The "SimpleFacetParameters" page has been changed by naomidushay.
The comment on this change is: further editing on facet.query.
http://wiki.apache.org/solr/SimpleFacetParameters?action=diff&rev1=54&rev2=55

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

  
  == facet.query : Arbitrary Query Faceting  ==
  
- This param allows you to specify an arbitrary query in the Lucene default syntax to generate
a facet count. By default faceting will automatically determine the unique terms for a "field"
and return a count for each term.  facet.query allows you to determine counts for arbitrary
terms or expressions.  
+ This param allows you to specify an arbitrary query in the Lucene default syntax to generate
a facet count. By default, faceting returns a count of the unique terms for a "field", while
facet.query allows you to determine counts for arbitrary terms or expressions.  
  
- This parameter can be specified multiple times to indicate that multiple queries should
be used as separate facet constraints.  It can be particularly useful for numeric range based
facets, or prefix based facets -- see example below (i.e. price:[* TO 500] and  price:[501
TO *]).
+ This parameter can be specified multiple times to indicate that multiple queries should
be used as separate facet constraints.  It can be particularly useful for numeric range based
facets, or prefix based facets -- see example below (i.e. {{{price:[* TO 500] and  price:[501
TO *]}}}).
  
- To specify facet queries not in the Lucene default syntax, prefix the facet query with the
name of the query notation. For example, to use the hypothetical myfunc query parser, send
parameter {{{facet.query={!myfunc}name~fred}}}
+ To specify facet queries not in the Lucene default query syntax, prefix the facet query
with the name of the query notation, a la [[LocalParams]]. For example, to use the hypothetical
myfunc query parser, send parameter {{{facet.query={!myfunc}name~fred}}}
  
  == Field Value Faceting Parameters ==
  

Mime
View raw message