lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly, Frank" <frank.ke...@here.com>
Subject Solr 5.3.1: child query must only match non-parent docs
Date Thu, 02 Mar 2017 16:39:45 GMT
Our customers are running this query where they have a filter on the parent objects (givenName,
familyName etc) and then request the child objects ({!parent which etc)

q=+(givenName:(+UserSearchControllerUTFN +1180460672*) familyName:(+UserSearchControllerUTFN
+1180460672*)) +{!parent which="type:userAccount”}hereRealm:Test

We get the following error from Solr/Lucene

java.lang.IllegalStateException: child query must only match non-parent docs, but parent docID=2147483647
matched childScorer=class org.apache.lucene.search.TermScorer
        at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.nextDoc(ToParentBlockJoinQuery.java:311)
        at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.advance(ToParentBlockJoinQuery.java:384)
        at org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:118)
        at org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:151)
        at org.apache.lucene.search.ConjunctionScorer.nextDoc(ConjunctionScorer.java:62)
        at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:216)
        at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:169)
        at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:772)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:486)
        at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:200)
        at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1678)
        at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1497)
        at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:555)


Any thoughts?

A previous email http://lucene.472066.n3.nabble.com/ToParentBlockJoinQuery-java-td4247115.html
suggested that we might split the query into a query and a filter query

q=+{!parent which="type:userAccount”}hereRealm:Test
fq=+(givenName:(+UserSearchControllerUTFN +1180460672*) familyName:(+UserSearchControllerUTFN
+1180460672*))

Is this the same problem?

-Frank


[Description: Macintosh HD:Users:jerchow:Downloads:Asset_Package_01_160721:HERE_Logo_2016:sRGB:PDF:HERE_Logo_2016_POS_sRGB.pdf]



Frank Kelly

Principal Software Engineer

Identity Profile Team (SCBE, Traces, CDA)


HERE

5 Wayside Rd, Burlington, MA 01803, USA

42° 29' 7" N 71° 11' 32" W

[Description: /Users/nussbaum/_WORK/PROJECTS/20160726_HERE_EMail_Signature/_Layout/_Images/20160726_HERE_EMail_Signature_360.gif]<http://360.here.com/>
   [Description: /Users/nussbaum/_WORK/PROJECTS/20160726_HERE_EMail_Signature/_Layout/_Images/20160726_HERE_EMail_Signature_Twitter.gif]
<https://www.twitter.com/here>    [Description: /Users/nussbaum/_WORK/PROJECTS/20160726_HERE_EMail_Signature/_Layout/_Images/20160726_HERE_EMail_Signature_FB.gif]
<https://www.facebook.com/here>     [Description: /Users/nussbaum/_WORK/PROJECTS/20160726_HERE_EMail_Signature/_Layout/_Images/20160726_HERE_EMail_Signature_IN.gif]
<https://www.linkedin.com/company/heremaps>     [Description: /Users/nussbaum/_WORK/PROJECTS/20160726_HERE_EMail_Signature/_Layout/_Images/20160726_HERE_EMail_Signature_Insta.gif]
<https://www.instagram.com/here/>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message