search_query.md 1.21 KB

Query

Mtas can be used in both regular and specific mtas queries.

Regular queries

By configuring the mtas query parser in solrconfig.xml, cql can be used in regular queries.

Example 1

Search for documents containing the word "de" with a query.

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 filter query.

Request and response

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":[]
  }

Mtas queries

To perform specific mtas queries, the following parameter should be used.

Parameter Value Obligatory
mtas true yes

See statistics, kwic/list, termvector, facet, group and prefix for more details and examples.