moshebla commented on a change in pull request #549: WIP:SOLR-13129 URL: https://github.com/apache/lucene-solr/pull/549#discussion_r253303258
########## File path: solr/solr-ref-guide/src/nested-documents.adoc ########## @@ -264,11 +273,12 @@ For the upcoming examples, assume the following documents have been indexed: } ---- -==== Combining Block Join Query Parser with Child Doc Transformer - * The combination of these two features enable seamless creation of powerful queries. + - For example, querying posts which are under a page tagged as a job, contain the words "Search Engineer". - The comments for matching posts can also be fetched, all done in a single Solr Query. - `q=+{!child of='-\_nest_path_:* *:*'}+tags:"jobs" &fl=*,[child] +==== Combining Block Join Query Parsers with Child Doc Transformer +The combination of these two features enable seamless creation of powerful queries. + +For example, querying posts which are under a page tagged as a job, contain the words "Search Engineer". +The comments for matching posts can also be fetched, all done in a single Solr Query. + + * `q=+{!child of='-\_nest_path_:* *:*'}+tags:"jobs" &fl=*,[child] Review comment: Yeah, I did test it manually and observed odd results. When using +{!child of='-\_nest_path_:*'}+tags:"jobs" no documents are found. This seems to be a problem with the way queries are optimized. When there is only a NOT clause in the "of" filter, the query is optimized to a MatchNoDocsQuery. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org