mirror of https://github.com/apache/lucene.git
SOLR-12136: Document hl.q parameter, plus fixed minor typo in json faceting
This commit is contained in:
parent
89e337ed3d
commit
08686038e1
|
@ -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.
|
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 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`::
|
`hl.qparser`::
|
||||||
The query parser to use for the `hl.q` query.
|
The query parser to use for the `hl.q` query.
|
||||||
|
|
|
@ -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=*:*&
|
curl http://localhost:8983/solr/techproducts/query -d 'q=*:*&
|
||||||
json.facet={
|
json.facet={
|
||||||
categories:{ terms: {
|
categories:{
|
||||||
field : cat, // bucket documents based on the "cat" field
|
terms: {
|
||||||
limit : 5 // retrieve the top 5 buckets ranked by the number of docs in each bucket
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}'
|
}'
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue