Questions tagged [elasticsearch-indices]

93 questions
1
vote
0 answers

Elasticsearch index design for eCommerce orders

I'm very new to Elasticsearch. I'm exploring the possibility to use Elasticsearch for searching eCommerce orders, products and related data. Right now we have around 15 million orders in our SQL Server database, and each of them has related data…
Henrik
  • 111
  • 1
  • 7
1
vote
0 answers

ClusterHealthResponse is not returning all indices in Elastic Search 6.8

The below code is not retuning the indices in keyset and coming as null.Can any one know how to correct it.I am trying to get all the indices from elastic search. ClusterHealthRequest request = new ClusterHealthRequest(); ClusterHealthResponse…
m b
  • 310
  • 1
  • 8
1
vote
1 answer

How deleting old indices after x days for multiple indices pattern elasticsearch?

I am using Elasticsearch for storing microservices logs. All microservices log in common patterns and by Fluentd logs collected and shipped to index name pattern like log-${serviceName}-%Y.%m.%d. I defined an index template for log-- and create an…
Ali Malek
  • 578
  • 8
  • 26
1
vote
1 answer

Elastic search multiple analyzers on index

I have an index with Name field . I want to use soundex analyzer and synonym analyzer on that field. I want to achieve both in a single index .Is it even possible ? Please help me experts out there Index 1 { "settings": { "index":…
1
vote
1 answer

TypeError: 'IndicesClient' object is not callable

es_res = es.indices(index=index, bytes='b',format='json') getting following error while calling indices api TypeError: 'IndicesClient' object is not callable Documentation Thank you.
1
vote
1 answer

How does the 'delete index' command work inside ES?

How does the 'delete index' command work inside ES? Are there any risks when using the 'delete index' command on a running ES cluster? will this command cost too much CPU or memory?
Vic
  • 99
  • 1
  • 7
1
vote
2 answers

How to query on multiple collections with Elasticsearch

Database: MongoDB, Server: Nodejs I have around 10 collections on my MongoDB database, Can I able to query on those collections at the same time with Elasticsearch and return appropriate results? examples queries send from users sort collections…
U.A
  • 2,991
  • 3
  • 24
  • 36
1
vote
2 answers

Use today date in label values in Prometheus alerting rules

I am new in Prometheus and alerting, and I couldn't fine my answer by looking at the documentation. I have some data that's coming to an elasticsearch cluster. Every day, the process creates a new index on elasticsearch and writes the data of that…
1
vote
1 answer

How to rename field names while Indexing a document in ElasticSearch

I have a JSON object with some of the fields like this:- { "desc": "this is test description", "name": "some random name", } While indexing this document, I would like to change the field names and my document after indexing should look…
Revanth
  • 87
  • 2
  • 13
1
vote
1 answer

Check writes happening to an old Elasticsearch index

Now due to the disk space issue on the Elasticsearch cluster, we need to clean up the unused indices, but we wanted to double sure that the old index is not used in any way. We used the…
Amit
  • 30,756
  • 6
  • 57
  • 88
1
vote
0 answers

How to Translate ElasticSearch Commands to NEST and Make Them Idempotent

I am using the ElasticSearch Rollover API and need to setup an index, rollover and alias as shown below: PUT /foo-000001 { "aliases": { "foo-write": {} }, "settings": { "index": { "number_of_shards": "1", …
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
1
vote
2 answers

What is the use of maintaining two aliases for a single Elastic Search Index

I have been exploring Elastic Search lately. I have been going through aliases. I see ES provides an API to create multiple aliases to a single index like below: { "actions" : [{ "add" : { "indices" : ["test1", "test2"], "alias" : "alias1" } }]…
Chan15
  • 929
  • 2
  • 9
  • 16
1
vote
1 answer

Create daily indices in elastic search

I would like to create daily elastic indices. I went through index template in elastic. However, those settings and mappings can be applied only to the new indices. In my case I need a daily index based on certain pattern. How to go?
ABGR
  • 4,631
  • 4
  • 27
  • 49
1
vote
1 answer

Elasticsearch delete a list of indices with the Javascript client failing with "No Living connections"

I am using the official Elasticsearch Javascript client with version 6.0 and trying to delete a list of indices. The code is: const client = new elasticsearch.Client({ "hosts": [ "https://the-es-host-here.us-west-2.es.amazonaws.com" …
Justin
  • 42,716
  • 77
  • 201
  • 296
1
vote
1 answer

Elasticsearch rename_pattern

I have indices i need to restore from snapshot, by using rename_pattern and rename_replacement. Can someone help me with the pattern and replacement? Let's say my input index name is: "abc_def_r22_0" and I want it restored as…