SOLR-12136: Document hl.q parameter, plus fixed minor typo in json faceting

This commit is contained in:
Erick Erickson 2018-03-27 10:21:48 -07:00
parent 89e337ed3d
commit 08686038e1
2 changed files with 8 additions and 3 deletions

View File

@ -46,6 +46,8 @@ When not defined, the defaults defined for the `df` query parameter will be used
A query to use for highlighting. This parameter allows you to highlight different terms than those being used to retrieve documents.
+
When not defined, the query defined with the `q` parameter will the used.
+
When `hl.qparser` is not defined, the query parser defined with the `defType` query parameter will be used and terms will be analyzed using those rules. This behavior can be overridden by specifying a field, for example: `hl.q=field:term`.
`hl.qparser`::
The query parser to use for the `hl.q` query.

View File

@ -155,9 +155,12 @@ The terms facet (or field facet) buckets the domain based on the unique terms /
----
curl http://localhost:8983/solr/techproducts/query -d 'q=*:*&
json.facet={
categories:{ terms: {
categories:{
terms: {
field : cat, // bucket documents based on the "cat" field
limit : 5 // retrieve the top 5 buckets ranked by the number of docs in each bucket
}
}
}'
----