Questions tagged [elasticsearch-nested]

56 questions
0
votes
1 answer

Elasticsearch : minimum_should_match for nested query

I have a nested field like { "tags": [ { "tag": "lorem ipsum" }, { "tag": "Lorem ipsum dolor sit amet" } ] } And mapping like { "tags": { **"type": "nested",** "properties": { "tag": { …
SSG
  • 1,265
  • 2
  • 17
  • 29
0
votes
1 answer

How to query keyword nested field that can be an integer values in ElasticSearch?

This is example of field in ES document. How can i query 'prices.value' that can be only integers? In this case, value is "150.99" and can fully be converted to integer. But sometimes in can be a text something like "value": "a lot" and i want to…
0
votes
1 answer

Query nested objects along with the query Elasticsearch

I am having some trouble with querying data along with the nested objects in ES. More like left join in SQL, SELECT select_list FROM T1 LEFT JOIN T2 ON join_predicate; which will return the all the data according to given term and…
Lasantha
  • 391
  • 1
  • 3
  • 13
0
votes
1 answer

Query elasticsearch where a key's value is at least some number

I am processing files to recognize if they contain labels and what the confidence the label was recognized. I created a nested mapping called tags which contains label (text) and confidence (float between 0 and 100). Here is an example of how I…
0
votes
1 answer

Elasticsearch Range Query on Nested Keyword field

I'm trying to run a range query on a nested keyword field in Elasticsearch 6.4, but I'm not having any luck: { "query": { "bool": { "filter": [ { "nested": { "path": "metas", "query": { …
mtrolle
  • 2,234
  • 20
  • 19
0
votes
0 answers

Elasticsearch nested geo-shape query

Suppose I have the following mapping: "mappings": { "doc": { "properties": { "name": { "type": "text" }, "location": { "type": "nested", "properties": { "point": { …
0
votes
0 answers

Failed to save list of maps content to elasticsearch

i am trying to save list of maps contents to elastic search(as nested type)and it is failing. sample code is below import ( "fmt" ) func main() { fmt.Println("Hello, playground") var List_CounterData []interface{} List_Counterdata =…
0
votes
2 answers

multi value nested field Aggregation in elasticsearch

I meet a quite special problem when using aggregation on a multi value and nested filed in elasticsearch 5.6, and my index mapping is below: { "my_index": { "mappings": { "my_type": { "properties": { "my_field": { …
0
votes
1 answer

Elasticsearch iterate over range query result in nested object

I have a elasticsearch index which is having a nested object called availability which has a date and a boolean field , the mapping schema is as follows { "hotel_nested" : { "mappings" : { "doc" : { …
0
votes
1 answer

Elasticsearch aggregation with reverse_nested path parameter

Could anybody elaborate more on the "path" param in reverse_nested tag in elasticsearch aggregation? I am trying to aggregated nested buckets using keys in different nesting level. Here are the details: Creating an index with following mapping PUT…
0
votes
1 answer

Update field inside nested type in elasticsearch from java

Please find the below mapping, We are trying to updated the domains field inside the domains type. "mappings":{ "candidate":{ "_all":{ "enabled":false }, "properties":{ "domains":{ …
1 2 3
4