|
1
2
3
4
5
6
7
8
|
#Version
Mtas provides a method to display information about `artifactId`, `groupId`, `version` and `timestamp` from the build.
To include this information, in Solr requests, besides the parameter to enable the [Mtas query component](search_component.html), the following parameter should be provided.
| Parameter | Value | Obligatory |
|-----------------------|--------|-------------|
|
|
16
17
18
19
20
21
22
23
24
25
|
**Request and response**
`q=*:*&rows=0&wt=json&mtas=true&mtas.version=true`
```json
"mtas":{
"version":{
"groupId":"org.textexploration.mtas",
"artifactId":"mtas",
|
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
"version":"7.3.1.2-SNAPSHOT",
"timestamp":"2018-06-16 12:34"}}
```
### Sharding
Sharding is supported, build information from the shards is automatically included.
**Example**
Inlcude build information from shards
**Request and response**
`q=*:*&rows=0&wt=json&mtas=true&mtas.version=true&shards=localhost:8983/solr/core1,localhost:8983/solr/core2`
```json
"mtas":{
"version":{
"groupId":"org.textexploration.mtas",
"artifactId":"mtas",
"version":"7.3.1.2-SNAPSHOT",
"timestamp":"2018-06-16 12:34",
"shards":[{
"shard":"localhost:8983/solr/core1",
"version":{
"groupId":"org.textexploration.mtas",
"artifactId":"mtas",
"version":"7.3.1.2-SNAPSHOT",
"timestamp":"2018-06-16 12:34"}},
{
"shard":"localhost:8983/solr/core2",
"version":{
"groupId":"org.textexploration.mtas",
"artifactId":"mtas",
"version":"7.3.1.2-SNAPSHOT",
"timestamp":"2018-06-16 12:34"}}]}}
|