Questions tagged [elasticsearch-5]

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

With Elasticsearch 5, Elastic takes a new approach on making its products work together by using unified release schedules. Each component of the Elastic Pack will be released at the same time with the same version. Elasticsearch 5 comes with shiny new features. Among others:

  • Index Shrinking
  • API for rolling over time-based indices
  • A new scripting language: Painless
  • New redesigned completion suggester
  • Re-index From Remote

Elasticsearch 5 documentation

1372 questions
0
votes
2 answers

Conditional queries for ElasticSearch 5.x (elasticsearch-rails/elasticsearch-model)

New to ElasticSearch and I was wondering if there is a way to construct conditional queries/filters. I am working with Rails, so I suppose it has to be on that particular level, as I couldn't find anything that points to conditional queries at…
0
votes
1 answer

Filter context for should query in elasricsearch?

I have a must query which looks like this: { "query": { "bool": { "must": [{ "match": { "section": { "query": "word1", "boost": "3" …
anshaj
  • 293
  • 1
  • 6
  • 24
0
votes
1 answer

How to query two different fields with different query terms in same request. ElasticSearch 5.x

new to ElasticSearch - start loving it. I am working on a Rails application (using elasticsearch-rails / elasticsearch-model). I have two fields - both strings consisting of Tags. about_me & about_you Now I was to query the about_you of another…
0
votes
1 answer

Using regular expression while specifying mapping char filter

ElasticSearch supports mapping char filter, where in one can specify a key and its corresponding value. I want to use regular expression in key. The regular expression I am trying is basically to catch all uppercase symbols ending with I and convert…
Taranjeet
  • 583
  • 2
  • 9
  • 20
0
votes
1 answer

Autocomplete in elastic search

i am planning to make an elastic search based auto complete module for an e commerce website.i am using edge_ngram for suggestions.I am trying out this configuration. **My index creation :** PUT my_index { "settings": { "analysis": { …
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

ElasticSearch: Grandchild/child/parent relations not working properly

I'm facing some odd behavior of elastic-search while searching grand child. My grand child doesn't recognizes each n every parent document. When I ask elastic-search to return me children of a parent, it returns all the possible hits. Then when i…
0
votes
1 answer

Dynamically get multiple entries in a field without changing the mapping in ElasticSearch?

I have a JSON file which looks like this: {'name':'John Doe', 'work':[{ 'company':'Google', 'duration':'2 years', 'desc':'some long text'}, { 'company':'Yahoo', 'duration':'3 years', 'desc':'some long text'}]} There can be a number of…
anshaj
  • 293
  • 1
  • 6
  • 24
0
votes
1 answer

ElasticSearch 5 for content searching settings and query with ngram

this is my ES5 index settings : dev: { settings: { index: { number_of_shards: "5", provided_name: "dev", creation_date: "1491735064046", analysis: { filter: { trigrams_filter: { type:…
uri.lazar
  • 329
  • 3
  • 10
0
votes
1 answer

AWS Elasticsearch Operation timed out

I have created a ES cluster on AWS Elasticsearch service with the following configuration (in Terraform format, but the general configuration should be readable by human easily) resource "aws_elasticsearch_domain" "es" { domain_name =…
Hello lad
  • 17,344
  • 46
  • 127
  • 200
0
votes
2 answers

elastic search 5.1.1 unable to install elasticsearch-head?

I've just install latest elasticseach on my mac using brew install elasticsearch, and it can run and I can see contents from localhost:9200. But I tried to install web-browser for it. So the stack over flow says there's a "plugin" command under…
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
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
1 answer

Kibana Index Pattern showing wrong results

I am using ELK stack in which i have used jdbc input in logstash I have created 2 indexes users employees Both the indexes have one same column objid Logstash config file input { jdbc { jdbc_driver_library =>…
0
votes
0 answers

How can I set a parent / child relationship

I'm trying to create two documents, one build a child of the other. My mapping config is like this 'mappings' => [ "roadType" => [ "properties" => [ ] ], "carType" => [ "_parent" => [ …
ToujouAya
  • 593
  • 5
  • 24
0
votes
1 answer

how do I scan and scroll with elasticsearch-js and elasticsearch 5.0

I was using elasticsearch-scrolltoend as a plugin previously, after upgrading to 5.0 the plugin doesn't seem to work. How can I scan and scroll a large dataset with elasticsearch 5.0? I also received an error when attempting to use the…
ilovett
  • 3,240
  • 33
  • 39