and I have used this mapping query to make itemResults object(in document)
of nested type -
PUT realtek_release_v6_nestedsearch/_mapping
{
"realtek_release_v6_nestedsearch":{
"properties": {
"sectionResults":{
"type": "object",
"properties": {
"itemResults":{
"type": "nested"
}
}
}
}
}
}
then i have checked the mapping .In mapping itemResults of nested type.
Everything if fine here.
But problem comes in searching query for nested object.my searching query
is -
What kind of analyzer do you use? I think it might be a problem with the
whitespace (Or do you have the same problem if the value does not contain
whitespaces?).
In this case you can use a keyword analyzer (so you will not separate the
words into single token) or map the fields to not_analyzed.
Am Donnerstag, 16. Oktober 2014 12:59:13 UTC+2 schrieb shekhar chauhan:
Hi All,
I am facing a problem in searcing a nested object.My document structure
is -
and I have used this mapping query to make itemResults object(in document)
of nested type -
PUT realtek_release_v6_nestedsearch/_mapping
{
"realtek_release_v6_nestedsearch":{
"properties": {
"sectionResults":{
"type": "object",
"properties": {
"itemResults":{
"type": "nested"
}
}
}
}
}
}
then i have checked the mapping .In mapping itemResults of nested type.
Everything if fine here.
But problem comes in searching query for nested object.my searching query
is -
and I have used this mapping query to make itemResults object(in document)
of nested type -
PUT realtek_release_v6_nestedsearch/_mapping
{
"realtek_release_v6_nestedsearch":{
"properties": {
"sectionResults":{
"type": "object",
"properties": {
"itemResults":{
"type": "nested"
}
}
}
}
}
}
then i have checked the mapping .In mapping itemResults of nested type.
Everything if fine here.
But problem comes in searching query for nested object.my searching query
is -
Hi Krešimir Slugan,
Thanks for your reply.I tried full element path in term filter -
"sectionResults.itemResults.InspectionItem".But still facing same problem(0
results found).
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.