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

ElasticSearch | Filter Query

I am using elasticsearch-1.7.1 and java dependency is org.elasticsearch elasticsearch 1.7.1 Problem : I am using in a clause in ES but when I query ES with filtered query it is giving…
0
votes
1 answer

Match partial query string with complete document in elaticsearch index

I require to search against documents of small text length added to an index in elasticsearch and want to get search results only if the search query matches any of my document text completely. E.g. Let these be two documents added to index. 1.) { …
0
votes
3 answers

Elasticsearch - use a "tags" index to discover all tags in a given string

I have an elasticsearch v2.x cluster with a "tags" index that contains about 5000 tags: {tagName, tagID}. Given a string, is it possible to query the tags index to get all tags that are found in that string? Not only do I want exact matches, but I…
Redtopia
  • 4,947
  • 7
  • 45
  • 68
0
votes
0 answers

elasticsearch index vs type strategy

I'm kind of new to elasticsearch, and would really appreciate the help, in my company we have a metadata repository, the repository is structured this way: we have groups of entities of different types, lets say entitiesGroupA: [Aentity1, Aentity2,…
0
votes
1 answer

Elasticsearch - how do I remove s from end of words

Using Elasticsearch 2.2, as a simple experiment, I want to remove the last character from any word that ends with the lowercase character "s". For example, the word "sounds" would be indexed as "sound". I'm defining my analyzer like this: { …
Redtopia
  • 4,947
  • 7
  • 45
  • 68
0
votes
0 answers

Querying Elasticsearch and using analyzers

I am using elasticsearch on the yii2 framework using the elasticsearch extension. I have to index some location data in elasticsearch as follows: id countryName stateName cityName addressName I sould be able to find a location based on provided…
user2707590
  • 1,066
  • 1
  • 14
  • 28
0
votes
0 answers

ElasticSearch - Get first document with distinct field

I only want to get one document from many that have the same field value. The following documents are indexed: { "name": "John", "position": 1 }, { "name": "Ben", "position": 1 } When making a search request for the term position…
0
votes
0 answers

In BoolQueryBuilder Should clause in not working

My ES Method public VendorSearchResult searchVendors(String query, Locale country, CostType... costtypes) { try { BoolQueryBuilder bqBuilder = new BoolQueryBuilder(); bqBuilder.must(new TypeQueryBuilder(VENDOR_INDEXTYPE)); if…
Shreyas Rao B
  • 193
  • 4
  • 17
0
votes
1 answer

Elasticsearch : Cannot connect using python when shield is installed

I am using elasticsearch 2.3.1 and python 2.7. I am trying to create a simple instance and testing as esInstance = Elasticsearch(['https://'+shield_uname+":"+shield_pass+"@"+server+":"+port]) print esInstance.info() but i…
AbtPst
  • 7,778
  • 17
  • 91
  • 172
0
votes
1 answer

Using ElasticSearch Bulk to update and create documents dynamically?

I'm currently using elasticsearch and running a cron job every 10 minutes that will find newly created/updated data from my DB and sync it with elasticsearch. However, I want to use bulk to sync instead of making and arbitrary amount of requests to…
guyforlowbro
  • 341
  • 2
  • 3
  • 15
0
votes
1 answer

Can index.number_of_replicas be set as a static index setting in ES v2.x?

In elasticsearch v1.x I could set index.number_of_replicas statically (in the elasticsearch.yml file): # Set the number of replicas (additional copies) of an index (1 by default): index.number_of_replicas: 0 However, I am now putting together the…
Owen
  • 47
  • 1
  • 7
0
votes
1 answer

Mapping logical queries to elasticsearch query DSL

I am fairly new to Elasticsearch. I am trying to map basic logical queries to elasticsearch query DSL. I understand that bool is used to make boolean(logical) queries to ES. I can map queries like if (cond1 && cond2), but I cannot understand how to…
shiladitya
  • 2,290
  • 1
  • 23
  • 36
0
votes
1 answer

logstash - add only first time value

Here's what I want, it's a bit the opposite of incremental data. some data's are logs with a specific token, and I want to be able to keep (or to show in Elasticsearch) only the first submitted data, the oldiest information of each token. I want to…
Yoni Elyo
  • 487
  • 6
  • 23
0
votes
1 answer

Elasticsearch mapping username incorrectly

I am trying to create a visualize in Kibana dashboard. Terms table that has a "-" in the field splits the item up I have a "user" field in Kibana which is like p-john, p-henry Whenever I query the user it splits the name and shows me the result…
Dheeraj
  • 297
  • 1
  • 5
  • 17
0
votes
1 answer

Completely stopping elasticsearch server and starting again, using java

I am working on Elastic search v-2.3.1. And i have added ReadOnlyRest plugin for Auth purpose. To add users, i need to make changes in elasticsearch.yml, To add users in yml file i used snakeyaml from Java. successfully done. Once the user is added…