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.
Questions tagged [elasticsearch-7]
314 questions
1
vote
1 answer
Remove selected filters from Nested and Aggregation in Elasticsearh to perform filtered search
I am trying to use elasticsearch (VERSION 7.8.0) to perform Faceted search and have gotten something to work. However I want to remove the selected filters from my returned aggregations. E.g. If I had a shop selling clothes and I filter the products…

PanPipes
- 4,584
- 1
- 17
- 24
1
vote
1 answer
cross cluster elasticsearch on kuberntes
I have 2 elastics cluster on 2 different kubernetes VMS I tried to connect with cross cluster . but its not working, I add detailed below can someone assist and tell me what I did wrong or missed?
I tried to connect from one elastic to another as…

NoamiA
- 521
- 4
- 19
1
vote
0 answers
Why doesn't the Keyword analyzer applied to a Text field return results when the pattern contains a dash in Regexp search query?
I have created a small example to demonstrate the specific issue I'm having. Briefly, when I create a multi-field mapping using a field type of Text and the Keyword analyzer, no documents are returned from an Elasticsearch Regexp search query that…

ewilan
- 638
- 6
- 16
1
vote
0 answers
How to append index level information to documents when returning search results
Relatively simple question -- I want to append index-level information onto each document when returning those documents. I do not want to copy that information into each document (makes it harder to adjust that information if it changes). I've…

ali_wetrill
- 173
- 1
- 9
1
vote
1 answer
Elastic search apply boost based on nested field value
Below is my indexed document
{
"defaultBoostValue":1.01,
"boostDetails": [
{
"Type": "Type1",
"value": 1.0001
},
{
"Type": "Type2",
"value": 1.002
},
{
"Type": "Type3",
"value": 1.0005
…

Akash Salunkhe
- 194
- 2
- 13
1
vote
0 answers
Need help regarding relevancy score sorting in elastic search
### Settings for Indexing ###
import requests
import json
import logging
settings = {
'settings': {
'index': {
'number_of_shards': 1,
'number_of_replicas': 1,
'similarity': {
…

Soumya Ranjan Sahoo
- 105
- 7
1
vote
1 answer
Elastic search apply boost only for certain documents based on their field value
Below are my indexed documents:
{
"id": 123,
"details": {
"boostType": "Type1",
"boostFactor": 1.00022
}
}
{
"id": 456,
"details": {
"boostType": "Type2",
"boostFactor": 1.00022
}
}
So I want to apply boost to only the…

Akash Salunkhe
- 2,698
- 2
- 16
- 31
1
vote
0 answers
Elastic boost score based on field value
I have documents in below format
{
name:"Abc",
newboostFactor: 1,
boost: {
boostType: "Type1",
boostFactor: 1.000033
}
}
I want to apply boostFactor based on boostType, suppose if boostType is "Type1" then…

Akash Salunkhe
- 194
- 2
- 13
1
vote
0 answers
scriptScoreQuery implementation in elastic4s
I use elastic 7.6 and Elastic4s client 7.6.0
I am working on a feature in that requires to change the ‘_score‘ of a subQuery in a bigger one:
in all my big query would look something like this :
{"query": {
"function_score": {
"query":…

fatiha_reja
- 11
- 2
1
vote
1 answer
Something inside Elasticsearch 7.4 cluster is getting slower and slower with read timeouts now and then
Regularly the past days our ES 7.4 cluster (4 nodes) is giving read timeouts and is getting slower and slower when it comes to running certain management commands. Before that it has been running for more than a year without any trouble. For…

Lourens Rozema
- 53
- 6
1
vote
1 answer
Elasticsearch MatchQuery is returning wrong results
I am using a matchQuery to query Elasticsearch in Java. Below is my query:
sourceBuilder.query(QueryBuilders.matchQuery("TransactionId_s","BulkRunTest.20Nov20201446.00"));
The field TransactionId_s is not a keyword. And I am expecting the matchQuery…

Hemanth Annavarapu
- 823
- 3
- 19
- 37
1
vote
2 answers
Match all exact words in a query
I want to create a query using the ElasticSearch Java API which only matches (1) complete words and (2) all of the words from the searchquery. Here is an example for that:
Text:
hello wonderful world
These should match:
hello
hello wonderful
hello…

Peter
- 1,679
- 2
- 31
- 60
1
vote
2 answers
Is there a character limit on an individual word within a match phrase query in elastic search?
Fairly new to Elastic Search so may have to bare with me, I'm running into a problem where if I search for a document using 20 characters or less, the document appears, however any more characters within the same word within the query, I get no…

Jamie Briggs
- 31
- 5
1
vote
1 answer
Elasticsearch shard sizes and JVM memory for elastic cloud configuration
I have a 2-node ES cluster (Elastic Cloud) with 60GB heap size.
Following are my indexes and number of shards allocated.
green open prod-master-account 6 0 6871735 99067 4.9gb 4.9gb
green open prod-master-categories 1 1 221 …

Razeen Muhajireen
- 11
- 1
1
vote
1 answer
How to implement ElasticSearch new index creation after every fix number of days?
How to implement ElasticSearch new index creation after every fix number of days and if its possible then how to search over all the previous indexes? Currently we have only one index which has all the data. I looked at the RollOver API of ES, is…

pramodi
- 11
- 2