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
7
votes
4 answers

Elasticsearch 2.0: how to delete by query in Java

I am trying to upgrade to ES 2.0. I have downloaed ES 2.0 and installed it on my Windows machine. In my pom.xml, I have the following: org.elasticsearch elasticsearch
curious1
  • 14,155
  • 37
  • 130
  • 231
6
votes
2 answers

Elasticsearch shingles and stopwords

The example at https://www.elastic.co/guide/en/elasticsearch/guide/current/shingles.html mentions that the standard filter for stopwords introduces a negative effect when searching with shingles, due to the filter replacing stopwords with an…
jmng
  • 2,479
  • 1
  • 25
  • 38
6
votes
2 answers

Elasticsearch, Exists filter for nested objects not working

My mapping is: "properties": { "user": { "type": "nested", "properties": { "id": { "type": "integer" }, "is_active": { "type": "boolean", "null_value": false }, "username": { …
pmishev
  • 896
  • 9
  • 22
6
votes
1 answer

Elasticsearch array value count aggregation

Sample documents: { "id": "62655", "attributes": [ { "name": "genre", "value": "comedy" }, { "name": "year", "value": "2016" } ] } { "id": "62656", …
Sriram
  • 8,574
  • 4
  • 21
  • 30
5
votes
1 answer

Elasticsearch sort based on element in array that satisfies filter

My types have a field which is an array of times in ISO 8601 format. I want to get all the listing's which have a time on a certain day, and then order them by the earliest time they occur on that specific day. Problem is my query is ordering based…
Albert Still
  • 989
  • 9
  • 17
5
votes
0 answers

return hits from one bucket when doing a geodistance search in elasticsearch .net

I want to do a geosearch where it should first search for all locations within a distance of 50 meters, if more than 5 hits are found, then return those. If less than 5 hits are found I want to expand and search all locations within a distance of…
5
votes
2 answers

ElasticSearch - multi_match with AND/OR

I want to use multi_match across multiple fields in my index. For example, I have this users index. Users id real_name contact_name user_name These fields are all using the standard analyzer. So I want to search these 3 fields (real_name,…
5
votes
0 answers

Is there are a way to filter by _score in elasticsearch?

Is there a way to do following post_filter query valid? I've tried different ones: _score, score, doc.score, doc._score, _source.score etc. nothing is working. I believe there should be some solution that allows you to filter in the post_filter by…
Dmitry Polushkin
  • 3,283
  • 1
  • 38
  • 44
5
votes
1 answer

Elasticsearch insensitive search accents

I'm using Elastic search with Python. I can't find a way to make insensitive search with accents. For example: I have two words. "Camión" and "Camion". When a user search for "camion" I'd like the two results show up. Creating index: es =…
Marcos Aguayo
  • 6,840
  • 8
  • 28
  • 61
5
votes
2 answers

Elasticsearch 2.0 plugin installation INFO

I started to use Elasticsearch 2.0. I have a plugin for Elasticsearch but cannot install it on new version 2.0. It gives an error: /Downloads/elasticsearch-2.0.0/bin$ ./plugin install file:///home/fatih/Downloads/myftptest/zemberekplugin.zip ->…
Fatih Aktepe
  • 571
  • 2
  • 10
  • 19
4
votes
1 answer

How to load a index template file into elasticsearch when it starts up?

In elasticsearch v1.5, Index templates can be placed within the config location (path.conf) under the templates directory elasticsearch/config/templates. However, I found this template will not be loaded after I upgrade to v2.3 or v5.3. Is any way…
Haoyuan Ge
  • 3,379
  • 3
  • 24
  • 40
4
votes
1 answer

bool query does not support filter

This is the query that throws the exception using ES 2.0: bool query does not support filter How to use Exists and Missing query? Query: { "bool":{ "must":[ { "bool":{ "should":[ { …
user7078562
  • 51
  • 1
  • 2
4
votes
0 answers

What is the mapping for array of arrays in elasticsearch 2.3

In ElasticSearch 2.3, I am planning to store data for a field in this way: "pair_age": [ [12, 19], [17,20], [34,35] ] So in mapping how to set it: "pair_age": { "type": "????" } What should I set the value of ???? above?
JVK
  • 3,782
  • 8
  • 43
  • 67
4
votes
3 answers

case insensitive elasticsearch with uppercase or lowercase

I am working with elastic search and I am facing a problem. if any body gave me a hint , I will really thankful. I want to analyze a field "name" or "description" which consist of different entries . e.g someone want to search Sara. if he enter…
Rio
  • 347
  • 3
  • 6
  • 20
4
votes
1 answer

ElasticSearch 2.x GeoPoint mapping with NEST C#

Im having a problem mapping "Geo Point" in elasticsearch using NEST C# Client. Here is my class definition: [GeoPoint(Name = "coordinates", LatLon = true)] public Coordinates Coordinates { get; set; } public class Coordinates { …
nlv
  • 791
  • 7
  • 28
1
2
3
22 23