Tag | Function Query
Home » Posts tagged "Function Query"
ApacheCon logoAhhh…. ApacheCon!   It’s that time again, and in one of America’s finest cities (Portland, Oregon).  Location and quality content, you can’t beat that.  If you’re active in the “big data”, search, and cloud worlds, you owe it to yourself and your employer to get to ApacheCon later this month.First let me highlight two related presentations immediately relevant to Solr users:Solr Query Parsing
Interpreting what the user meant and what they ideally would …
Result Grouping, also called Field Collapsing, has been committed to Solr! This functionality limits the number of documents for each “group”, usually defined by the unique values in a field (just like field faceting).You can think of it like faceted search, except instead of just getting a count, you get the top documents for that constraint or category. There are tons of potential use cases:
  • For web search, only show 1 or
Solr 1.4 contains a new feature that allows range queries or range filters over arbitrary functions. It’s implemented as a standard Solr QParser plugin, and thus easily available for use any place that accepts the standard Solr Query Syntax by specifying the frange query type. Here’s an example of a filter specifying the lower and upper bounds for a function:fq={!frange l=0 u=2.2}log(sum(user_ranking,editor_ranking))…The other interesting use for frange is to trade off memory
The ability to nest an arbitrary query type inside another query type is a useful feature that was quietly added to Solr some time ago, along with the support for query parser plugins to support different query types.I finally got around to fixing nested queries for the function query parser, and figured it was high time I documented nested queries, along with the LocalParams syntax that allows one to add metadata to a query parameter,