Questions tagged [elasticsearch]

Elasticsearch is a free and open, distributed, RESTful search engine based on Lucene.

Elasticsearch is a free and open, distributed, RESTful search engine based on and developed in .

Together, , , and are commonly known as the . With the addition of Beats, a free and open platform for single-purpose data shippers, the ELK Stack is now known as the Elastic Stack.

Elasticsearch is a distributed, scalable, and multitenant-capable full-text search engine with a RESTful web interface and schema-free documents. It is also document-oriented and includes various APIs, such as native Java and HTTP RESTful. Elasticsearch supports both schema on read and schema on write on the same data, providing speed an

Elasticsearch allows you to choose to store data locally for fast search or store remotely on object-based storage such as for lower-cost options.

Elasticsearch comes with various text preprocessing algorithms, allowing users to set up custom or predefined multilingual analyzers to improve search relevance.

Official clients are available in , , , , , , , and many other languages.

Latest stable releases:

Elastic is the parent company of the Elasticsearch product.

58010 questions
87
votes
19 answers

Elasticsearch, Failed to obtain node lock, is the following location writable

Elasticsearch won't start using ./bin/elasticsearch. It raises the following exception: - ElasticsearchIllegalStateException[Failed to obtain node lock, is the following location writable?: [/home/user1/elasticsearch-1.4.4/data/elasticsearch] I…
CentAu
  • 10,660
  • 15
  • 59
  • 85
87
votes
3 answers

Refresh vs flush

If a new document is indexed to Elasticsearch index then it is available for searching something like 1 second after index operation. However it can be forced to make this document searchable immediately by calling _flush or _refresh operation on…
scdmb
  • 15,091
  • 21
  • 85
  • 128
87
votes
11 answers

Efficient way to retrieve all _ids in ElasticSearch

What is the fastest way to get all _ids of a certain index from ElasticSearch? Is it possible by using a simple query? One of my index has around 20,000 documents.
Mahoni
  • 7,088
  • 17
  • 58
  • 115
86
votes
10 answers

Dump all documents of Elasticsearch

Is there any way to create a dump file that contains all the data of an index among with its settings and mappings? A Similar way as mongoDB does with mongodump or as in Solr its data folder is copied to a backup location. Cheers!
Evan P
  • 1,767
  • 1
  • 20
  • 37
84
votes
3 answers

What does percolator mean/do in elasticsearch?

Even though I read the documentation for Elasticsearch to understand what a percolator is. I still have difficulty understanding what it means and where it is used in simple terms. Can anyone provide me with more details?
Hossein
  • 40,161
  • 57
  • 141
  • 175
83
votes
4 answers

How to set up ES cluster?

Assuming I have 5 machines I want to run an elasticsearch cluster on, and they are all connected to a shared drive. I put a single copy of elasticsearch onto that shared drive so all three can see it. Do I just start the elasticsearch on that shared…
Rolando
  • 58,640
  • 98
  • 266
  • 407
82
votes
12 answers

How to know elastic search installed version from kibana?

Currently I am getting these alerts: Upgrade Required Your version of Elasticsearch is too old. Kibana requires Elasticsearch 0.90.9 or above. Can someone tell me if there is a way I can find the exact installed version of ELS?
Shantesh
  • 1,470
  • 1
  • 16
  • 26
82
votes
9 answers

How to get a list of all indexes in python-elasticsearch

How would I get a list of the names of an index in Python? Here is what I have so far: >>> es=e.es >>> es >>> es.indices
David542
  • 104,438
  • 178
  • 489
  • 842
81
votes
3 answers

Difference between keyword and text in ElasticSearch

Can someone explain the difference between keyword and text in ElasticSearch with an example?
archura
  • 1,053
  • 1
  • 10
  • 12
81
votes
12 answers

Kibana doesn't show any results in "Discover" tab

I setup elasticsearch and Kibana for indexing our application (error) logs. The issue is that Kibana doesn't display any data in the "Discover" tab. Current situation Elasticsearch is up and running, responds to API executing a query directly on…
Juri
  • 32,424
  • 20
  • 102
  • 136
80
votes
10 answers

Get raw query from NEST client

Is it possible to get the raw search query from the NEST client? var result = client.Search(s => s .AllIndices() .Type("SomeIndex") .Query(query => query .Bool(boolQuery…
Mark Walsh
  • 3,241
  • 1
  • 24
  • 46
79
votes
5 answers

low disk watermark [??%] exceeded on

I use Elasticsearch 1.4.4 in my development machine (a single notebook). Everything is set as default because I never changed any settings. When I start it, I usually get the following message: [2015-10-27 09:38:31,588][INFO ][node …
curious1
  • 14,155
  • 37
  • 130
  • 231
79
votes
2 answers

ElasticSearch multi level parent-child aggregation

I have a parent/child structure in 3 levels. Let's say: Company -> Employee -> Availability Since Availability (and also Employee) is frequently updated here, I choose using parent/child structure against nested. And search function works fine…
Pete Minus
  • 906
  • 6
  • 6
79
votes
5 answers

How to use Bulk API to store the keywords in ES by using Python

I have to store some message in ElasticSearch integrate with my python program. Now what I try to store the message is: d={"message":"this is message"} for index_nr in range(1,5): ElasticSearchAPI.addToIndex(index_nr, d) print…
chengji18
  • 943
  • 1
  • 8
  • 9
79
votes
2 answers

How to remove a node from an Elasticsearch cluster at runtime without downtime

Suppose I had five nodes in a cluster and I had to remove two nodes at run time. So how can it be done without affecting the indices? I had a continuous stream of data coming at nearly 10 Gb/hour which is getting indexed continuously. Would…
Lav
  • 1,017
  • 2
  • 11
  • 16