Observe the following search results. The echoParams
parameter is set to explicit
(defined in solrconfig.xml
) so that the search parameters are seen here. This example is using the default lucene
query parser. The dismax
query parser is more typical, but it has no bearing on these examples. The query parameter q
is *:*
, which matches all documents. In this case, the index only has releases, so there is no need to apply filters. Filter queries are used in conjunction with faceting a fair amount, so be sure you are familiar with them; see Chapter 5, Searching. To keep this example brief, we set rows
to 2
. Sometimes when using faceting, you only want the facet information and not the main search, so you would set rows
to 0
.
{"responseHeader":{ "status":0, "QTime":3, "params":{ "facet":"true", "f.r_official.facet.method":"enum", "f.r_official.facet.missing":"true", "facet.field":"r_official", "fq":"type:Release", "fl":"r_name...