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
1 answer

How to get multiple type search results from elasticsearch index?

So, I have myindex elastic search index with two types type1 and type2. Both the type has two common fields as name and descriptionas below: { "name": "", "description": "" } I want 5 results from type1 and 5 results from result2 if I specify the…
Rishikesh Darandale
  • 3,222
  • 4
  • 17
  • 35
0
votes
1 answer

prevent BooleanQuery$TooManyClauses error elasticsearch

Below is my index setting. I'm using shingle filter for xyz type of index for field synonym. { "settings": { "analysis": { "analyzer": { "my_analyzer_keyword": { "type": "custom", "tokenizer": "keyword", …
0
votes
1 answer

Stemming in elastic search replacing the original string

I used the following settings to create ES index. "settings": { "analysis" : { "analyzer" : { "my_analyzer" : { "tokenizer" : "standard", "filter" : ["standard", "lowercase", "my_stemmer"] …
Rohit Patwa
  • 1,092
  • 1
  • 9
  • 12
0
votes
2 answers

How to use AND codition in ElasticSearch?

I want to search with two fields in ElasticSearch, fields are: 1) SearchTerm (Textfield) 2) City (Textfield) If I use mysql Query would be: if both has value select * from table where term = 'abc' AND city = 'mexico' if only term has…
0
votes
1 answer

ElasticSearch with AND condition

I'm trying to implement search with Elastic Search but having some prob: What I Have I'm trying to implementing ElasticSearch I've 2 fields which are : 1) Search term (TextField) 2) City Name (Text Field) Now what I want here is if user enter…
0
votes
0 answers

Improving speed elasticsearch cluster

i have setup 3 node clusters (24 core each). when i run query that time it's giving slow result. but i have created a stand alone server and ran same query that time giving fast result. my cluster and data details:- i have created 12 indexer and…
0
votes
1 answer

How to get the number of repetitions of a word in articles using aggregation?

I use 'term aggregation' to know how many times a word is repeated in elasticsearch. This method works properly for short string filed's. my simple term aggregation : { "query": { "bool": { "must": [ { "query_string":…
MOB
  • 853
  • 2
  • 13
  • 28
0
votes
0 answers

Get all records of a specific type mapping in Elasticsearch

How do I get all records from Elastic search that belong to a given type within an index. I use the below to get all records that belong to storedb index : curl -XGET 'http://:9200/storedb/_search?pretty=true&q=*.*' But I can't seem to find…
user2405589
  • 881
  • 2
  • 14
  • 32
0
votes
1 answer

NuSearch Nest example - nested type

I'm following the fantastic example of using NEST and having trouble understanding the mapping logic: Per my understanding, the models hierarchy is: Package ... (some properties) List List Each one of the nested…
eyal
  • 369
  • 1
  • 5
  • 14
0
votes
0 answers

CSV data saving Elasticsearch using Logstash

I want to save CSV data in Elasticsearch using Logstash to receive the following result: "my_field": [{"col1":"AAA", "col2": "BBB"},{"col1":"CCC", "col2": "DDD"}] So, it's important that CSV data gets saved as the array [...] in a specific…
Dinosaurius
  • 8,306
  • 19
  • 64
  • 113
0
votes
1 answer

Elastic search combine bool/filter Query

I am trying to search two points in same query like below. but results returning empty. "query": { "bool": { "must": { "match_all": {} }, "filter": [{ …
Karesh A
  • 1,731
  • 3
  • 22
  • 47
0
votes
1 answer

object test is not a member of package org.elasticsearch

I am trying to use class ESTestCase from the package org.elasticsearch.test.ESTestCase I am following this link -> https://www.elastic.co/guide/en/elasticsearch/reference/current/using-elasticsearch-test-classes.html I am using sbt project here are…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
1 answer

ElasticSearch query doesn't return documents that have an "empty" nested property

I'm running into a weird problem. I have a document mapping for which one of the properties is a nested object. { "userLog": { "properties": { "userInfo": { "userId": { "type": "text" …
beardo34
  • 58
  • 1
  • 1
  • 7
0
votes
1 answer

elasticsearch 5 : search with exclude

I try to search on an index for person (by first name and last name) , this part is pretty simple : GET /my_index/persons/search { "query": { "query_string": { "query" : "john doe" } } } In addition I want to…
Senorihl
  • 312
  • 2
  • 16
0
votes
1 answer

How do normalization and internal optimization of boosting work? And how does that affect the relevance?

I'm new to elastic search. I'm having trouble understanding the calibration and scaling of boost values for fields in a document. As in how should we decide the boosting values for field so that it works as expected. I've gone through some of the…
twarzo
  • 63
  • 2
  • 9