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
2
votes
0 answers

vm.max_map_count is set to 262144 but still getting an Error

I am trying to install Elasticsearch in minikube but I cannot proceed because the pod keeps on restarting. ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] {"type":…
arjay0601
  • 475
  • 2
  • 8
  • 16
2
votes
0 answers

ElasticSearch: query_string '*' wildcard VS prefix query

I wrote a query for get all clients whose name start with c. I am getting the same results with the two following queries: #Q1 Query String and * wildcard GET /client/_search { "query": { "query_string": { "default_field":…
César
  • 143
  • 2
  • 14
2
votes
1 answer

How do I get Elasticsearch to highlight a partial word from a search_as_you_type field?

I'm having trouble setting up a search_as_you_type field with highlighting following the guide here https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-as-you-type.html I'll leave a series of commands to reproduce what I'm seeing.…
James
  • 2,742
  • 1
  • 20
  • 43
2
votes
1 answer

Java High Level Rest Client Memory Usage In Range Queries

Following function run range queries on the elastic search, when I use this function repeatedly in a multithread environment, The memory increases drastically until the application crashes. Does anyone have a solution to this problem? /** …
2
votes
2 answers

Elasticseach cluster won't elect new master after losing the previous ones on ECK

I have an 7.4.0 ES cluster using ECK 1.0 and after my 3 dedicated master nodes got out of disk space, I deleted them along with the volumes to test a critical scenario. Once the new eligible masters were created, they couldn't elect a new member.…
2
votes
1 answer

How to find polygons that contain a given point in Elasticsearch

I need to build a query on a database with around 50k terrain polygons (stored as geo_shape polygons on ES) where I give a point and it returns every polygon that contains this point. I managed to do it using percolate queries (example below) but I…
2
votes
0 answers

Elasticsearch multiple suggestions with more advanced cases like matching prefix in the middle of a sentence

My use case : I have a search bar when the user can type his query. I want to show multiple types of search suggestions to the user in addition to a regular query suggestion. For example, in the screenshot below, as you can see in this screenshot,…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
2
votes
1 answer

After upgrading to Elasticsearch v7, queries return all results

I am trying to upgrade my cluster Elasticsearch v7, my queries seem to return a lot of results, even for impossible requests Previously, when searching "qdsssq", my search engine would find nothing. After upgrading to v7, a similar query returns…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
2
votes
2 answers

"master_not_discovered_exception" when trying to configure Elastic Search on remote server

I'm trying to configure Elastic Search on one of our remote servers. I've installed it with .msi setup file (v7.1.1) and configured the firewall for 9200 and 9300 ports. When I set network.publish_host to server ip it gave me this error the default…
emrea
  • 117
  • 1
  • 14
1
vote
0 answers

Can we apply TTL functionality on ES version 7.17.6?

Use Case: Our use case requires Elasticsearch to automatically delete documents older than a specific time period on a regular basis. For instance, if we have 200 documents and 75 of them are older than 2 years, Elasticsearch should automatically…
1
vote
0 answers

Elasticsearch 8: new OOM kills in comparison with ES7

We test Elasticsearch 8.7.0 cluster setup (to migrate from ES 7.17.9) and we face the problem that the voting-only node in the testing cluster is sometimes killed by OOM. We use almost identical setup like in our current production ES7…
tom-itsx
  • 31
  • 3
1
vote
0 answers

Magento Email and Opensearch connectivity issue

I have bought a fiber theme from the themeforest, I've installed it on my AWS EC2 ubuntu 22.04 machine. I choose a fiber quickstart installation process which was came up with a magento 2.4.5 version. Now I'm facing two problems; is the AWS…
1
vote
1 answer

Why is elasticsearch only returning 5 highlights for a field with an array of values that have more matches based on the query?

To demonstrate the issue here is a dynamically created index with single document: PUT /test_highlight_number/_doc/1 { "id": 1, "names": ["john 1","john 2", "john 3", "john 4", "john 5", "john 6", "john 7", "john 8"] } When I run the…
1
vote
3 answers

Can we query on Field if its mapping is not defined in ES?

Is it possible to Query on field which is not mapped with order?? Using Elastic search 7.4 I've created a index with with only 1 mapping Index name - test_date_mapping_with_null Dynamic mapping - False properties - city -> text. { "settings" : { …
1
vote
1 answer

Elasticsearch 7.17.7 use up to 8.1GB ram on Linux Ubuntu 22.04.1. LTS causing slowness on device

I install Elasticsearch 7.17.7 on my local machine Linux Ubuntu 22.04.1 LTS ( not using virtual machine ) To start elasticsearch I run this command in terminal sudo systemctl start elasticsearch.service After it successfully start and run I notice…