Questions tagged [elasticsearch-2.0]

Use this tag for version specific questions about Elasticsearch 2.0 - the distributed, RESTful search and analytics engine. When using this tag also include the more generic [elasticsearch] tag where possible.

Elasticsearch 2.0 takes huge strides forward in terms of speed, security, scalability, and hardware efficiency. It introduces a host of new features, including powerful new aggregations to do more analytics, cluster state diffs to support even larger clusters, compatibility with 2.0 versions of Shield (security), Marvel (monitoring), Watcher (alerts), and more.

345 questions
0
votes
1 answer

Elasticsearch Multi Get working through curl, but no results are returned through Java API

I am running elasticsearch 2.3.4, but the syntax does not seem to have changed in 5.x. Multiget over curl is working just fine. Here is what my curl looks like: curl 'localhost:9200/_mget' -d '{ "docs" : [ { "_index" :…
0
votes
1 answer

Fuzzy search in the elasticsearch gives matches with incorrect order

I am trying to build an engine where we can match areas mentioned in the address with the list available in elasticsearch. I am using this query to search areas similar to "iit". My query is : { "query": { "fuzzy": { "locality":…
0
votes
0 answers

Make Elasticsearch handle only the numeric part of a string field and parse/copy it into a numeric field

In my data, i have a field that contain a string representation of a year. The field can contain other characters and sometimes several year strings. Examples: 1995-2000 [2000] cop. 1865 I want to (in Elasticsearch) extract these years and parse…
Fontanka16
  • 1,161
  • 1
  • 9
  • 37
0
votes
1 answer

Filter elasticsearch by range of date on a string property

I need to query elasticsearch & filter the result to be in a range of dates. the thing is the date property is mapped as a string. is it possible to do so ? this is the search query i'm using: { "size": 1, "from": 0, "query": { "bool": {…
Soufiaane
  • 1,737
  • 6
  • 24
  • 45
0
votes
0 answers

ElasticSearch returns Not a Number (NaN)_on a long works fine on a double

I have a shell script which makes a curl call to an ElasticSearch cluster. In the curl request, I have some aggregations with percentiles. The percentiles are calculated as expected when the field is a double, but the results are NaN (Not a Number)…
Sam G
  • 151
  • 1
  • 3
  • 13
0
votes
1 answer

Elasticsearch query to search across indexes for geo and non-geo data?

I have two indexes, businesses and categories. Each have different mappings, one of those differences being that businesses has a geofield (lat/lng) associated with it. I would like to perform a query where a user could perform an autocomplete…
mjoyce91
  • 316
  • 2
  • 19
0
votes
1 answer

How to get percentiles for multiple fields in one ElasticSearch query

I learned how to write a ES query for calculating the percentile, but it seems to work for one field. If I want percentile on multiple fields, it does not work. "aggs": { "distinct_UUID": { "terms": { "field":…
0
votes
1 answer

How to stop an index of Amazon Elasticsearch service?

I'm trying to restore a snapshot saved on S3. The snapshot is an Amazon Elasticsearch service cluster from my another Amazon ES domain. While trying to restore that on a new Amazon ES domain, it gives an error: "Cannot restore because index…
0
votes
1 answer

Elasticseach bulk load strangely missing 1 of 3 documents

I'm running into strange problems following the shingles example at https://www.elastic.co/guide/en/elasticsearch/guide/current/shingles.html When I try to index the three documents on that tutorial, only two of them get indexed, the document with…
jmng
  • 2,479
  • 1
  • 25
  • 38
0
votes
1 answer

It is possible to run an Elasticsearch 5.x with Flink 1.2.0?

It is possible to run elasticsearch version 5.x in Apache Flink 1.2.0? I cannot upgrade my Flink to 1.3 because I need the 1.2.0 version to run kafka. by what it is said in this link :…
0
votes
2 answers

Sub Queries in ElasticSearch

In elastic search i need all the documents whose userid's are a result from executing another elasticsearch query like this { "size": 200, "query": { "bool": { "must": { "match": { "targetId": { …
Arun
  • 1
  • 3
0
votes
1 answer

How to address filtering in related models in django haystack

I have the following models: class Note(models.Model): user = ForeignKey(User) topic = CharField(max_length=20) class Referral(models.Model): recipient = ForeignKey(User, related_name=referral_rcvd) giver = ForeignKey(User,…
irene
  • 2,085
  • 1
  • 22
  • 36
0
votes
1 answer

ElasticSerach search for same id in multiple nested objects

I have a mapping that looks like this for ElasticSearch 2.2: PUT /index/test_type/_mapping { "test_type":{ "properties":{ "nested_one":{ "type":"nested", "properties":{ …
arturobelano
  • 135
  • 14
0
votes
1 answer

Elasticsearch does not work with Wagtail 1.7 and SSL active

I can't run ElasticSearch 2 with Wagtail 1.7 and with https connections. Do I need to add anything else to the settings of elasticSearch in the django / Wagtail settings? Or in the configuration of elasticsearch2 (elasticsearch.yml) itself? Thanks…
Diego Martinez
  • 119
  • 1
  • 6
0
votes
1 answer

Elasticsearch: execute a filter on nested document only if it exists

I am using ES 2.3 and have a query in which filter section looks as follows: "filter": { "query": { "bool": { "must": [ { "nested": { "path": "employees", "query": { …
JVK
  • 3,782
  • 8
  • 43
  • 67