You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ku3ia <de...@gmail.com> on 2014/11/11 12:06:08 UTC

Parent query yields document which is not matched by parents filter

Hi, folks!

We are using parent/child architecture in our project and sometimes when
using child transformer ([child]) there are an exception:

"Parent query yields document which is not matched by parents filter,
docID=..."

Examples of query are:
http://localhost/solr/core/select?fq=id:123456789&fl=*&q={!child
of=DocumentType:parent}Text:foo
http://localhost/solr/core/select?q=id:123456789&fl=*,[child
parentFilter=DocumentType:parent]

Documents in index:
<doc>
  <id>123456789_0</id>
  <Text>foo</Text>
<doc>
<doc>
  <id>123456789</id>
  <DocumentType>parent</DocumentType>
  ... other fields
</doc>

"Root" field in schema.xml is present.

When I made an optimize to one segment sometimes error is dissapeared, but
sometimes not. Please advice how to fix it.



--
View this message in context: http://lucene.472066.n3.nabble.com/Parent-query-yields-document-which-is-not-matched-by-parents-filter-tp4168727.html
Sent from the Solr - User mailing list archive at Nabble.com.