Blame view

src/site/markdown/search_configuration.md 1.45 KB
Matthijs Brouwer authored
1
2
#Configuration
Matthijs Brouwer authored
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**
Matthijs Brouwer authored
6
Matthijs Brouwer authored
7
The `mtas.solr.handler.component.MtasSolrSearchComponent` can be declared with
Matthijs Brouwer authored
8
Matthijs Brouwer authored
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.
Matthijs Brouwer authored
24
25
**Mtas queryParser**
Matthijs Brouwer authored
26
The `mtas.solr.search.MtasSolrCQLQParserPlugin` has to be included to enable the use of [CQL queries](search_parser_cql.html):
Matthijs Brouwer authored
27
28
29
30
31

```console
<queryParser name="mtas_cql" class="mtas.solr.search.MtasSolrCQLQParserPlugin"/>
``` 
Matthijs Brouwer authored
32
The `mtas.solr.search.MtasSolrJoinQParserPlugin` has to be included to enable the use of [join queries](search_parser_join.html):
Matthijs Brouwer authored
33
34
35
36
37

```console
<queryParser name="mtas_join" class="mtas.solr.search.MtasSolrJoinQParserPlugin"/>
``` 
Matthijs Brouwer authored
38
39
**Mtas requestHandler**
Matthijs Brouwer authored
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" />
```
Matthijs Brouwer authored
45