On Wed, Jan 22, 2014 at 10:17 PM, <d...@geschan.de> wrote: > I know that I can't just make a query like this: {!parent > which=is_parent:true}+Term, most likely I'll get this error: child query > must only match non-parent docs, but parent docID=XXXX matched > childScorer=class org.apache.lucene.search.TermScorer >
Hello Gesh, As it's state there child clause should not match any parent docs, but the query +Term matches them because it applies some default field which, I believe belongs to parent docs. That blog has an example of searching across both 'scopes' q=+BRAND_s:Nike +_query_:"{!parent which=type_s:parent}+COLOR_s:Red +SIZE_s:XL" mind exact fields specified for both scopes. In your case you need to switch from conjunction '+' to disjunction. -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>