Questions tagged [elasticsearch-indices]
93 questions
22
votes
1 answer
Delete multiple indices in one Elasticsearch HTTP request (cURL)
I was using this curl command line to clean my indices:
curl -XDELETE http://example.com/my_index-*
But, now, I want to delete my_index-.*[.][0-3][0-9]:
to delete only my_index-YYYY.MM.dd
to keep my_index-YYYY.MM.dd-*
The relevant Elasticsearch…

oHo
- 51,447
- 27
- 165
- 200
14
votes
1 answer
Elastic Search total index size
I am trying to get the actual size of index (not the store) in elasticsearch. I used the indices API to get the stats.
GET doc/_stats
Is "indexing"-"index_total" actual index size?
"total": {
"docs": {
"count": 1000000,
…

Anish
- 1,920
- 11
- 28
- 48
12
votes
1 answer
mongoDB vs. elasticsearch query/aggregation performance comparison
This question is about choosing the type of database to run queries on for an application. Keeping other factors aside for the moment, and given that the choice is between mongodb and elastic, the key criterion is that the query should be resolved…

racerX
- 930
- 9
- 25
12
votes
2 answers
ElasticSearch entered "read only" mode, node cannot be altered
Something happened during the night to my ES cluster (composed of 5 data nodes, 3 master nodes).
I have no idea what happened but all the indices and data were deleted and the cluster entered a "read only" mode, possibly hacked?
When trying to get…

Orz
- 585
- 1
- 5
- 26
10
votes
5 answers
Failed to start Sonar Webservice
I am working on Sonarqube 5.1. It used to work fine earlier, later i got this no space left on device error.So i have deleted some unwanted files and restarted the service. Now i can see that the service status is running, but i cannot access the…

sai
- 300
- 5
- 19
9
votes
3 answers
Best way to index arbitrary attribute value pairs on elastic search
I am trying to index documents on elastic search, which have attribute value pairs. Example documents:
{
id: 1,
name: "metamorphosis",
author: "franz kafka"
}
{
id: 2,
name: "techcorp laptop model x",
type: "computer",
…

Serhat Ozgel
- 23,496
- 29
- 102
- 138
7
votes
2 answers
ElasticSearch ILM not deleting indices
I have set a simple ILM policy on my fluentd.* indices to be deleted after (for testing - ) a short period of time.
ILM:
PUT _ilm/policy/fluentd
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
…

Daniel W.
- 31,164
- 13
- 93
- 151
7
votes
2 answers
How can I get a list of Elasticsearch index names using the Elasticsearch-PHP client?
I need a list of index names from Elasticsearch that match a certain pattern. Using Kibana I've no problem doing this, but I simply can't figure out how to do the same with the Elasticsearch-PHP client.
Example:
Trying to get indices matching the…

Johan Fredrik Varen
- 3,796
- 7
- 32
- 42
7
votes
1 answer
Laravel Scout - observe relations
When I import the index everything works fine (including relations).
The problem is that the main model does not watch over relations.
When I update a relation, the index is not updated too.
Is there any way to use something similar with…

Dorin Niscu
- 721
- 1
- 9
- 26
7
votes
2 answers
Elasticsearch update index template
I have a question about elasticsearch index template, there is a scene of my question.
Create a template for a series indices, named templateA, and there are some indices create from this template, named Index-yyyy.mm.dd2 and Index-yyyy.mm.dd2.…

kenticny
- 507
- 2
- 8
- 20
5
votes
2 answers
What does it mean when an Elasticsearch index has yellow health?
I'm working on an application that creates N indices and N aliases, and there's a one-to-one correspondence between these indices and aliases.
But once in a while, I instead get N indices and N-1 aliases, and one of the indices has a name that…

dstromberg
- 6,954
- 1
- 26
- 27
5
votes
1 answer
Getting error in Elasticsearch while creating index using postman
I have installed Elasticsearch 5.1 in ubuntu 14.04. I have performed some operations in Elasticsearch like create index, delete index etc. Then I have installed Kibana 5.1. Now I want to create new index in elasticsearch using postman…

Akshay Vaghasiya
- 1,597
- 9
- 36
- 60
4
votes
1 answer
Elasticsearch: choose indexing strategy for private search per user
For example, I have 1000 users. The data of each user is not big, maximum is 1GB. So I have 2 strategies for indexing.
Big Indexing: I will have a single index. Then every time a user searches some data, I will add a user_id into the query.
Small…

Trần Kim Dự
- 5,872
- 12
- 55
- 107
4
votes
1 answer
Elasticsearch fielddata unsupported while index mapping
I'm trying to create an index in Elasticsearch through Python. I have a local instance of ES deployed and queries run fine. However, I have a schema. Here it is:
{
"mappings": {
"payment":{
"properties":{
…

gabbar0x
- 4,046
- 5
- 31
- 51
3
votes
1 answer
Does updating Elasticsearch indices requires updating Kibana index pattern?
I am using Elasticsearch and Kibana as plugin to view the data in the indices. I am using Kibana's DevTools to send commands for adding/deleting/updating indices etc.
I want to add a field to a certain text property so it will have a keyword field…

CodeMonkey
- 11,196
- 30
- 112
- 203