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
0 answers

Is there any REST API in Elasticsearch for deleting indices on the basis of index creation date?

I am using time based indices to store log data in elasticsearch on daily index basis. I am looking for the best approach to delete indices which are greater than 30 days old. Is there any API in elasticsearch that returns the list of indices…
Onkaar Singh
  • 10,187
  • 3
  • 14
  • 26
0
votes
1 answer

Elastic search adding weights or boosting to query and multiple term clause in filters

My sample index and document structure looks like this : http://localhost:9200/testindex/ { "settings": { "analysis": { "analyzer": { "autocomplete": { "tokenizer": "whitespace", …
baiduXiu
  • 167
  • 1
  • 3
  • 15
0
votes
1 answer

Executing a UpdateByQueryRequest in Elasticsearch Java client

I want to run an update-by-query call on Elasticsearch. I wrote the code to execute as follows and it works, UpdateByQueryRequestBuilder builder = buildUpdateByQueryRequestBuilder(); builder.get(); However, during the code review someone told me…
Gunith D
  • 1,843
  • 1
  • 31
  • 36
0
votes
0 answers

Insert data with None of the fields indexed and create dynamic indexes

I have many JSON documents to be stored in elastic Search. All the JSON documents have few fields which always exists but some of the fields need not exist all the time. So Maximum there would be 5000 fields in the complete JSON. Some of the fields…
svs teja
  • 957
  • 2
  • 22
  • 43
0
votes
1 answer

Elastic search dynamic template not working

I have elastic search stack: Where I have template { "template": "vivek-*", "settings": { "number_of_shards": 40, "index.mapper.dynamic": true }, "dynamic_templates": [ { "date": { "match": "*Utc", "mapping": { …
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
0
votes
1 answer

ElasticSearch- [exists] query does not support in elastic search 2.3

POST /ankita-inex/my_type/_bulk { "index": { "_id": 1 }} { "title": "The quick brown fox" } { "index": { "_id": 2 }} { "title": "The quick brown fox jumps over the lazy dog" } { "index": { "_id": 3 }} { "title": "The quick brown fox jumps over…
A.G
  • 489
  • 1
  • 6
  • 17
0
votes
0 answers

Migrating elasticsearch java apis from elastic 1.1.2 to 2.4.3

Hi I am migrating an application that current uses elasticsearch and while most of the migration was straightforward and we were able to migrate most of the code, there are a few gray areas that we're not being able to migrate properly, as an…
groo
  • 4,213
  • 6
  • 45
  • 69
0
votes
2 answers

Creating a custom tokenizer in ElasticSearch NEST

I have a custom class in ES 2.5 of the following: Title DataSources Content Running a search is fine, except with the middle field - it's built/indexed using a delimiter of '|'. ex: "|4|7|8|9|10|12|14|19|20|21|22|23|29|30" I need to build a query…
0
votes
0 answers

Elasticsearch stops suddenly

I've recently upgraded my 3 node cluster to elastic 2.4.2 from 1.5. Since the upgrade (I think), I experience random shutdowns of the elasticsearch service: about once a day (at no specific hour), one of the nodes stops working- every time a…
Eldad
  • 1,067
  • 16
  • 36
0
votes
1 answer

Elastic search equivalent query needed to find distinct values in a column in version 1.7.5

I have a elastic search index having columns a, b, c Need to find the elastic search query equivalent of select distinct c from tablename; ES version is 1.7.5
Mechanic
  • 80
  • 9
0
votes
0 answers

Can elasticsearch instances with different settings join the same cluster?

I have a 2-node ES cluster. I recently enabled scripting using the following: script: inline: true indexed: true I know this requires me to restart the ES service, so I decided to follow this rolling restart…
0
votes
1 answer

How do you bucket ranges of data in ElasticSearch?

I have a repository where I have teachings that can have 0..n devotionals, which works well for displaying summary information in my listings. I have a single field that summarizes the number of related devotionals for this purpose. The problem is…
Berin Loritsch
  • 11,400
  • 4
  • 30
  • 57
0
votes
1 answer

Error while creating an index on Elasticsearch with custom analyzer

I am trying to create an index with a custom default analyzer. I already checked the following questions: Analyzer not found exception while creating an index with mapping and settings How to specify an analyzer while creating an index in…
Kralizek
  • 1,999
  • 1
  • 28
  • 47
0
votes
2 answers

Without using curator how can I delete or expire indices which are old example in my case 30 days older indices need to be deleted automatically

I want to delete all logs which are 30 days older from today example logstash filename is below logstash-2016-11-30 is there any configuration to which I can set a value by which automatically it will remove old data. and which is the better…
0
votes
1 answer

Elasticsearch and Spring Data: how to reindex with alias

I have a bean annotated as such: @Document(indexName = "foo", type = "bar") public class BarEntity { private String someField = ""; } "foo" is an alias in elasticsearch to foo-2016-11-04: "foo-2016.11.04" : { "aliases" : { "foo" : { } …
GlassBeaver
  • 196
  • 4
  • 15