Questions tagged [elasticsearch-7]

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

314 questions
1
vote
1 answer

ElasticSearch Filter by sum of nested documents

I am trying to filter products where a sum of properties in the nested filtered objects is in some range. I have the following mapping: { "product": { "properties": { "warehouses": { "type": "nested", "properties": { …
nattfodd
  • 1,790
  • 1
  • 17
  • 35
1
vote
1 answer

How to avoid index explosion in ElasticSearch

I have two docs from the same index that originally look like this (only _source value is shown here) { "id" : "3", "name": "Foo", "property":{ "schemaId":"guid_of_the_RGB_schema_defined_extenally", "value":{ …
LxL
  • 1,878
  • 2
  • 20
  • 39
1
vote
1 answer

Elasticsearch cross-index query with aggregations

I use: Elasticsearch 7.7 , Kibana 7.7 For example, lets take two indexes: User index with simple mapping: PUT /user_index { "mappings": { "properties": { "user_id": { "type": "text" }, "user_phone": { "type": "text" }, …
ArtSav
  • 132
  • 1
  • 10
1
vote
1 answer

Elasticsearch Java High Level Client 7.3.1 :Aggregation for Index wise hits in search Response

I am using ES 7.3.1 and Elasticsearch high level client 7.3.1 We have an alias which comprises of 3 indexes. Alias Name : employee_search Indexes in this alias : contract_employee,permanent_employee,client I am searching over this alias…
1
vote
1 answer

Elasticsearch _count query request cache

Taken from docs: https://www.elastic.co/guide/en/elasticsearch/reference/7.9/shard-request-cache.html#shard-request-cache By default, the requests cache will only cache the results of search requests where size=0, so it will not cache hits, but it…
Evaldas Buinauskas
  • 13,739
  • 11
  • 55
  • 107
1
vote
0 answers

Kibana is redirecting me to 302. Not able to curl from the machine

ELK 7.8 is running on AWS EC2. Kibana is redirecting me to 302. Curl output for kibana pasted here: ubuntu@ip--128-43-:/etc/kibana$ curl -IL .128.43.:5601 HTTP/1.1 302 Found location: /spaces/enter kbn-name: ip--128-43- kbn-license-sig:…
soujanya
  • 25
  • 3
1
vote
1 answer

Elasticsearch query not giving expected result

This is the doc I have in my index(there can be several too): { "_index" : "meeting", "_type" : "meeting", "_id" : "27", "_score" : 1.0, "_source" : { "createTime" : "2020-07-20T14:49:05.803", …
user404
  • 1,934
  • 1
  • 16
  • 32
1
vote
1 answer

Add nodes to make local cluster Elasticsearch [7.8]

I'm learning about Elastic Search (v7.8) so I made a local cluster to test it. I made 3 virtual machines with Ubuntu 18, same amount of resources, in the same network with the IPs: 192.168.1.77 192.168.1.76 192.168.1.75 All correct individual…
1
vote
0 answers

UncategorizedExecutionException[Failed execution]; nested: IOException[Connection is closed] - ElasticSearch

I am running the reindex using the Java client from 5.5 to 7.8 ReindexRequestBuilder reIndexRequest = new ReindexRequestBuilder(client, ReindexAction.INSTANCE); // Basic configuration …
Harry
  • 3,072
  • 6
  • 43
  • 100
1
vote
0 answers

Aggregation in elasticsearch across indices is not working

I was using elasticsearch 5.5 where I have one index and 3 types like below, Index Name : Main Types : TypeA, TypeB, TypeC In 5.5, I was running aggregation like this, AggregationBuilder ag =…
1
vote
1 answer

log aggregation in elasticsearch

I am using elasticsearch 7.8 and I have the entries in the index like below, {"_id" : 1,"sourceip":"1.1.1.1", "data" : "this is a sample input", "processedflag" : true} {"_id" : 2,"sourceip":"1.1.1.1", "data" : "this is a sample input",…
Harry
  • 3,072
  • 6
  • 43
  • 100
1
vote
3 answers

Elastic Search: Alternative of flattened datatype in Elastic Search 7.1

I have two Elastic Search version one is 7.3 and the second is 7.1. I am using flattened data type for Elastic Search 7.3 and I also want to use this data type in Elastic Search 7.1. So that I can store my data as I stored in Elastic Search 7.3. I…
Deep Dalsania
  • 375
  • 3
  • 8
  • 22
1
vote
0 answers

Reindex API vs using logstash for reindexing from elastic search 5.5 (remote) to elastic search 7.7 (local)

I am looking for migrating the data from elastic search version 5.5 to 7.7, I found the following two ways, 1) Re_Index API using Java API :…
1
vote
1 answer

Configure build path problem in eclipse - java

I upgraded the elastic search from version 5.5 to 7.7, everything is working as expected. But when I try to get the Total hits, I get the following error searchResponse.getHits().getTotalHits() The type org.apache.lucene.search.TotalHits cannot…
Harry
  • 3,072
  • 6
  • 43
  • 100
1
vote
1 answer

Wrong results with Russian stemmer

I have index products with these analyzer settings. Search with query стекло returns empty result but with query стеклоы it works well. PUT /products { "settings": { "analysis": { "filter": { "russian_stop": { "type":…