|
1
2
|
#Configuration
|
|
3
4
5
|
To enable the use of the functionality from Mtas within Solr search requests, some adjustments have to be made within the solrconfig.xml: the provided Mtas searchComponent, queryParser and requestHandler have to be included.
**Mtas searchComponent**
|
|
6
|
|
|
7
|
The `mtas.solr.handler.component.MtasSolrSearchComponent` can be declared with
|
|
8
|
|
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
```console
<searchComponent name="mtas" class="mtas.solr.handler.component.MtasSolrSearchComponent"/>
```
and added to the select requestHandler by inserting the following within the
`<requestHandler/>` with name `"/select"`:
``` console
<arr name="last-components">
<str>mtas</str>
</arr>
```
This enables the handling of all Mtas specific arguments within a select request to a Solr core.
|
|
24
25
|
**Mtas queryParser**
|
|
26
|
The `mtas.solr.search.MtasSolrCQLQParserPlugin` has to be included to enable the use of [CQL queries](search_parser_cql.html):
|
|
27
28
29
30
31
|
```console
<queryParser name="mtas_cql" class="mtas.solr.search.MtasSolrCQLQParserPlugin"/>
```
|
|
32
|
The `mtas.solr.search.MtasSolrJoinQParserPlugin` has to be included to enable the use of [join queries](search_parser_join.html):
|
|
33
34
35
36
37
|
```console
<queryParser name="mtas_join" class="mtas.solr.search.MtasSolrJoinQParserPlugin"/>
```
|
|
38
39
|
**Mtas requestHandler**
|
|
40
41
42
43
44
|
Adding the `mtas.solr.handler.MtasRequestHandler` enables additional Mtas functionality that doesn't belong in the select requestHandler.
```console
<requestHandler name="/mtas" class="mtas.solr.handler.MtasRequestHandler" />
```
|
|
45
|
|