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

elasticsearch - querying multiple indexes is possible?

I have an elasticsearch cluster with 3 indexes: /users/user /events/visit /events/register /pages/page So, now I need to run queries processing multiple indexes. Eg: Get gender of users registered in page X. (To get this info, I need infos from…
user3175226
  • 3,579
  • 7
  • 28
  • 47
63
votes
3 answers

error when trying to update the settings

i try to execute this commands via a bash script but i get these errors: #!/bin/bash curl -XPOST 'localhost:9200/my_index/_close' curl -XPUT 'localhost:9200/my_index/_settings' -d '{ "analysis": { "analyzer": { "ar_analyzer": { …
Rachid O
  • 13,013
  • 15
  • 66
  • 92
63
votes
3 answers

Elastic Search Hyphen issue with term filter

I have the following Elastic Search query with only a term filter. My query is much more complex but I am just trying to show the issue here. { "filter": { "term": { "field": "update-time" } …
Gabbar
  • 4,006
  • 7
  • 41
  • 78
62
votes
3 answers

Elasticsearch Bulk API - Index vs Create/Update

I'm using the Elasticsearch Bulk API to create or update documents. I do actually know if they are creates or updates, but I can simplify my code by just making them all index, or "upserts" in the SQL sense. Is there any disadvantage in using…
Kong
  • 8,792
  • 15
  • 68
  • 98
61
votes
9 answers

Is there any way in Elasticsearch to get results as CSV file in curl API?

I am using elastic search. I need results from elastic search as a CSV file. Any curl URL or any plugins to achieve this?
Ramaraj Karuppusamy
  • 2,350
  • 5
  • 24
  • 35
61
votes
6 answers

How to make elasticsearch add the timestamp field to every document in all indices?

Elasticsearch experts, I have been unable to find a simple way to just tell ElasticSearch to insert the _timestamp field for all the documents that are added in all the indices (and all document types). I see an example for specific…
Gautam M
  • 777
  • 1
  • 6
  • 7
61
votes
4 answers

How do I find where ElasticSearch is installing my plugins?

I have installed elasticsearch with brew install elasticsearch. My plugins seem to reside in /usr/local/Cellar/elasticsearch/0.19.8/plugins. With cat $( which plugin ) I see a ES_HOME variable that contains the correct path. Is there a way to ask…
Kostas
  • 8,356
  • 11
  • 47
  • 63
60
votes
1 answer

Can We Retrieve Previous _source Docs with Elastic Search Versions

I've read the blog post on ES regarding versioning. However, I'd like to be able to get the previous _source documents from an update. For example, let's say I have this object: { "name": "John", "age": 32, "job": "janitorial…
swatkins
  • 13,530
  • 4
  • 46
  • 78
60
votes
4 answers

Is using a load balancer with ElasticSearch unnecessary?

I have a cluster of 3 ElasticSearch nodes running on AWS EC2. These nodes are setup using OpsWorks/Chef. My intent is to design this cluster to be very resilient and elastic (nodes can come in and out when needed). From everything I've read about…
user2719100
  • 1,704
  • 3
  • 20
  • 25
60
votes
3 answers

Elasticsearch "no requests added" Bulk API Error

Trying to get Bulk Update to work on ES 1.0.1. I am within Postman posting the following: URL POST or PUT to http://localhost:9200/_bulk Request Body: { "update" : { "_index" : "test_people", "_type" : "person", "_id" : "1" }} \n { "doc" : {…
Micah
  • 10,295
  • 13
  • 66
  • 95
60
votes
7 answers

Elasticsearch- get all values for a given field?

Is it possible to query for all of the values a specific field? Say I have "articles" and each article has an author, is there a query I can perform to find a list of all authors?
eric
  • 2,699
  • 4
  • 29
  • 40
59
votes
6 answers

Elastic Search indexes gets deleted frequently

I'm running an elastic search for a personal project on google-cloud and I use as a search index for my application. From the last 3 days, indexes are getting deleted mysteriously. I have no clue why, I looked at all my code for any delete index…
Pramod Shashidhara
  • 939
  • 2
  • 11
  • 17
59
votes
2 answers

Elasticsearch multi term filter

I'm quite new to Elasticsearch, so here's my question. I wanna do a search query with elasticsearch and wanna filter with multiple terms. If I want to search for a user 'tom', then I would like to have all the matches where the user 'isActive = 1',…
58
votes
2 answers

Elasticsearch replication of other system data?

Suppose I want to use elasticsearch to implement a generic search on a website. The top search bar would be expected to find resources of all different kinds across the site. Documents for sure (uploaded/indexed via tika) but also things like…
FrobberOfBits
  • 17,634
  • 4
  • 52
  • 86
58
votes
5 answers

Elasticsearch memory problems

When I'm trying too start the elasticsearch in my Ubuntu the startup script gives me the following error: Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x74800000, 201326592, 0) failed; error='Cannot allocate memory' (errno=12) # #…
amachado
  • 1,032
  • 1
  • 15
  • 31