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
105
votes
8 answers

Elasticsearch 2.1: Result window is too large (index.max_result_window)

We retrieve information from Elasticsearch 2.1 and allow the user to page thru the results. When the user requests a high page number we get the following error message: Result window is too large, from + size must be less than or equal to:…
Ronald
  • 2,864
  • 3
  • 25
  • 36
103
votes
1 answer

Query with match by multiple fields

I'm pretty new to elastic search and would like to write a query that is concerned about two fields. I mean the content of the fields contains the specified substring. I have a document containing fields, like this: name: n tag: t I tried…
user3663882
  • 6,957
  • 10
  • 51
  • 92
103
votes
8 answers

Elasticsearch : Root mapping definition has unsupported parameters index : not_analyzed

Hi all I am trying to create schema Test. PUT /test { "mappings": { "field1": { "type": "integer" }, "field2": { "type": "integer" }, "field3": { "type": "string", …
Ramesh
  • 1,872
  • 2
  • 20
  • 33
101
votes
3 answers

How to handle multiple heterogeneous inputs with Logstash?

Let's say you have 2 very different types of logs such as technical and business logs and you want: raw technical logs be routed towards a graylog2 server using a gelf output, json business logs be stored into an elasticsearch cluster using the…
David
  • 2,603
  • 4
  • 18
  • 28
101
votes
13 answers

How to stop/shut down an elasticsearch node?

I want to restart an elasticsearch node with a new configuration. What is the best way to gracefully shut down an node? Is killing the process the best way of shutting the server down, or is there some magic URL I can use to shut the node down?
Michael_Scharf
  • 33,154
  • 22
  • 74
  • 95
101
votes
14 answers

Import/Index a JSON file into Elasticsearch

I am new to Elasticsearch and have been entering data manually up until this point. For example I've done something like this: $ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{ "user" : "kimchy", "post_date" :…
Shawn Roller
  • 1,101
  • 2
  • 12
  • 14
99
votes
6 answers

Counting number of documents using Elasticsearch

If one wants to count the number of documents in an index (of Elasticsearch) then there are (at least?) two possibilities: Direct count POST my_index/_count should return the number of documents in my_index. Using search Here one can use the count…
Dror
  • 12,174
  • 21
  • 90
  • 160
97
votes
8 answers

Remove a field from a Elasticsearch document

I need to remove a field in all the documents indexed to Elasticsearch. How can I do it?
Jalal
  • 1,176
  • 2
  • 10
  • 11
96
votes
8 answers

ElasticSearch find disk space usage

How can I find the amount of disk space that Elastic Search is using for my indexes? I'm currently running it locally and I'm trying to see how much disk space I will need on the VM that I'll be spinning up.
Nived
  • 1,804
  • 1
  • 15
  • 29
93
votes
5 answers

Filter items which array contains any of given values

I have a set of documents like { tags:['a','b','c'] // ... a bunch properties } As stated in the title: Is there a way to filter all documents containing any of given tags using Nest ? For instance, the record above would match…
Olivier
  • 5,578
  • 2
  • 31
  • 46
91
votes
8 answers

How to insert data into elasticsearch

I am new to Elasticearch, and I have been trying for 2 days to insert some data into Elasticearch. I found on Google that there are many pages to help to create an index (I am not clear about "index", does it mean "insert" in other terms?) Then many…
user1162069
89
votes
8 answers

How to increase vm.max_map_count?

I'm trying to run Elastic search in an Ubuntu EC2 machine (t2.medium). But I'm getting the message: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] How can I increase the vm.max_map_count value?
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
89
votes
4 answers

Elasticsearch query string query with not equal to?

Usually with a query_string query in elasticsearch, I can do: name:"Fred" I want to find all documents where name is not equal to Fred. What is the proper syntax for that? I tried: name!="Fred" Though it returns 0 documents.
Rolando
  • 58,640
  • 98
  • 266
  • 407
88
votes
5 answers

Elasticsearch : How to delete an Index using python

Forgive me if this is quite basic but I have Python 2.7 and Elasticsearch 2.1.1 and I am just trying to delete an index using es.delete(index='researchtest', doc_type='test') but this gives me return func(*args, params=params,…
AbtPst
  • 7,778
  • 17
  • 91
  • 172
88
votes
4 answers

Kibana - How to display log as table

I'm testing Kibana 4 for a project. I have created an index from my database table which is composed by 3 fields: Date User Action I would like to display my index as a simple table (3 column, N rows) in my dashboard. I tried to use "Data table"…
CyrilleGuimezanes
  • 1,598
  • 1
  • 18
  • 33