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
69
votes
3 answers

Create or update mapping in elasticsearch

I am new to Elasticsearch and am currently working on implementing a geo_distance filter for searching. As of now my index has the following mapping (I've removed some fields): { advert_index: { mappings: { advert_type: { …
Axelfran
  • 964
  • 1
  • 7
  • 17
68
votes
10 answers

UTF8 encoding is longer than the max length 32766

I've upgraded my Elasticsearch cluster from 1.1 to 1.2 and I have errors when indexing a somewhat big string. { "error": "IllegalArgumentException[Document contains at least one immense term in field=\"response_body\" (whose UTF8 encoding is…
jlecour
  • 2,905
  • 1
  • 25
  • 24
68
votes
3 answers

Elasticsearch: Find substring match

I want to perform both exact word match and partial word/substring match. For example if I search for "men's shaver" then I should be able to find "men's shaver" in the result. But in case case I search for "en's shaver" then also I should be able…
68
votes
4 answers

ElasticSearch -- boosting relevance based on field value

Need to find a way in ElasticSearch to boost the relevance of a document based on a particular value of a field. Specifically, there is a special field in all my documents where the higher the field value is, the more relevant the doc that contains…
Clay Wardell
  • 14,846
  • 13
  • 44
  • 65
67
votes
5 answers

elasticsearch: how to free store size after deleting documents

On my elasticsearch server: total documents: 3 million, total size: 3.6G Then, I delete about 2.8 millions documents: total documents: about 0.13 million, total size: 3.6G I have deleted the documents, how should I free the size of the documents?
Michael
  • 1,667
  • 2
  • 17
  • 18
67
votes
1 answer

Understanding Segments in Elasticsearch

I was under the assumption that each shard in Elasticsearch is an index. But I read somewhere that each segment is a Lucene index. What exactly is a segment? How does it effect search performance? I have indices that reach around 450GB in size…
shadyabhi
  • 16,675
  • 26
  • 80
  • 131
66
votes
8 answers

How do I do a partial match in Elasticsearch?

I have a link like http://drive.google.com and I want to match "google" out of the link. I have: query: { bool : { must: { match: { text: 'google'} } } } But this only matches if the whole text is 'google'…
ThePumpkinMaster
  • 2,181
  • 5
  • 22
  • 31
66
votes
8 answers

Return the most recent record from ElasticSearch index

I would like to return the most recent record (top 1) from ElasticSearch index similar to the sql query below; SELECT TOP 1 Id, name, title FROM MyTable ORDER BY Date DESC; Can this be done?
Yasir
  • 4,567
  • 7
  • 22
  • 19
66
votes
12 answers

elasticsearch filtering by the size of a field that is an array

How can I filter documents that have a field which is an array and has more than N elements? How can I filter documents that have a field which is an empty array? Is facets the solution? If so, how?
eran
  • 14,496
  • 34
  • 98
  • 144
66
votes
4 answers

How can I view the contents of an ElasticSearch index?

I configured a custom analyzer and put some documents into the index. Now I want to debug my settings so I can see which n-grams actually made it into the index. When I used Solr before, there was a possibility to see which strings were saved in the…
fqxp
  • 7,680
  • 3
  • 24
  • 41
66
votes
4 answers

Restart elasticsearch node

What is the proper way to restart node in elasticsearch? (preferably via the REST API, java API might be ok too)
user1768906
65
votes
4 answers

Elasticsearch Bulk Index JSON Data

I am trying to bulk index a JSON file into a new Elasticsearch index and am unable to do so. I have the following sample data inside the JSON [{"Amount": "480", "Quantity": "2", "Id": "975463711", "Client_Store_sk": "1109"}, {"Amount": "2105",…
Amit P
  • 924
  • 2
  • 11
  • 15
65
votes
19 answers

Java ElasticSearch None of the configured nodes are available

Just downloaded and installed elasticsearch 1.3.2 in past hour Opened IP tables to port 9200 and 9300:9400 Set my computer name and ip in /etc/hosts Head Module and Paramedic Installed and running smoothly curl on localhost works flawlessy copied…
Chris
  • 18,075
  • 15
  • 59
  • 77
64
votes
4 answers

How to integrate ElasticSearch with MySQL?

In one of my project, I am planning to use ElasticSearch with MySQL. I have successfully installed ElasticSearch. I am able to manage index in ES separately. but I don't know how to implement the same with MySQL. I have read a couple of documents…
Yaxita Shah
  • 1,206
  • 1
  • 11
  • 17
63
votes
5 answers

How to do "where not exists" type filtering in Kibana/ELK?

I am using ELK to create dashboards from my log files. I have a log file with entries that contain an id value and a "success"/"failure" value, displaying whether an operation with a given id succeeded or failed. Each operation/id can fail an…
Anton Kupias
  • 3,945
  • 3
  • 16
  • 20