To perform specific Mtas queries in Solr requests, the following parameter should be used.
Parameter | Value | Obligatory |
---|---|---|
mtas | true | yes |
See statistics, kwic, list, page, document, termvector, facet, group, index, heatmap, prefix and collection for more details and examples.
Regular queries
Besides from specific Mtas queries in Solr requests, also CQL or Simple can be used in regular queries by configuring the Mtas query parser in solrconfig.xml.
Example 1
Search for documents containing the word “de” with a query using CQL.
q={!mtas_cql+field%3D"text"+query%3D"[t%3D\"de\"]"}&fl=*&start=0&rows=0&wt=json&indent=true
"response":{"numFound":1664241,"start":0,"docs":[] }
Example 2
Search for documents containing the word “de” with a query using Simple.
q={!mtas_simple+field%3D"text"+query%3D"de"+prefix%3D"t"}&fl=*&start=0&rows=0&wt=json&indent=true
"response":{"numFound":1664241,"start":0,"docs":[] }
Example 3
Search for documents containing the word “de” with a filter query using CQL.
fq={!mtas_cql+field%3D"text"+query%3D"[t%3D\"de\"]"}&q=*%3A*&fl=*&start=0&rows=0&wt=json&indent=true
"response":{"numFound":1664241,"start":0,"docs":[] }