Skip to content

Commit

Permalink
Merge pull request fergiemcdowall#285 from fergiemcdowall/eklem-patch-2
Browse files Browse the repository at this point in the history
Connection btw. indexing, value arrays and filters
  • Loading branch information
fergiemcdowall committed May 23, 2016
2 parents 221b53f + 4dacac3 commit e4eacf0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,18 @@ q.query = {
##Categories, Buckets and Filters

You can add categories and buckets onto any given search. You can use
the results to then create filters.
the results to then filter on either buckets or categories.

**Categories** display totals for each category in the resultset

**Buckets** display totals for ranges defined in the query

**Filters** are a way of limiting the resultset, using the categories/buckets that the same resultset makes available. Think of them as the query that must be called when you select buckets/categories.

To use categories or buckets, the docments you index must have at least one key/value pair where the value is an array of words, phrases or numbers. With categories you filter on one of the values in that array. With buckets you filter on a range values in that array .

### Simple categories

To use categories, you must define filters when you index the data
(TODO: describe indexing more here)

The following query will display a count for every single place in the
resultset

Expand Down

0 comments on commit e4eacf0

Please sign in to comment.