Questions tagged [elasticsearch-8]

30 questions
0
votes
1 answer

ElasticSearch is not returning the document in correct order

For the below query, I am searching the text "christ". the result is not showing the correct order. I have a record for "Christine" but it is not showing as a first document. Can you help me to fix this order issue? I am using Elasticsearch 8.5.3.…
0
votes
1 answer

Elastic Search > date histogram aggregation and sort by the same date

Below is my sample document { "totalPrice": 122.24173769217346, "createdAt": "2023-07-24T06:25:44.961", "domain": "mystore.wix.com" } My requirement is to retrieve the records where the domain must match…
Vivek
  • 341
  • 1
  • 5
  • 15
0
votes
0 answers

MAX_LOCKED_MEMORY=unlimited setting in Elasticsearch 8.x

Is MAX_LOCKED_MEMORY=unlimited settings in /etc/default/elasticsearch (on Ubuntu) still necessary in Elasticsearch 8.x? It looks like settings in /etc/default/elasticsearch system configuration file is quite simplified and the commented…
tom-itsx
  • 31
  • 3
0
votes
1 answer

ElasticSearch 8 : mapping template not applied to indices

I create an index template affecting all indices matching "shoppers-*" but then, when creating an index of this name format, the template is not applied, the mapping is not retrieved. create template PUT /_index_template/my-template { …
Lionel Tressens
  • 461
  • 5
  • 13
0
votes
0 answers

Computing Aliases while creating the Index Template in Elastic Search 8.x

I have created the index template in elastic search 8.5.3. Here, I need the alias creation with a dynamic name. For example, if the index name is, es.contact100 then the alias should be as.contact100.model. I used this one, { "as-{index}": {} } But,…
0
votes
3 answers

Elasticsearch 8.x java migrating from QueryBuilders.geoShapeQuery to geoShapeQuery class

I am trying to move from Spring data elasticsearch 4.x to 5.x & spring-boot-starter-data-elasticsearch 3.0.0 in order to remove rhlc from my code. One of my query is a geoShapeQuery Here my old code : GeoShapeQueryBuilder geoShape =…
0
votes
1 answer

Elasticsearch Define mapping template for a certain type of index

I wanted to know if there is a way in elasticsearch 8.x to define a mapping template such that whenever an index of say the certain name comes in a mapping is applied to it on the fly. I have a ES cluster where all my indexes follow the pattern as…
0
votes
0 answers

Contextual field values in ElasticSearch

I am indexing a library in ElasticSearch that's searched by lots of different users from lots of different organisations. Organisations can rename and add notes to books just within the context of their organisation, and users can further rename or…
Moffen
  • 1,817
  • 1
  • 14
  • 34
0
votes
0 answers

Using like operator in Elasticserch PHP

I'm using elasticsearch version 8.4 with PHP. I created the index articles e and he has all the registers that are present in the correspondent table in database. I need to do a search with elasticsearch that return the same results that a SQL…
DiChrist
  • 351
  • 7
  • 18
0
votes
1 answer

Couldn't find nested source for path when running inner hit query for has parent query

we are migrating to elastic search 8 and when we are trying to fetch the data of parent document inner hits using has parent query .elastic search returning exception when runnning innerhits for has parent query.…
0
votes
0 answers

Elasticsearch Connection 8.4

I am trying to connect my elasticsearch through thi way: defined('ES_SERVER_HOST') || define('ES_SERVER_HOST', 'localhost'); defined('ES_SERVER_PORT') || define('ES_SERVER_PORT', 9200); defined('ES_SERVER_INDEX') || define('ES_SERVER_INDEX',…
Ankit Raj
  • 1
  • 2
0
votes
1 answer

Can Elasticsearch be used as a database in a Django Project?

Can we directly use Elasticsearch as a primary database in Django? I have tried finding the solution or a way out but could not find any relevant information. Everywhere it is said that we can use Elasticsearch as a search engine over any other…
0
votes
1 answer

Logstash pipeline not showing on Kibana, but logs show Pipelines running

Trying to set up elastic search, kibana and logstash to read logs from local folder. It works well on version 7.x.x, but when I try to upgrade to 8 it doesn't.Fx I am using this YAML file: version: '3.6' services: Elasticsearch: image:…
0
votes
0 answers

How we can use bulk apis in elasticsearch 8.x java sdk

I don't see any documentation regarding bulk operations in elasticsearch 8 java sdk client. How older bulk operation codes can be refactored with new version of elasticsearch-8 java sdk?
0
votes
0 answers

Elasticsearch aggregation performance for more than 24 hrs on 200-300GB and 50M data

We are using ES 8.3.3 with local ssd based VMs in Oracle Kubernetes engine. stack infra is as following: master: 3 nodes, 5cpu, 16gb data: : 6 nodes, 10 cpu, 60gb, heap - 30gb, 5TB ssd each coordinating: 3 nodes, 10 cpu, 60gb We have a particular…
1
2