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

ElasticSearch aggregation with Java

I want to get aggregation in my java application. First of all I've constracted REST query with curl. It's looks like: curl -XGET 'localhost:9200/analysis/_search?pretty' -H 'Content-Type: application/json' -d' { "size": 0, "query" : { …
Alex Zhulin
  • 1,239
  • 2
  • 22
  • 42
9
votes
0 answers

curl: (7) Failed to connect to localhost port 9200: Connection refused

I got this error: curl: (7) Failed to connect to localhost port 9200: Connection refused when i typed curl 'localhost:9200/_cat/indices?v'. I setup elasticsearch 1.7 and after that i edited file elasticsearch.yum: cluster.name:…
troonie-pham
  • 93
  • 2
  • 5
9
votes
1 answer

How to check refresh interval in elastic search if it is not default

I used command curl -XPOST 'localhost:9200/_refresh?pretty' to refresh ES. I have read couple of posts where we can set refresh_interval to -1 to disable it, or the default refresh_interval is 1s. Also we can set it etc. But what is command to check…
Techie J
  • 91
  • 1
  • 2
9
votes
2 answers

Neo4j in Docker - Max Heap Size Causes Hard crash 137

I'm trying to spin up a Neo4j 3.1 instance in a Docker container (through Docker-Compose), running on OSX (El Capitan). All is well, unless I try to increase the max-heap space available to Neo above the default of 512MB. According to the docs, this…
n00dle
  • 5,949
  • 2
  • 35
  • 48
9
votes
3 answers

How do I force rebuild log's data in filebeat 5

I have filebeats 5.x ship logs to logstash. How do I reset the “file pointer” in filebeat This is a similar problem to How to force Logstash to reparse a file? https://discuss.elastic.co/t/how-do-i-reset-the-file-pointer-in-filebeats/49440 I…
周宏成
  • 175
  • 1
  • 1
  • 8
9
votes
2 answers

Index CSV to ElasticSearch in Python

Looking to index a CSV file to ElasticSearch, without using Logstash. I am using the elasticsearch-dsl high level library. Given a CSV with header for example: name,address,url adam,hills 32,http://rockit.com jane,valleys 23,http://popit.com What…
bluesummers
  • 11,365
  • 8
  • 72
  • 108
9
votes
1 answer

Do you need to delete Elasticsearch aliases?

Can't seem to find a simple yes or no answer to this question. When you have an index with one or more aliases can you just delete the index without any negative side effects? Will deleting the index also delete the aliases? Should you remove all…
wxkevin
  • 1,634
  • 2
  • 25
  • 44
9
votes
3 answers

Django/Haystack error: elasticsearch.exceptions.RequestError: TransportError(400, 'parsing_exception',...)

I am using elasticsearch as backend for haystack in my Django project. I created everything required for a search as mentioned here. But when i search i throws a traceback error with TransportError(400, 'parsing_exception', 'no [query] registered…
sumanth
  • 751
  • 2
  • 15
  • 34
9
votes
3 answers

How to access nested property at script_fields on elastic 5.x

I need to iterate over nested objects on painless script_fields for my query but notation doc['nestedProperty.property'] does not gave me the value, neither does using array notation doc['nestedProperty.property'][0] Any idea on how to use…
bitgandtter
  • 2,179
  • 6
  • 31
  • 60
9
votes
1 answer

ElasticSearch as EventStore

I would like to ask you about your opinion and what you see as cons and pros to use ElasticSearch as EventStore. I would like to hear if somebody had experience with using ElasticSearch as event store and what was the results, reliability and if…
Kamil
  • 990
  • 1
  • 7
  • 24
9
votes
2 answers

Finding duplicates in Elasticsearch

I'm trying to find entries in my data which are equal in more than one aspect. I currently do this using a complex query which nests aggregations: { "size": 0, "aggs": { "duplicateFIELD1": { "terms": { "field": "FIELD1", …
Alfe
  • 56,346
  • 20
  • 107
  • 159
9
votes
2 answers

Installing Elasticsearch 5.0.2 on Windows 8 - \config\jvm.options "was unexpected at this time"

I'm new to Stack Overflow (though a long time lurker). I'm struggling to install elasticsearch on my laptop. It's windows 8, I've just updated java to Java 8 and I've set the new path using set JAVA_HOME. However, whenever I try to run the…
Mimikyu
  • 91
  • 1
  • 2
9
votes
1 answer

'Connection refused' error trying to follow the Python Elasticsearch example usage

I'm trying to run the 'example usage' script for Python Elasticsearch: from datetime import datetime from elasticsearch import Elasticsearch es = Elasticsearch() doc = { 'author': 'kimchy', 'text': 'Elasticsearch: cool. bonsai cool.', …
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
9
votes
3 answers

Multiple should queries with must query

I am building a query to Elastic 5 (using nest in .net), i am trying to achive this result: Must have value1 and value 2 Should have value3 or value 4 and should have value5 or value6 Here is my query: { "query": { "bool": { …
IB.
  • 1,019
  • 3
  • 13
  • 21
9
votes
2 answers

How to increase the max_result_window in elasticsearch using a python script?

I know, we can use the curl to increase the max_result_window as something like: curl -XPUT "http://localhost:9200/index1/_settings" -d '{ "index" : { "max_result_window" : 500000} }' But How do I do the same using python? My code es =…