Questions tagged [elasticsearch-template]
49 questions
0
votes
0 answers
Related to previous question, how can we format string escaped value?
Related to the previous question
How to make _source field dynamic ?
I was able to make search template _source field dynamic from the front-end, but due to invalid JSON format, I had to make it to string format. which is very hard to read. Is there…

Amit Chauhan
- 1,810
- 3
- 17
- 25
0
votes
1 answer
How to make _source field dynamic in elasticsearch search template?
While using search query in elastic search we define what fields we required in the response
"_source": ["name", "age"]
And while working with search templates we have to set _source fields value while inserting search template to ES…

Amit Chauhan
- 1,810
- 3
- 17
- 25
0
votes
1 answer
Spring Data Elasticsearch 2.1.16: how to get the sorting distance?
When you try to sort by distance in ES, the result usually contains the distance between matches and your search location:
"hits": {
"total": 3,
"max_score": null,
"hits": [
{
"_index": "circle",
"_type": "doc",
"_id": "7",
…

fall
- 984
- 11
- 33
0
votes
0 answers
Read data from latest index generated by ILM policy rollover
I have both Elasticsearch and Logstash in version 7.9.1-1 installed. Here's the policy I've created:
PUT _ilm/policy/test-policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_age": "2d"
…

Rfroes87
- 668
- 1
- 5
- 15
0
votes
1 answer
elasticsearct puttemplate. [mapper_parsing_exception] Root mapping definition has unsupported parameters
Make template base on https://github.com/vanthome/winston-elasticsearch/blob/master/index-template-mapping.json
{
"index_patterns": ["applogs-*"],
"settings": {
"number_of_shards": 1
},
"mappings": {
…

Alexander Popov
- 355
- 4
- 17
0
votes
1 answer
elasticsearch templates - create alias from index_pattern
I have an Elasticsearch template with the index pattern: prefix_*.
I also have multiple subsystems using this template and creating indexes like so: prefix_{subsystem_name}_{date} (replacing {subsystem_name} and {name} respectively)
I would like to…

GKman
- 503
- 1
- 5
- 19
0
votes
2 answers
Using a search template in an ingest pipeline
Can an ElasticSearch ingest pipeline use a search template as its script?
Specifically, I'd like to configure an ingest pipeline so that whenever data of a particular type come in, we query ElasticSearch for some related data, and populate a field…

rweiser
- 319
- 1
- 3
- 13
0
votes
1 answer
Delete field in doc using spring esTemplate
I'm trying to use ElasticsearchTemplate to update my es data,code is as follows:
UpdateRequest updateRequest = new UpdateRequest();
updateRequest.index(RiskViewDevStatistics.ESIndex);
…

zysaaa
- 1,777
- 2
- 8
- 19
0
votes
1 answer
Search Template in Elastic for filter and should
I am setting up a search template to get a list of bool filters within a bool should query. I have 3 fields on es [A,B,C]. The query should return back buckets of combination of these three fields. i should be able to give [a1,b1,c1] [a2,b2,c2] ...…

Praveen Sureshkumar
- 13
- 4
0
votes
2 answers
SearchTemplate with sorting and paging variables in Elasticsearch 6.6 and NEST 6.6
All,
I am trying to invoke a SearchTemplate defined in ES 6.6. The template has the paging variables( from and size) and an emails that I pass in an array. This also has sorting with a custom script logic. When I run this in kibana, I dont see…

dotnetdev_2009
- 722
- 1
- 11
- 28
0
votes
1 answer
Date Range Query using Search Template in Elasticsearch
We are facing issue while framing date range query using search template in Elasticsearch. It is working fine, with one conditional clause, but when multiple conditions are provided, we are getting following error.
{
"script": {
"lang":…

User1203
- 77
- 2
- 11
0
votes
1 answer
ElasticsearchTemplate retrieve big data sets
I am new to ElasticsearchTemplate. I want to get 1000 documents from Elasticsearch based on my query.
I have used QueryBuilder to create my query , and it is working perfectly.
I have gone through the following links , which states that it is…

Shivkumar Mallesappa
- 2,875
- 7
- 41
- 68
0
votes
1 answer
Modifying default elasticsearch template in logstash 5.x
I've set up an Elastic Stack 5.3 to aggregate logs from a bunch of servers, with Filebeat in each of the servers scraping the logs and sending them to a centralised Logstash, Elasticsearch and Kibana.
I've set up my Logstash configuration to extract…

Sonafets
- 497
- 1
- 4
- 13
0
votes
0 answers
How can I delete the entity from Elastic-search if i don't know exact index name?
I have indexes in elastic-search which are named as follows-
indexName-2017-01-25
indexName-2017-01-24
indexName-2017-01-23
...and so on
All above indexes has same 'type', lets say "indexType".
Now I want to delete a record with a given "id" which…

Vishal
- 666
- 1
- 8
- 30
0
votes
1 answer
Elasticsearch 5.0 Java client "ParsingException[no [query] registered for [query]]"
When executing the template query using the java client API, I'm getting this error:
Caused by: ParsingException[no [query] registered for [query]] ?.
Please find the template query below:
POST /_search/template/lookup_temp
{
"template":
…

banu
- 31
- 1
- 1
- 6