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

Retrieve documents where a given date is not between two fields of type Date with Elasticsearch

I have a document in Elasticsearch 7.10.1 with the following mapping: { "mappings": { "properties": { "id": { "type": "text"}, "nonAvailabilities": { "type": "nested", "properties": { "startDate": {…
Walid Ammou
  • 390
  • 1
  • 6
  • 21
0
votes
2 answers

Reindexing of the same document in Elasticsearch

So, recently we changed ID generation from our custom to auto-made by Elastic. Previously it was a content-based function so it was guaranteed to have the same IDs for the same documents, but it was dropped to cope with duplicates. Now we use IDs…
Renat Zamaletdinov
  • 1,210
  • 1
  • 21
  • 36
0
votes
1 answer

ElasticSearch Query documents in nested array

I have a record in elastic search index:- "hits" : { "total" : { "value" : 1, "relation" : "eq" }, "max_score" : 0.0, "hits" : [ { "_index" : "index", "_type" : "_doc", "_id" : "C3wfF3kBVSP1PGuoao73", "_score" : 0.0, …
CodeCool
  • 193
  • 2
  • 12
0
votes
1 answer

Possible to provide an entire document to Update By Query?

I would like to search for a document that is stored in ElasticSearch based on it's fields and overwrite that entire document with a new version. I am new to ES but from what I can tell I can tell I can only use Update if I am searching for a…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
0
votes
1 answer

How can I prioritize documents in Elasticsearch query

I have products in my index. Documents are basically structured like these: { "_id": "product", "_source": { ... "type": "product", "id": 1, "mainTaxon": { "name": "T-SHIRT", }, "attributes": [ …
0
votes
1 answer

Search for all data with multi_match

I am using multi_match search in Elasticsearch. How can I return all data using multi_match? I would like to do something like this: curl -XGET 'http://localhost:9200/routines/_search?pretty=true&q=*:*' but using the structure of multi_match that I…
Norah Jones
  • 427
  • 5
  • 17
0
votes
2 answers

ElasticSearch SearchRequest not returning must match on first element in the document

I have the following documents inserted in an ElasticSearch domain. {"depID:": "5656", "employeeID": "7777", "jobID": "2345"} {"depID:": "6767", "employeeID": "9999", "jobID": "2345"} {"depID:": "7676", "employeeID": "8888", "jobID": "2345"} When I…
0
votes
1 answer

what types are best for elasticsearch "KEYWORDS"(like hashtags) field?

i want to make Elasticsearch index for something KEYWORDS, like.. hashtag. and make synonym filter for KEYWORDs. i think two ways indexing keyword, first is make keyword type. { "settings": { "keywordField": { "type":…
JYL
  • 193
  • 2
  • 16
0
votes
1 answer

How to get data from elasticsearch where one field is combination of other fields

I have an elasticsearch data where one field is derived as a combination of multiple fields as follows. Field 1 Field 2 Field 3 Derived Field a b c a_b_c b c a b_c_a c a b …
0
votes
1 answer

error using aggregations in elasticsearch

I am using elasticsearch java Api and i am trying to run this query to retrieve results. But i am gettin a parsing exception. would you please help me to figure out where is the problem? I will be grateful { "size": 0, "query": { …
0
votes
1 answer

How to set up a highly available elasticsearch cluster locally?

I am new to Elasticsearch and I want to set up a highly available Elasticsearch cluster on one machine to test and learn how to use Elasticsearch. I hope that when the master node fails, one of the other nodes will take over and become the master…
Ghiloufi
  • 311
  • 4
  • 10
0
votes
1 answer

Elastic Search - select DISTINCT value from aggregation result?

In Elastic Search I have an index named Menu. In Menu have an array of Shop. Something like this. { "menu_id": 1, "name": 1, "shops": [ { "name": "A", "shop_id: "A", }, { "name": "B", "shop_id: "B", } …
Sunny
  • 167
  • 1
  • 3
  • 13
0
votes
1 answer

How can I find documents which match all words in differents queries?

For example with this mappings: PUT /unit-test { "mappings": { "properties": { "name": { "type": "text" }, "landlords": { "type": "nested", "properties": { "name": { "type": "text" } } } …
0
votes
1 answer

What is the right way to perform this type of query in Elasticsearch?

I am trying to make a query in Elasticsearch that gives more accurate results than what I am doing today. In my documents, I have a brand property, a description property, and a size property. An example document could be: { brand: "Coca Cola", …
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
0
votes
1 answer

search in fields containing apostrophe does not return results elasticsearch

my search on a field containing apostrophe with elasticsearch not returning results. example of field : Objet de l'opération de crédit here is my query: { "size": 100, "query": { "bool": { "must": [{ …
alma elghoul
  • 183
  • 1
  • 2
  • 12