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:04:42 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: clarifying explanation of facet.query.
http://wiki.apache.org/solr/SimpleFacetParameters?action=diff&rev1=52&rev2=53

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

  
  == 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 the terms or expressions
you want to see a count of, you would normally specify a number of facet.querys to do anything
useful. It can be particularly useful for numeric range based facets, or prefix based facets.
+ 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 parameter can be specified multiple times to indicate that multiple queries should
be used as separate facet constraints.
+ 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 use facet queries in a syntax other than the 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 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}}}
  
  == Field Value Faceting Parameters ==
  

Mime
View raw message