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
78
votes
11 answers

Authentication in Elasticsearch

How do I define security access in Elasticsearch? I have the elasticsearch-head plugin but your access doesn't require any security.
Bruce
  • 1,145
  • 1
  • 10
  • 16
78
votes
11 answers

What is the default user and password for elasticsearch?

I have installed Elastic with Docker: docker run -p 9200:9200 \ -p 9300:9300 \ -e "discovery.type=single-node" \ docker.elastic.co/elasticsearch/elasticsearch:5.6.2 But curl localhost:9200 fails with an…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
77
votes
6 answers

Installing Elasticsearch on OSX Mavericks

I'm trying to install Elasticsearch 1.1.0 on OSX Mavericks but i got the following errors when i'm trying to start: :> ./elasticsearch Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version at…
Catalin M.
  • 1,026
  • 1
  • 8
  • 7
77
votes
7 answers

How to retrieve unique count of a field using Kibana + Elastic Search

Is it possible to query for a distinct/unique count of a field using Kibana? I am using elastic search as my backend to Kibana. If so, what is the syntax of the query? Heres a link to the Kibana interface I would like to make my query:…
Afsheen Khosravian
  • 971
  • 2
  • 8
  • 13
75
votes
13 answers

How do I retrieve more than 10000 results/events in Elasticsearch?

Example query: GET hostname:port /myIndex/_search { "size": 10000, "query": { "term": { "field": "myField" } } } I have been using the size option knowing that: index.max_result_window = 100000 But if my query has the size of…
Franco
  • 875
  • 1
  • 6
  • 14
75
votes
6 answers

Elasticsearch how to use multi_match with wildcard

I have a User object with properties Name and Surname. I want to search these fields using one query, and I found multi_match in the documentation, but I don't know how to properly use that with a wildcard. Is it possible? I tried with a…
74
votes
3 answers

Why do I need "store":"yes" in elasticsearch?

I really don't understand why in core types link it says in the attributes descriptions (for a number, for example): store - Set to yes to store actual field in the index, no to not store it. Defaults to no (note, the JSON document itself is…
eran
  • 14,496
  • 34
  • 98
  • 144
73
votes
3 answers

ElasticSearch : IN equivalent operator in ElasticSearch

I am trying to find ElasticSearch query equivalent to IN \ NOT in SQL. I know we can use QueryString query with multiple OR to get the same answer, but that ends up with lot of OR's. Can anyone share the example?
Sameer Deshmukh
  • 1,339
  • 4
  • 13
  • 20
73
votes
9 answers

How to copy some ElasticSearch data to a new index

Let's say I have movie data in my ElasticSearch and I created them like this: curl -XPUT "http://192.168.0.2:9200/movies/movie/1" -d' { "title": "The Godfather", "director": "Francis Ford Coppola", "year": 1972 }' And I have a bunch of…
cybergoof
  • 1,407
  • 3
  • 16
  • 25
72
votes
3 answers

PostgreSQL(Full Text Search) vs ElasticSearch

Hi I am doing some research before I implement search feature into my service. I'm currently using PostgreSQL as my main storage. I could definitely use PostgreSQL's built-in Full-Text-Search but the problem is that I have data scattered around…
J.S.C
  • 1,323
  • 3
  • 16
  • 22
72
votes
6 answers

All shards failed

I was working on elastic search and it was working perfectly. Today I just restarted my remote server (Ubuntu). Now I am searching in my indexes, it is giving me this error. {"error":"SearchPhaseExecutionException[Failed to execute phase…
user3176531
  • 763
  • 1
  • 5
  • 7
71
votes
5 answers

What does "Limit of total fields [1000] in index [] has been exceeded" means in Elasticsearch

I have ElasticSearch index created which has approx 350 fields (including nested fields), I have defined mapping only for few of them. While calling the _update API I am getting below exception with 400 Bad request. Limit of total fields [1000] in…
SSG
  • 1,265
  • 2
  • 17
  • 29
71
votes
4 answers

How reliable is ElasticSearch as a primary datastore against factors like write loss, data availability

I am working on a project with a requirement of coming up with a generic dashboard where a users can do different kinds of grouping, filtering and drill down on different fields. For this we are looking for a search store that allows slice and dice…
Harshit Agrawal
  • 903
  • 1
  • 7
  • 11
69
votes
4 answers

Export to csv/excel from kibana

I am building a proof of concept using Elasticsearch Logstash and Kibana for one of my projects. I have the dashboard with the graphs working without any issue. One of the requirements for my project is the ability to download the file(csv/excel).…
jsp
  • 2,546
  • 5
  • 36
  • 63
69
votes
2 answers

CURL escape single quote

How can I make this work? curl -XPOST 'http://localhost:9290/location/place' -d '{"geoloc": {"lat": "38.1899", "lon": "-76.5087"}, "longitude": "-76.5087", "admin_name1": "Maryland", "admin_name2": "St. Mary's", "admin_name3": "", "postal_code":…
mikeb
  • 10,578
  • 7
  • 62
  • 120