GET Api/elasticsearch/{searchQuery}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| searchQuery | string |
Required |
Body Parameters
None.
Response Information
Resource Description
clsSearchResultsElastic| Name | Description | Type | Additional information |
|---|---|---|---|
| took | integer |
None. |
|
| timed_out | boolean |
None. |
|
| _shards | _Shards |
None. |
|
| hits | Hits |
None. |
Response Formats
application/json, text/json
Sample:
{
"took": 1,
"timed_out": true,
"_shards": {
"total": 1,
"successful": 2,
"skipped": 3,
"failed": 4
},
"hits": {
"total": {
"value": 1,
"relation": "sample string 2"
},
"max_score": 1.1,
"hits": [
{
"_index": "sample string 1",
"_type": "sample string 2",
"_id": "sample string 3",
"_score": 4.1,
"_source": {
"Datum": "2025-12-05T18:10:17.6482458+01:00",
"Titel": "sample string 2",
"HTML": "sample string 3",
"UrlSlug": "sample string 4"
}
},
{
"_index": "sample string 1",
"_type": "sample string 2",
"_id": "sample string 3",
"_score": 4.1,
"_source": {
"Datum": "2025-12-05T18:10:17.6482458+01:00",
"Titel": "sample string 2",
"HTML": "sample string 3",
"UrlSlug": "sample string 4"
}
}
]
}
}
application/xml, text/xml
Sample:
<clsSearchResultsElastic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NF_API_V03.Models">
<_shards>
<failed>4</failed>
<skipped>3</skipped>
<successful>2</successful>
<total>1</total>
</_shards>
<hits>
<hits>
<Hit>
<_id>sample string 3</_id>
<_index>sample string 1</_index>
<_score>4.1</_score>
<_source>
<Datum>2025-12-05T18:10:17.6482458+01:00</Datum>
<HTML>sample string 3</HTML>
<Titel>sample string 2</Titel>
<UrlSlug>sample string 4</UrlSlug>
</_source>
<_type>sample string 2</_type>
</Hit>
<Hit>
<_id>sample string 3</_id>
<_index>sample string 1</_index>
<_score>4.1</_score>
<_source>
<Datum>2025-12-05T18:10:17.6482458+01:00</Datum>
<HTML>sample string 3</HTML>
<Titel>sample string 2</Titel>
<UrlSlug>sample string 4</UrlSlug>
</_source>
<_type>sample string 2</_type>
</Hit>
</hits>
<max_score>1.1</max_score>
<total>
<relation>sample string 2</relation>
<value>1</value>
</total>
</hits>
<timed_out>true</timed_out>
<took>1</took>
</clsSearchResultsElastic>