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
10
votes
2 answers

ElasticSearch:filtering documents based on field length?

Is there a way to filter ElasticSearch documents based on the length of a specific field? For instance, I have a bunch of documents with the field "body", and I only want to return results where the number of characters in body is > 1000. Is there a…
Henley
  • 21,258
  • 32
  • 119
  • 207
10
votes
1 answer

What is the use of MongoDB in GrayLog2?

GrayLog2 requires both ElasticSearch and MongoDB, while Logstash uses only ElasticSearch for persisting and searching the logs. what does mongo provide in graylog2?
Birla
  • 1,170
  • 11
  • 30
10
votes
3 answers

can I prioritize more exact matches when using ngram filter in search results?

When using the ngram filter with elasticsearch so that when I search for something like "test" I return a document "latest", "tests" and "test". Is there a way to make it so that the "document exactly matching the query "test" is always returned…
concept47
  • 30,257
  • 12
  • 52
  • 74
10
votes
1 answer

Returning a partial nested document in ElasticSearch

I'd like to search an array of nested documents and return only those that fit a specific criteria. An example mapping would be: {"book": {"properties": { "title":{"type":"string"}, "chapters":{ …
eran
  • 14,496
  • 34
  • 98
  • 144
10
votes
1 answer

Use existing field as id in elasticsearch

Just started using elasticSearch today. I was wondering if it would be possible to set in some kind of global parameter to use a certain field within a document as the ID always? My JSON documents will always have it's own unique ID { "Record ID":…
chri
  • 296
  • 1
  • 4
  • 11
10
votes
2 answers

ElasticSearch count returned result

I want to count number of document returned as a result of a query with size limit. For example, I run following query: curl -XGET http://localhost:9200/logs_-*/a_logs/_search?pretty=true -d ' { "query" : { "match_all" : { } }, "size" :…
Nabeel Akhtar
  • 101
  • 1
  • 1
  • 4
10
votes
1 answer

analyzed v not_analyzed or ...?

New to ES so maybe a dumb question but I am trying to search using a wildcard, e.g.: "SOMECODE*" and "*SOMECODE" It works fine, but the value in the document may have "SOMECODE/FRED". The problem is * will match with anything (which includes…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
10
votes
1 answer

How to run an embedded elastic search instance for testing

I'm working in a setup that has an embedded elastic search instance for unit testing purposes, but when I run the tests continuously with sbt (~test-only ) the system becomes increasingly unstable until it freezes and has to be killed with…
iwein
  • 25,788
  • 10
  • 70
  • 111
10
votes
1 answer

Elastic Search using NEST Field Boosting

I am using Elastic Search in C# using the NEST strongly typed client. I have an index containing Entries: [ElasticType(Name = "Entry", IdProperty = "Id")] public class Entry { public string Id { get; set; } public string Title { get; set; } …
tmortiboy
  • 485
  • 3
  • 10
10
votes
2 answers

Accessing dict elements with leading underscores in Django Templates

I am trying to access elements of a dict with keys that start with the underscore character. For example: my_dict = {"_source": 'xyz'} I'm trying to access them in a Django template. Obviously I realise that you can't access underscored python…
rstuart85
  • 2,035
  • 2
  • 15
  • 19
10
votes
1 answer

elasticsearch java API: matchAll search query doesn't return results?

I've got an in-memory instance of elastic search running, and doing some exploratory coding to learn the search java API. I am able to submit documents to the index and retrieve them using GET, but when I try a simple search query, I am not getting…
Paul Sanwald
  • 10,899
  • 6
  • 44
  • 59
10
votes
1 answer

Confusion between mappings and types in ElasticSearch

Sorry, I'm new to ElasticSearch. http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.html This document says you can "creates a mapping called tweet within the twitter index" $ curl -XPUT…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
10
votes
4 answers

ElasticSearch duplicate results with paging

I'm using elasticsearch with pyes. I'm getting duplicates in my last page of results. Here's my query: "query": { "query": { "filtered": { "filter": { "and": [ { …
Clay Wardell
  • 14,846
  • 13
  • 44
  • 65
10
votes
5 answers

How to monitor elasticsearch using nagios

I would like to monitor elasticsearch using nagios. Basiclly, I want to know if elasticsearch is up. I think I can use the elasticsearch Cluster Health API (see here) and use the 'status' that I get back (green, yellow or red), but I still don't…
Noam
  • 3,049
  • 10
  • 34
  • 52
10
votes
3 answers

How to prevent Facet Terms from tokenizing

I am using Facet Terms to get all the unique values and their count for a field. And I am getting wrong results. term: web Count: 1191979 term: misc Count: 1191979 term: passwd Count: 1191979 term: etc Count: 1191979 While the actual…
jmnwong
  • 1,577
  • 6
  • 22
  • 33