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
1 answer

Elasticsearch: Data Encryption at Rest

I am trying to encrypt the Elasticsearch data. Are there any native methods to encrypt the data? I studied about Elasticsearch supporting dm-crypt, but there are no proper supporting documents on how it is being implemented. Also, my clients need…
sriramsm04
  • 343
  • 1
  • 7
  • 22
9
votes
2 answers

Elasticsearch equal SQL %Like%

Coming from here i'm asking myselve for the elasticsearch syntax for such querys: WHERE text LIKE "%quick%" AND text LIKE "%brown%" AND text LIKE "%fox%" my try (unfortunately without success) "query": { "bool": { "filter": [ …
Toshi
  • 2,532
  • 4
  • 17
  • 45
9
votes
1 answer

Enabling regex support on AWS Managed ElasticSearch in painless scripts

I am trying to upload templates to my AWS managed ElasticSearch. ElasticSearch responds with a 500 error complaining that I need to set script.painless.regex.enabled to true. I know that you cannot edit the elasticsearch.yml file directly, but is…
Alex
  • 1,432
  • 14
  • 26
9
votes
2 answers

End of search results using search_after parameter from Elastic Search API

For a given date range in the query and with a search_after parameter I am able to successfully extract the relevant results. How do I figure out if I am at the end of the search results for the given date range and I dont have to continue querying…
crkatz
  • 101
  • 5
9
votes
2 answers

How combine query, must and must_not in elasticsearch?

The following documents should be found: matches query 'my text' AND (has not field OR field with value) I have tried the following: GET /myIndex/_search { "query": { "bool": { "must": [ { "query_string": { …
Cherry
  • 31,309
  • 66
  • 224
  • 364
9
votes
5 answers

How to create index and type in elastic search?

I have installed elasticsearch version 2.3.2. I have to add index and type to that elasticsearch. Before I used sense plugin to achieve this. But the addon was removed from webstore. Please give suggestion.
Gopal
  • 787
  • 3
  • 13
  • 19
9
votes
2 answers

Delete all index with similary name

Hi everyone I have 100 index into my elasticsearch and I want to delete them with one query. They all begin with myindex: myindex-1 myindex-2 myindex-3 myindex-4 . . . myindex-100 when I try this query, it does not work: curl -XDELETE…
a.moussa
  • 2,977
  • 7
  • 34
  • 56
9
votes
2 answers

elasticsearch-painless - Manipulate date

I am trying to manipulate date in elasticsearch's scripting language painless. Specifically, I am trying to add 4 hours, which is 14,400 seconds. { "script_fields": { "new_date_field": { "script": { "inline": "doc['date_field'] +…
Eran H.
  • 1,146
  • 1
  • 8
  • 18
9
votes
2 answers

Elasticsearch - Count of matches per document

I'm using this query to search a field for occurrences of phrases. "query": { "match_phrase": { "content": "my test phrase" } } I need to calculate how many matches occurred for each phrase per document (if this is even…
user3270454
9
votes
1 answer

ElasticSearch - Malformed Query (RoR)

I'm trying to set up an existing project using elasticsearch and ruby-on-rails. I can get the project up and running however elasticsearch queries return various error message for me and none of my colleagues: [400]…
Mark
  • 6,112
  • 4
  • 21
  • 46
9
votes
3 answers

Elasticsearch match an array of strings

My Elasticsearch (v5.4.1) documents have a _patents field as such : { // (Other fields : title, text, date, etc.) , "_patents": [ {"cc": "US"}, {"cc": "MX"}, {"cc": "KR"}, {"cc": "JP"}, {"cc":…
Jeremy Thille
  • 26,047
  • 12
  • 43
  • 63
9
votes
1 answer

Should I use elastic search for logging without logstash

I'm planning on using Elasticsearch to log all my application activities (like an audit log). Considering how I have direct control over the application, should I directly push the data into Elasticsearch using their REST APIs or should I somehow…
Thihara
  • 7,031
  • 2
  • 29
  • 56
9
votes
3 answers

spring data elasticsearch: settings and mapping config with annotations not working

I'm using embedded elasticsearch with spring boot and I was trying to use annotations for configuring settings and mappings. I followed this Tutorial which explains how to implement searching over multiple fields. Anyway, I have defined the…
Rubén
  • 427
  • 1
  • 9
  • 23
9
votes
4 answers

Log4j logging directly to elasticsearch server

I'm a bit confused on how can I put my log entries directly to elasticsearch (not logstash). So far I found a few appenders (log4j.appender.SocketAppender, log4j.appender.server etc.) that allow to send logs to remote host and also ConversionPattern…
Frankie Drake
  • 1,338
  • 9
  • 24
  • 40
9
votes
9 answers

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{...}{127.0.0.1}{127.0.0.1:9300}]]

I know that question has already been treated but with all my attemps, no way to fix my issue. I just installed elasticsearch and boot it. Here the log of elastic : [2017-05-17T00:05:27,290][INFO ][o.e.n.Node ] [] initializing…
Jocker
  • 268
  • 1
  • 2
  • 10