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
1 answer
Avoiding ElasticSearch error 503 Server Unavailable: Use of WaitForStatus
When I start my program, I run the ElasticSearch Service and check if an Index exists and if there is any documents, let's say I just run the ES service and I have these two functions:
public ElasticClient getElasticSearchClient()
{
…

César
- 143
- 2
- 14
0
votes
1 answer
Partial word search not working in elasticsearch (elasticsearch-py) using mongo-connector
Currently I've indexed my mongoDB collection into Elasticsearch running in a docker container. I am able to query a document by it's exact name, but Elasticsearch is unable to match the query if it is only part of the name. Here is an example:
>>>…

najitaleb
- 27
- 6
0
votes
1 answer
ElasticSearch 7.5.1 couldnt start correctly in Windows Docker
I am building a docker image that runs ES v7.5.1 under Windows ServerCore but that doesn't seem to work.
When I start the docker container, I have a message saying that the node couldn't join the cluster.
[o.e.c.c.ClusterFormationFailureHelper]…

hazjack
- 1,645
- 13
- 27
0
votes
2 answers
Unable to form Elasticsearch 7 cluster on EC2 machines
I have following configuration setup on two AWS ec2 machines.
Machine 10.0.66.123
----------------------
cluster.name: uat-es-cluster
node.name: uat-es-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
…

dnsh
- 3,516
- 2
- 22
- 47
0
votes
1 answer
Elasticsearch XContentBuilder.bytes removed
I have the following code
TermVectorsResponse resp = request.execute().actionGet();
XContentBuilder builder = XContentFactory.jsonBuilder();
resp.toXContent(builder, null);
Map map =…

Juan Diego Chaves Sanguino
- 81
- 2
- 8
0
votes
1 answer
Elasticsearch 7 SQL CLI : ./x-pack-env: No such file or directory error
I have started working on Elasticsearch 7 and trying to start the elasticsearch-sql-cli using the following command:
~/Documents/backups/es7/bin$ ./elasticsearch-sql-cli
But it is not started and getting the following…

KayV
- 12,987
- 11
- 98
- 148
0
votes
1 answer
ElasticSearch / Kibana timestamp - field or _source?
My single raw document in ES/Kibana looks like this:
{
"_index": "fluentd.apache.access.20191202",
"_type": "_doc",
"_id": "8jql724B3OrCHx56JnWb",
"_score": 1,
"_source": {
"serveraddress": "....",
"clientaddress": "...",
…

Daniel W.
- 31,164
- 13
- 93
- 151
0
votes
0 answers
Sorting a keyword field alphabetically on Elasticsearch
While applying sort on a keyword type field, it goes lexicographical and for the given data:
AAAAAAAAAAA
AAAAaaaa
Aaaaaa
jjjjjaaa
jjjjjAAA
JJJJJJjjjj
aaaJJJJJjjjj
After sort…

James Jithin
- 10,183
- 5
- 36
- 51
0
votes
1 answer
Elasticsearch max of field combined with a unique field
I have an index with two fields:
name: uuid
version: long
I now only want to count the documents (on a very large index [1 million+ entries]) where the version of the name is the highest. For e.g. a query on an index with the following…

Julian Pieles
- 3,880
- 2
- 23
- 33
0
votes
1 answer
Should I reindex documents in elasticsearch when I update settings of index
I've read the re-indexing documents which is required if anything has been changed in the existing index then I've to re-index documents.
For example. If I make a change in the existing field then I've to reindex all the documents.
Should I…

Devang Prajapati
- 3
- 4
0
votes
1 answer
Query string with AND operator in nested query not working. Any idea?
I want to get the document in which nested child contains both words Mifune AND Miller-Meteor.
For more detail of nested, I've gone through https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html
here are the…

Devang Prajapati
- 3
- 4
-1
votes
0 answers
Elasticsearch results doesn't highlight if a text is converted to raw datatype which is integer/double while searching
Currently im using ES 7.10
Creating a index and mapping
PUT /rathan_index
PUT /rathan_index/_mappings
{
"properties" : {
"Term__kt" : {
"type" : "nested",
"include_in_root" : true,
"properties" : {
…

Rathan Kumar
- 1
- 2
-1
votes
1 answer
Elastic search filter based on array of object
Below is mapping which i have
{
"defaultBoostValue":1.01,
"boostDetails": [
{
"Type": "Type1",
"value": 1.0001
},
{
"Type": "Type2",
"value": 1.002
},
{
"Type": "Type3",
"value": 1.0005
…

Akash Salunkhe
- 194
- 2
- 13
-1
votes
2 answers
Which is the best practice to store different category log data in elasticsearch
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
We are introducing log using elasticsearch for a multi tenant application (eg: around 10000 tenants).
We need to log profile_edits, user_comments,…

nithinTa
- 1,632
- 2
- 16
- 32