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
4
votes
1 answer
Elasticsearch put role API
I started using the create role API and it works as expected : https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
I got the list of default roles in elasticsearch, /_security/role but I don't know to create…

Harry
- 3,072
- 6
- 43
- 100
4
votes
1 answer
Partial query with Where statement using Elasticssearch 7 java api
I am using the following to search. It is working fine. But it is returning the results when complete word match is found. But I want results with a partial query (minimum 3 characters match incomplete word). Another check should be , I have a…

Lily
- 605
- 3
- 15
- 31
4
votes
2 answers
Root mapping definition has unsupported parameters issue
I am posting to my nearly created Elasticsearch service, but unable to post the mapping. I can not identify which part is unsupported. Any suggestions?
{
"mappings": {
"employees": {
"properties": {
…

bensd
- 47
- 2
- 7
4
votes
1 answer
Searchkick Synonyms not getting mapped as expected
I was trying to map VP to Vice President, CEO to Chief Executive Officer and so on. So that when my search keyword is VP I could see results with Vice President as well. Searchkick gem is what I used to achieve this.
I am having a person model like…

Amal Kumar S
- 15,555
- 19
- 56
- 88
4
votes
1 answer
Problem setting up Elastic Search single-node cluster
I am trying to set up ElasticSearch 7.3.1 in single-node cluster.
I tried adding:
discovery.type: single-node
But then I get the following error:
java.lang.IllegalStateException: cannot start with [discovery.type] set to [single-node] when local…

Roy Leibovitz
- 579
- 5
- 16
3
votes
4 answers
How to get the json representation of the ElasticSearch query/request that was built with Java API Client (7.16)?
A new Java API Client was released in the 7.16 version of ES and the Java Rest Client was deprecated. There was the ability to convert a query to JSON in the deprecated client. It was convenient for debugging/tuning/profiling of the query in…

igor
- 699
- 1
- 9
- 26
3
votes
1 answer
Remove a field from Elasticsearch 7 index mapping
I'm using elasticsearch 7.10 and have an index with mapping as follows:
{
"test_index" : {
"mappings" : {
"properties" : {
"packages" : {
"type" : "nested",
"include_in_root" : true,
"properties" :…

Strife
- 243
- 7
- 22
3
votes
1 answer
ElasticSearch Ingest Pipeline: create and update timestamp field
To create a timestamp field on my indices, according to this answer, I have created a Ingest Pipeline to run over specific indices:
PUT _ingest/pipeline/auto_now_add
{
"description": "Assigns the current date if not yet present and if the index…

loretoparisi
- 15,724
- 11
- 102
- 146
3
votes
1 answer
ElasticSearch Segment merge not happening when deleted documents count is greater than 50%
Elasticsearch version: 7.10.0
I have an elasticsearch index with 8 shards in 8 different nodes and with a document count greater than 25 million documents(nested not included). It's an heavy update index. The document size grows over a period of…

Vicky
- 2,999
- 2
- 21
- 36
3
votes
2 answers
Elasticsearch 7.4 incorrectly complaining a snapshot is already running
After solving Something inside Elasticsearch 7.4 cluster is getting slower and slower with read timeouts now and then there is still something off in my cluster. Whenever I run the snapshot command it gives me a 503, when I run it one or two times…

Lourens Rozema
- 53
- 6
3
votes
2 answers
ElasticSearch performance considerations while mapping string fields as both text and keyword?
I have a question regarding the tradeoffs/performance considerations to keep in mind while mapping string fields as both text and keyword vs just one of those.
I have a use-case where mapping around 25-30 string fields as both text and keyword would…

Ankit
- 45
- 1
- 7
3
votes
0 answers
Elasticsearch synonym_graph filter not giving all tokens
I'm trying to use synonym_graph filter in the analyzer but it is not generating the result we need.
This is my curl command to analyze text:
curl -X GET "localhost:9200/_analyze?pretty" -H 'Content-Type: application/json' -d'
{
"tokenizer":…

Dhirendra Saw
- 31
- 1
3
votes
1 answer
Elasticsearch terms aggregation performance
I have a basic aggregation on an index with about 40 million documents.
{
aggs: {
countries: {
filter: {
bool: {
must: my_filters,
}
},
aggs: {
…

Valera
- 2,665
- 2
- 16
- 33
3
votes
1 answer
ES7 - how to model 1-n parent-child relations - different ES types
I am migrating an old ES instance to ES7.
We need 1-n parent-child relations.
We used to have multiple types in the same index and it was easy.
Some types were related to their parent via _parent.
But ES7 will only allow single-type indices.
Which…

chris
- 398
- 2
- 11
3
votes
0 answers
Understanding Elasticsearch profile API output
I have indexed 2 million documents and I am trying to return all the matching document ids at once. and I use a PHP client.
My mapping is as follows:
$params = [
'index' => $index,
'body' => [
'settings' => [
…

Mohamed Abdullah
- 75
- 7