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
0
votes
0 answers
Field with null are still indexed in ES 7.5
am seeing Field with Null are still indexing in ES 7.5 but according to ES "A null value cannot be indexed or searched. When a field is set to null". I remember when same field we passed with null on calling buklupdate API it was not indexed in ES…

Sasi
- 279
- 1
- 3
- 12
0
votes
1 answer
Elasticsearch gc overhead message when trying to execute Boolean OR query retrieving all the matching documents at once
I have been using Elasticsearch 7.6 and PHP client API for all the operations. I have created elasticsearch index settings and mappings as follows
$params = [
'index' => $index,
'body' => [
'settings' => [
…

Mohamed Abdullah
- 75
- 7
0
votes
1 answer
index_not_found_exception, reason=no such index [Sugestao]] - how pass index name to reactiveElasticsearchOperations.search
I am getting the error pasted in this question and it is true: there isn't Sugestao index. The proper name is sugestao (take a note S versus s).
As far as I know, I can't create a index with upper case. So far so good. The issue is: how can "force"…

Jim C
- 3,957
- 25
- 85
- 162
0
votes
1 answer
Duplicated ElasticSearch documents
We use spring boot application to insert/update elastic search documents. Our data provider sends ous data via Kafka. Our app process events, tries to find a record and insert record If not exists or update if received record is different than…

Michał Mazur
- 125
- 1
- 14
0
votes
2 answers
Elasticsearch index_options=docs for text data type does not return any search results
I have been using Elasticsearch 7.6 and PHP client API for all the operations.
I have created elasticsearch index settings and mappings as follows
$params = [
'index' => 'elasticindex',
'body' => [
'settings' => [
…

Mohamed Abdullah
- 75
- 7
0
votes
0 answers
Fetch the fields from an ElasticSearch 7.3. document with Springboot java
I am using the following java code to query the elasticsearch 7.3 and get 1 document. I have set it to only 1 doc with the highest score. It is working fine and returning me the doc perfectly.
@Autowired
RestHighLevelClient client;
…

Lily
- 605
- 3
- 15
- 31
0
votes
1 answer
ElasticSearch Python Client: how to get an index name behind an alias
I know how to get an alias if any given an index name in ElasticSearch:
es.indices.get_alias(indexname)
Is there a way to go the other way around? Something like es.indices.get_index(aliasname)? I implemented a workaround using the…

kee
- 10,969
- 24
- 107
- 168
0
votes
1 answer
Elasticsearch 7.x setup on kubernetes
I am trying to setup elasticsearch 7.6.2 on kubernetes. I have created with statefulset with replica 2. I have setup elastic.yaml for configuration as following
elasticsearch.yml: |-
cluster.name: ${CLUSTER_NAME}
…

avadhut007
- 332
- 3
- 16
0
votes
0 answers
field type as text and completion in elastic serach
I am trying to have title field as both text and completion types in elastic search.
As shown below
PUT playlist
{
"settings": {
"number_of_shards": 2,
"number_of_replicas": 2,
"analysis": {
"filter": {
…

Sharath
- 2,348
- 8
- 45
- 81
0
votes
1 answer
how to format date in elasticsearch 7.6.2
the DATETIME_FORMAT function seems to be removed in 7.6.2,so how to format the date in essql. I want to filter today's data by the sql and there is a wrong sql
SELECT * from table WHERE date > DATETIME_FORMAT(CURRENT_DATE,'YYYYMMDD')

Jelly Zero
- 1
- 1
0
votes
1 answer
Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true in lumen with elastic search 7.6.2
I am using https://github.com/basemkhirat/elasticsearch package.
In es.php file i have below indices
'indices' => [
'media' => [
'settings' => [
'number_of_shards' => 2,
'number_of_replicas' => 2,
…

Sharath
- 2,348
- 8
- 45
- 81
0
votes
1 answer
ES Range Query on Non-Nested and Query Terms on Nested Object
I would like to filter by both a non nested field and a field in a nested object/list.
The non-nested field is a date range.
Sample data structure is below
{
"order_id": "83",
"order_date": "01/05/2018 17:53:39",
"trans":
[
…

Glitch
- 673
- 8
- 23
0
votes
1 answer
Spring Data Elasticsearch with ES 7.2.1 | GeoPoint mapping failure while indexing
I am using ES 7.2.1 to store large amount of location based data and querying for near-by locations.
For location coordinates, I am using GeoPoint fields from my java codebase.
ES: 7.2.1
Spring Data Elasticsearch: 4.0.0.DATAES-690-SNAPSHOT
MVN…

Black Diamond
- 483
- 7
- 25
0
votes
1 answer
Adding aliases on index roll over based on phase Elasticsearch
I have the following ilm (ignore the minimum ages, it's for testing):
"somerandomilm": {
"version": 3,
"modified_date": "2020-04-09T16:09:16.952Z",
"policy": {
"phases": {
"warm": {
"min_age": "3m",
…

john
- 3,949
- 7
- 34
- 56
0
votes
2 answers
How to prevent inadvertent writes and deletion of data for an index in Elasticsearch?
How to prevent users who have access to kibana dev tools, from making any inadvertent changes , updates or deletes in a particular index.Basically what I am looking for is, some kind of authorisation for a particular index, so that only authorised…

soumitra goswami
- 818
- 6
- 29