Hi,
Something odd occured and I'd like to find the reason behind it since I can't find the documentation of it.
The mapping:
PUT vp-test
{
"mappings": {
"_default_": {
"_all": {
"enabled": false
}
},
"fiche": {},
"bijlage": {
"_parent": {
"type": "fiche"
},
"_routing": {
"required": true
}
}
}
}
Three documents of which one has a child:
PUT vp-test/fiche/11
{
"text": "parent"
}
PUT vp-test/fiche/12
{
"text": "parent"
}
PUT vp-test/fiche/13
{
"text": "parent"
}
PUT vp-test/bijlage/13?parent=11
{
"text": "child"
}
The query:
GET vp-test/fiche/_search
{
"query": {
"match": {
"text": "parent"
}
}
}
The response:
{
"hits": [{
"_index": "vp-test",
"_type": "fiche",
"_id": "11",
"_score": 0.6931472,
"_source": {
"text": "parent"
}
},
{
"_index": "vp-test",
"_type": "fiche",
"_id": "12",
"_score": 0.2876821,
"_source": {
"text": "parent"
}
},
{
"_index": "vp-test",
"_type": "fiche",
"_id": "13",
"_score": 0.2876821,
"_source": {
"text": "parent"
}
}
]
}
As you can see, the document with ID 11's score is way higher without scoring on its children.
Anyone knows why and how to prevent it? Thanks!