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

ElasticSearch: Weird problem in inserting documents to ElasticSearch indices when a template is present

I am trying to do some testing in ElasticSearch. I am able to populate everything as required but whenever I try to put our project's default template and then insert, the data is not ingested in the index (http calls are successful though). Upon…
3
votes
0 answers

Sort parent documents based on best scored (matching) nested field value using Elasticsearch

Elasticsearch version: 7.6.2 I have the following simplified structure and query below. PUT /products { "mappings": { "properties": { "name": { "type": "text" }, "description": { "type": "text" }, …
3
votes
1 answer

Runing Elasticsearch 7.6.0 using docker-compose

I'm trying to run elasticsearch 7.6.0 using docker-compose. I'm getting an Error. Below is the docker-compose.yml version: '2.2' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0 container_name:…
k.hammouch
  • 153
  • 1
  • 7
3
votes
1 answer

How to get mapping for an index in elasticsearch nest?

I have written following functions and getting response like shown below: public async Task ShowMapping(string indexname) { var result =await _client.Indices.GetMappingAsync(new…
Anand Maurya
  • 101
  • 2
  • 9
2
votes
1 answer

Cannot instantiate interface 'ElasticsearchClient'

The official Elasticsearch docs tell to instantiate ElasticsearchClient like this: ElasticsearchClient client = new ElasticsearchClient(transport); Once I write this in my Grails 3 application with Gradle build management, I get the following…
philburns
  • 310
  • 4
  • 18
2
votes
0 answers

How to get profile information about the `rewrite` section in an elasticsearch profile

The elasticsearch docs mention the following (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-profile.html#rewrite-section) The rewriting process is complex and difficult to display, since queries can change drastically.…
Tessmore
  • 1,054
  • 1
  • 9
  • 23
2
votes
0 answers

Elasticsearch error Magento 2.4 reindex Catalog Search index

Suddenly, I think we made no changes, we have an error reindexing Catalog Search: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [category_position_25536] cannot be changed from type [text] to…
Gijsve
  • 78
  • 2
  • 11
2
votes
2 answers

Unable to retrieve version information from Elasticsearch nodes. Request timed out

I am installing Kibana and elasticsearch version 7.15.1 as per instructions mentioned in the link Install Kibana with Docker The commands I am using are docker network create elastic docker pull…
2
votes
0 answers

Elasticsearch - repository_exception

While restoring the index via snapshot, I am getting repository_exception. Error - Could not read repository data because the contents of the repository do not match its expected state. This is likely the result of either concurrently modifying the…
2
votes
0 answers

Fetch index name from alias during ingest in elasticsearch ingest plugin java

I am using Elasticsearch v7.9 and need to get index name during ingest instead of alias name. Alias name = employees_prod and Index Name = employees POST /employees_prod/_doc?pipeline=test-pipeline&refresh { "name": "Quick Brown Fox", …
2
votes
3 answers

Painless Elasticsearch Script for Filtering Nested Array Objects

My use case is something similar to following. I have nested array of objects warehouses and trying to filter based on the last element of the array. I am getting some results but not correct one. Like to know how exactly it is working though as…
2
votes
0 answers

ElasticSearch 7.9 nodes going down when GC runs

I have an AWS hosted ElasticSearch cluster, which fails when heap reaches 75% and the (CMS) garbage collector runs. The cluster runs ES version 7.9 with 3 dedicated Master nodes (r5.large.elasticsearch) and 4 Data nodes…
2
votes
2 answers

Elasticsearch tokenizer to keep (and concatenate) "and"

I am trying to make an Elasticsearch filter, analyzer and tokenizer to be able to normalize searches like: "henry&william book" -> "henrywilliam book" "henry & william book" -> "henrywilliam book" "henry and william book" -> "henrywilliam…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
2
votes
1 answer

one kibana connect to multiple elastic clusters

I have the latest 7.10 elastic and Kibana on Kubernetes, I couldn't understand from docs if there's an option to connect multiple elastic clusters to one Kibana (as in Grafana)? If yes can you please share documentation? I only see cross cluster…
NoamiA
  • 521
  • 4
  • 19
2
votes
1 answer

What if all filter not applied? filter with null FIELD VALUE not NULL value in DOC

I have search for subjects. Teacher can add multiple subjects and students can search those subject and can apply filter on resulted data. student can filter by LEVEL, CURRICULUM, LOCATION. My query is what if student has not applied LOCATION…
1 2
3
20 21