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

Query on too many scroll contexts

We are using ES version 6.4 and we want to upgrade to 7.4. While testing the up-gradation to do a paginated search using Scroll we are facing the below issue: Trying to create too many scroll contexts. Must be less than or equal to [500]. This…
2
votes
0 answers

how the custom fields can be viewed in Kibana as a standard type instead of unknown type?

I am using Kibana and elasticsearch version 7.9.1. I have created a pipeline, mapping and index with custom fields. The field type keyword converted into "sting" but the custom fields converted as "unknown" type. These unknown types are not listed…
SST
  • 2,054
  • 5
  • 35
  • 65
2
votes
3 answers

ElasticSearch search results with variable values

I'm looking to use elasticsearch for a search bar with autocompletion feature. I have a set of questions and they have multiples variables that I'd like to substitute with other values. A template of a question would be: Do you like FIELDS? with…
Ffloriel
  • 408
  • 3
  • 10
2
votes
1 answer

Bulk Insert object in Elasticsearch

I am trying create an index and then do a bulk insert using RestHighLevelClient to my ES (the code is in Kotlin). The bulk insert code is : private fun insertEntity(entityList: List, indexName: String) { var count = 0 val bulkRequest…
newLearner
  • 637
  • 1
  • 12
  • 20
2
votes
1 answer

Best way to filter out reponse from Elastic Search

I'm struggling to find out the best way to filter out the response JSON from Elastic Search search query, I know two of them, they are as follows: filter_path:…
kzrfaisal
  • 1,355
  • 5
  • 15
  • 26
2
votes
0 answers

Why is creating a mapping at time of index creation in Elasticsearch 7 causing a mapping update rejection when documents are indexed?

I am currently in the process of trying to have the date fields for the entries in our database treated as 'text' in the Elasticsearch index. I would like to do this by the addition of a 'mappings' field to the body of the index creation command but…
2
votes
1 answer

Query across multiple index in the Elasticsearch version 7.7

In elastic search version 7.7, multiple _types in the index is removed, Now If we want to query across multiple index, we are doing in the following way. /index1,index2/_search?q=type:tweet In 7.7, what is the best way to query from multiple…
2
votes
0 answers

How to add a custom field in the significant terms aggregation bucket

I am using the significant terms aggregation in ElasticSearch and I am wondering if it is possible to add a custom field to each element in the bucket. Currently, the bucket element looks like this: { "key" : "Q", "doc_count" : 4, …
kee
  • 10,969
  • 24
  • 107
  • 168
2
votes
0 answers

Define searchable fields in Elasticsearch

** using Elastichsearch version 7.3 ** We are defining template mapping for our index with all our fields types. We don't want all our fields to be searchable. Moreover, We would like that the default for each field will be not searchable and to…
Roy Leibovitz
  • 579
  • 5
  • 16
2
votes
1 answer

Sort Documents based on nested child count in ElasticSearch

My Elasticserch index Index Name = movies { "title": "Chris ENDGAME", "cast": [ { "firstName": "Chris", "lastName": "Evans" }, { "firstName": "Chris", "lastName": "Hemsworth" }, …
2
votes
2 answers

Average of differences calculated between two date fields

I'm working on a project that uses Elasticsearch to store data and show some complex statistics. I have an index in that looks like this: Reservation { id: number check_in: Date check_out: Date created_at: Date // other fields... } I need…
2
votes
0 answers

Normalizing of _score field in a search query in elasticsearch

I want the _score field returned by elasticsearch to be in the range say (0 to 100). Is there a way this can be done by the Elasticsearch, so that I don't have to do it manually in the code.
Abhinav Keshri
  • 595
  • 5
  • 20
2
votes
0 answers

How to ingest .doc / .docx files in elasticsearch?

I'm trying to index word documents in my elasticsearch environment. I tried using the elasticsearch ingest-attachment plugin, but it seems like it's only possible to ingest base64 encoded data. My goal is to index whole directories with word files.…
2
votes
1 answer

Conversion exception while reading binary field data to byte[] field in ES 7.5.x

I have my entity class defined as follows: @Document(indexName = "payload-pojo") public class PayloadPojo { @Id private String id; @Field(index = false,type = FieldType.Binary) byte[] payload; } and the Repository defined as…
2
votes
1 answer

Elasticsearch query slow response via kibana console

Server background : 3 node elasticsearch cluster + kibana + logstash running on docker environment. host server runs rhel7.7(2cpu, 8GB RAM + 200GB fileshare). Versions : elasticsearch 7.5.1 kibana 7.5.1 logstash 7.5.1 filebeat 7.5.1 (runs on…
Sha
  • 156
  • 1
  • 10