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

How to search by part of a synonym

I have products index with mapping "synonym" : { "type" : "synonym", "synonyms" : [ "netbook => laptop" ] } I want to search my products by query "lapt*" or "netb*"
0
votes
1 answer

How to convert ElasticSearch query to ES7

We are having a tremendous amount of trouble converting an old ElasticSearch query to a newer version of ElasticSearch. The original query for ES 1.8 is: { "query": { "filtered": { "query": { "query_string": { "query":…
user12211419
0
votes
1 answer

Windows could not start Elastic search service locally

I was getting this windows service error due to a recent Java update on my local machine.
Anurag Chugh
  • 589
  • 6
  • 16
0
votes
1 answer

How to combine simplequerystring with bool/must

I have this ElasticSearch query for ES version 7: { "from": 0, "simple_query_string": { "query": "*" }, "query": { "bool": { "must": [ { "term": { "organization_id": "fred" } }, …
user12211419
0
votes
1 answer

Mapping attachment is throwing the error in Elasticsearch 7.7

I try to map the field as user defined field - "attachment" in elastic search like below "file": { "type": "attachment", "fields": { "content": { "type": "text" }, …
Harry
  • 3,072
  • 6
  • 43
  • 100
0
votes
2 answers

Query from a field of Elasticsearch 7.3 using Java

I have the following code working fine and returning the documents. I want to search based on only one field from the document and shall return the value of that field from all the documents. RestHighLevelClient client; QueryBuilder…
Lily
  • 605
  • 3
  • 15
  • 31
0
votes
1 answer

Create Index Request Mapping is failing in elastic search

I am trying to create the Join data type in the elastic search index, It is working from the kibana console / via rest but when I try to create the mapping for the index programmatically it fails with the below…
Harry
  • 3,072
  • 6
  • 43
  • 100
0
votes
1 answer

Elasticsearch custom sorting

I'm using elasticsearch 7.7 and I have product documents which are like following : [ {"id": 1, "title": "product 1", "status": "available"}, {"id": 2, "title": "product 2", "status": "will_be_available_soon"}, {"id": 3, "title":…
Majid Abdolhosseini
  • 2,191
  • 4
  • 31
  • 59
0
votes
1 answer

elasticsearch terms query not fetching all documents

Below is terms query with _msearch. But its not giving all result.As of now, it only return result for 4161 even though data exists for 4402 as well. please suggest solution. GET _msearch { "index": ["index1", "index2", "index3"]} {"query":…
RIYAJ KHAN
  • 15,032
  • 5
  • 31
  • 53
0
votes
0 answers

getting _score value between range[a, b] in elastic search match query

I have data like id, title 'Deploying SQL Server Databases from Test to Live' 'Deploying SQL Server Databases for clients' 'Merge SQL Server databases' 'SQL Server : gather data from different databases' ....... ....... more then…
Akash Kumar
  • 182
  • 2
  • 12
0
votes
1 answer

How to update ElasticSearch search_analyzer mapping without conflict on analyzer?

I'm using version 7.7 of ElasticSearch, LogStash and Kibana and trying to update an index mapping for a field is resulting in one of 2 errors: mapper_parsing_exception: analyzer on field [title] must be set when search_analyzer is…
Wayne Bloss
  • 5,370
  • 7
  • 50
  • 81
0
votes
1 answer

Fetch all record including particular fields

I am working with Elasticcsearch 7.3. I want to fetch only two records of all the documents using JAVA Api from my index. I am using the following code but it returning the null object. RestHighLevelClient client; …
Lily
  • 605
  • 3
  • 15
  • 31
0
votes
1 answer

Does using fuzziness disable prefix search in a simple_query_string

When using simple_query_string with the prefix operator * and a fuzziness value ~N on the same word the prefix search appears seems to be disabled. { "query": { "simple_query_string": { "query": "Abcd*~2", "fields": ["name"] } …
Mihai Stancu
  • 15,848
  • 2
  • 33
  • 51
0
votes
1 answer

ElasticSearch : Nested query not returning desired results

I am new to Elastic Search and facing some problems in implementing some queries. Following is my index structure { "cl_1" : { "aliases" : { }, "mappings" : { "properties" : { "@timestamp" : { "type" : "date" …
Incredible
  • 341
  • 2
  • 4
  • 17
0
votes
1 answer

How to take (length of the aliases field) out of score calculation

Suppose we have a documents of people with their name and array of aliases like this: { name: "Christian", aliases: ["נוצרי", "کریستیان" ] } Suppose I have a document with 10 aliases and another one with 2 aliases but both of them contains…
Muhammad Vakili
  • 708
  • 4
  • 19