I have to perform search on "leg_b.team_name" value and find out its "channel_uuid" value on the basis of leg_b's "channel_uuid",NEXT I will search in wrapup object for common "channel_uuid" values in the Same Query .
Example , lets consider above document, First I will searchon leg_b.team_name = "aaaa" after that I will take leg_b.channel_uuid = "12121"and search on wrapup object channel_uuid.
Is there any problem with filtering the nested wrapup documents by client side?
Or one possible way is to adda new "same_channnel_uuid_as_leg_b" field in wrapup objects and use nested query on that field. With this strategy, if a document has no appropriate wrapup object, the document itself drops from the search result. If you also need such documents, you have to use boolean queries not to drop them (something like should clause with minimum_should_match: 0 and inner_hits parameters.
@Tomo_M ,
Minimum Should Match is another search technique that allows you to conduct a more controlled search on related or co-occurring topics by specifying the number of search terms or phrases in the query that should occur within the records returned.
but in my case I need all the wrapup.Channel_uuid records which is common in wrapup object. So, these all should return me in one query.
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.