I have a created solr core named data
.
This core has two structurally different types of data:
playlist and album (actual tracks). Relation is
playlist has 1...* album playlist
while retrieving playlist info, I want to retrieve album info in the same doc. I tried this
Query
q=playlist_id:XXXXX
Field List
fl=*,album_info:[subquery]
rawQueryParam:
album_info.q={!terms f=album_unique_id v=$row.album_id}
This means I want to retrieve album_unique_id which is the album_id in playlist.
I studied Solr doc and created above query. But not getting the required result. I get an exception in the response:
{
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.search.SyntaxError"],
"msg":"while invoking album_info.q:[subquery] on doc=SolrDocument{album_unique_id =stored,indexed,tokenized,omitNorms,indexOptions=DOCS<album_unique_id:20-3-108-10080",
"code":400}}
Need to understand the reason for this error. Also, do I need to enable some plugin for this?
solr version: v6.4