lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Sanders <csand...@redhat.com>
Subject SyntaxError - Block Join Parent Query
Date Wed, 23 Mar 2016 20:09:27 GMT
I'm getting a SyntaxError which I do not understand when I execute a block join parent query.
I'm running Solr5.2.1, with 2 shards. The problem appears to be in that portion of the query
that filters the child document. Any insight as to where I made the error is greatly appreciated.


This query produces an error: 
q=+blue +{!parent which="documentKind:TestParent"}portal_product:("red hat") 
-- should return TestParent4 

However, this query works: 
q=+blue +{!parent which="documentKind:TestParent"}portal_product:rhel 
-- should return TestParent2 

Sample data and schema information below: 
{ 
"documentKind": "TestParent", 
"uri": "https://ping/pong/testparent1", 
"view_uri": "https://ping/pong/testparent1", 
"id": "TestParent1", 
"allTitle": "gold", 
"allText": "gold", 
"contents": "gold", 
"_childDocuments_": [ 
{ 
"documentKind": "TestChild", 
"uri": "testchild1", 
"id": "testchild1", 
"portal_product_version": "6", 
"portal_product": "rhel" 
} 
] 
} 

{ 
"documentKind": "TestParent", 
"uri": "https://ping/pong/testparent2", 
"view_uri": "https://ping/pong/testparent2", 
"id": "TestParent2", 
"allTitle": "blue", 
"allText": "blue", 
"contents": "blue", 
"_childDocuments_": [ 
{ 
"documentKind": "TestChild", 
"uri": "testchild2", 
"id": "testchild2", 
"portal_product_version": "6", 
"portal_product": "rhel" 
} 
] 
} 

{ 
"documentKind": "TestParent", 
"uri": "https://ping/pong/testparent3", 
"view_uri": "https://ping/pong/testparent3", 
"id": "TestParent3", 
"allTitle": "blue", 
"allText": "blue", 
"contents": "blue", 
"_childDocuments_": [ 
{ 
"documentKind": "TestChild", 
"uri": "testchild3", 
"id": "testchild3", 
"portal_product_version": "3", 
"portal_product": "rhev" 
} 
] 
} 

{ 
"documentKind": "TestParent", 
"uri": "https://ping/pong/testparent4", 
"view_uri": "https://ping/pong/testparent4", 
"id": "TestParent4", 
"allTitle": "blue", 
"allText": "blue", 
"contents": "blue", 
"_childDocuments_": [ 
{ 
"documentKind": "TestChild", 
"uri": "testchild4", 
"id": "testchild4", 
"portal_product_version": "3", 
"portal_product": "red hat" 
} 
] 
} 

<field name="documentKind" type="string" indexed="true" stored="true" required="true" />

<field name="uri" type="string" indexed="true" stored="true" required="true"/> 
<field name="view_uri" type="string" indexed="true" stored="true" /> 
<field name="id" type="string" indexed="true" stored="true" /> 
<field name="allTitle" type="text_std" indexed="true" stored="true" /> 
<field name="allText" type="text_std" indexed="true" stored="false" multiValued="true"
termVectors="true" /> 
<field name="contents" type="text_std" indexed="true" stored="false" multiValued="true"
termVectors="true" /> 
<field name="portal_product_version" type="string" indexed="true" stored="true"/> 
<field name="portal_product" type="string" indexed="true" stored="true"/> 

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