Questions tagged [elasticsearch-indices]

93 questions
2
votes
2 answers

Elasticsearch Multi-term aggregations to retrieve duplicates

In my Elasticsearch index I have duplicates docs where some "unique" fields have the same values. In order to fix them, I have to find them, so I'm using an aggregation query with min_doc_count=2. The problem is that I manage to run it only with one…
2
votes
1 answer

Removal of Index Types in ElasticSearch 7

Can someone elaborate on the reason why types are deprecated while creating index in elastic search version 7. I went through the doc link https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html mentioned by elastic…
Aditya
  • 950
  • 8
  • 37
2
votes
0 answers

Fetch index name from alias during ingest in elasticsearch ingest plugin java

I am using Elasticsearch v7.9 and need to get index name during ingest instead of alias name. Alias name = employees_prod and Index Name = employees POST /employees_prod/_doc?pipeline=test-pipeline&refresh { "name": "Quick Brown Fox", …
2
votes
0 answers

Elasticsearch: restore deleted index

I accidentally delete index in Elasticsearch. Unfortunatelly backup procedure was not setup :( After some hustle with ext4magic I managed to restore files related (I hope) to deleted index: _data/nodes/0/indices/3pbVajZhRUClZ0reezS1CQ/ So, now I…
Sergey Azarkevich
  • 2,641
  • 2
  • 22
  • 38
2
votes
2 answers

Wildcard alias for Elastic index

I've got an Elastic index transactions-internal and would like to point all the names like transactions-([a-z]+)-internal to this index using alias, so all the requests like GET /transactions-a-internal/_search GET…
2
votes
2 answers

Search multiple indices against some index pattern using NEST

I searched NEST docs but seems to cant find a proper answer for it. My question is how to search multiple indices against some index pattern using NEST? e.g if I have indices with following names in Elasticsearch DB media-2017-10, media-2018-03,…
Faisal Mq
  • 5,036
  • 4
  • 35
  • 39
2
votes
1 answer

Why are fields specified by type rather than index in Elasticsearch?

If multiple types in an Elasticsearch index have fields with the same name, those fields must have the same mapping that tries to create a "foobar" property as both string and long"... For example if you try to PUT the following index mapping: { …
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
2
votes
1 answer

Elastic search how to ignore a field in mapping

i am trying to create a mapping in elastic search to ignore one of the fields in my incoming data. i am following the documentation here https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-object-type.html#_enabled_3 looks like…
AbtPst
  • 7,778
  • 17
  • 91
  • 172
1
vote
1 answer

Elasticsearch: Reindexing doubled the size of an index

I just did a full reindex from a dump of a previous index but the newly created index is double the size of a previous one even before it indexed all the documents. What could be the reason? The previous index was 3.7gb and the new is 7gb. Update:…
sheharbano
  • 211
  • 2
  • 13
1
vote
1 answer

Elasticsearch - Adding case-insensitive exact match search to custom analyzer

I have an Index as follows: { "entities": { "mappings": { "properties": { "content": { "type": "text", "analyzer": "stop_delimiter_stemmer_analyzer" } } } } } And following is…
1
vote
0 answers

RollOver ElasticSearch index with its related Aliases

I've managed to Rollover my index, index_example-0001 using "opendistro.index_state_management.rollover_alias": "aliasName" however the other related aliases are NOT being rolled with it. I'm using OpenSearch and for the rollover process I'm using a…
Zarof
  • 107
  • 2
  • 11
1
vote
1 answer

ElasticSearch Replica Count Failure Modes

I'm researching the Elasticsearch feature to update the number of replica shards for an index. Doc: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html PUT /my-index-000001/_settings { "index" : { …
stan
  • 4,885
  • 5
  • 49
  • 72
1
vote
1 answer

Is there a way on Elasticsearch ingest-pipelines to use convert processor on multiple fields based on field name suffix?

We have an index with default pipeline who converts a field to boolean, like documented here https://www.elastic.co/guide/en/elasticsearch/reference/7.10/convert-processor.html We're using Elasticsearch v7.10. Is there a way to create a pipeline to…
Stefano Lazzaro
  • 387
  • 1
  • 4
  • 22
1
vote
0 answers

Elasticsearch is using more memories

I'm using Magento 2 eCommerce and we are having 400 sites(multi-website). Each website created a separate index. So overall I have 400 indices in elasticsearch and each has a store.size of 10kb-500kb. curl --silent -X GET…
1
vote
1 answer

Elasticsearch SEARCH-API ignores some existing indices when searching with wildcards

I want to retrieve information about all available indices in my elasticsearch db. For that I send a request to "/logs-cfsyslog-*/_search/?format=json". The body of the request is irrelevant for this problem. I'm simple…