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

How can I do matching on a field containing text that alternates with spaces?

I have an Elasticsearch v2.4.1 index in which I store values from a JSON feed. Sometimes I get values separated by spaces in some fields, like: "titulo" : "E l a ñ o q u e e l m e r c a d o d e j ó d e a s u s t a r" This happens around 15% of the…
0
votes
2 answers

Elasticsearch autocomplete sort by length

I want to make an autocomplete with elasticsearch I have tried naive prefix matching,…
0
votes
1 answer

How to reindex or migrate elasticsearch 1.x to 5.x data

I have copy of old data i.e. Elasticsearch 1.x, I want to migrate or reindex in Elasticsearch 5.x. what are the methods and better way to do this ?
0
votes
1 answer

Fuzzy contains query with elasticSearch

How can I perform a query that do fuzzy and contains on strings? Let's say I have the following document: { ... "name":"william shakespeare" ... } I would like to receive the document for the following queries: "William" (will return all…
Shai M.
  • 1,284
  • 4
  • 17
  • 30
0
votes
4 answers

Elk Elasticsearch logstash configuration

I'm new in ELK. In fact, I already installed Logstash, elasticsearch, and kibana on ubuntu 14.04. when I try to test ELK with an existing log file on my ubuntu, the logstash didn't load log into elasticsearch and showing nothing. This is my logstash…
0
votes
1 answer

Named Queries using Nest and Elastic Search

I'd like to name my queries that I send to my elastic search instance (version 2.3) so i can see the name in my log file. I use a .net application which uses NEST.2.1.1 to interact with the elastic search index. According to the ES documentation I…
zappa
  • 791
  • 8
  • 16
0
votes
1 answer

ElasticSearch 2.1 Java Example

I have been trying to write a Simple ElasticSearch Java search using some of the examples given on the websites. I have not implemented Spring or other frameworks. Most elastic-search examples appear to be incomplete code samples. Some of the…
Shawn
  • 2,679
  • 2
  • 15
  • 26
0
votes
1 answer

Complex search within elasticsearch using NEST (.net)

I am working with elasticsearch 2.3.4 (can update to 5 but its still 1 week since release and waiting for reviews on how its working) I am trying to create asearch within my .net class ISearchResponse apiResponse =…
IB.
  • 1,019
  • 3
  • 13
  • 21
0
votes
1 answer

Elasticsearch in Java: SearchHit fragments get shortened

I use highlighting that is already part of Elasticsearch. It work fine. For example if I have next "words" indexed : verylongwork that isweryweeylongf tes!tr%31=!"$:_ae test !"daca214xx And if I search for -> that .The result is as it folows ->…
mirzak
  • 1,043
  • 4
  • 15
  • 30
0
votes
2 answers

How to aggregate data by an field in elasticsearch?

I'm using kibana 4.4.1 and in elasticsearch I store the status of PC, only when PC status is changed (open, closed, warings, etc) My data into Elasticsearch looks like: { "status_id":1 , "pc":"lpt001" , "date":"2016-10-25T17:49:00Z" } {…
Ovidiu Rudi
  • 191
  • 1
  • 15
0
votes
0 answers

Elasticsearch - Give more score for query based on another field

Consider the next mapping: { "properties": { ... "name": { "index": "analyzed", "store": "no", "type": "string" }, "category_id": { "index": "not_analyzed", "store": "yes", "type": "integer" …
coldmind
  • 5,167
  • 2
  • 22
  • 22
0
votes
1 answer

Passing index as a parameter in the python query for elasticsearch

I have a piece of python query to retrieve data from elasticsearch:- es=Elasticsearch(['http://localhost:9200']) res = es.search(index="index1", doc_type="log",size=1000, from_=0, body={ "query": { "match": { ....Match condition …
0
votes
1 answer

How to update an index/indice in Elasticsearch?

I've already got my index (response_summary) created using logstash, which puts data into the index from a MySQL database. My concern here is, how will I be able to update the index manually whenever a new set of records are being added to the…
0
votes
1 answer

Add new field to a nested object

Elasticsearch 2.3.3 I can't add a new field into an existing document via update API. How can I add it? Below you can see Elasticsearch Python API script for the document update. The update query is assigned to the query variable. import pdb,…
srgbnd
  • 5,404
  • 9
  • 44
  • 80
0
votes
2 answers

Enable and Specify ttl for elasticsearch index using elasticsearch-py client

Can someone point me to the right direction to specify the elasticsearch index ttl time for documents, using the elasticsearch-py client ? I tried the official documentation but that does not looks very helpful.
bawejakunal
  • 1,678
  • 2
  • 25
  • 54