I'm quite a newbie in ES world so please forgive me if I write something
stupid.
I have data organized in a hierarchical way:
. -- [id=1 title="build a car" release="1.0"]-- [id=2 title="find the wheels" ]
When users look for "1.0" and "wheels" the should get document n°2
I tried to use the "parent" relationship (when I create document n°2, I
tell ES that document 1 is it's parent) but I get no results when I
querying like
{
"query": {
"bool": {
"must": [
{
"term": {
"release": "1.0"
}
},
{
"term": {
"title": "wheels"
}
}
]
}
}
}
I'm quite a newbie in ES world so please forgive me if I write something
stupid.
I have data organized in a hierarchical way:
. -- [id=1 title="build a car" release="1.0"] -- [id=2 title="find the wheels" ]
When users look for "1.0" and "wheels" the should get document n°2
I tried to use the "parent" relationship (when I create document n°2, I tell
ES that document 1 is it's parent) but I get no results when I querying like
{
"query": {
"bool": {
"must": [
{
"term": {
"release": "1.0"
}
},
{
"term": {
"title": " wheels"
}
}
]
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.