lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Matthew Eichman <>
Subject Subqueries
Date Thu, 05 Jan 2017 18:46:55 GMT
Hello all,

I am attempting to use a subquery to enrich a query with the titles of
related objects. Each document in my index may have 1 or more pcdm_members
and pcdm_related_objects fields, whose values are ids of other documents in
the index. Those documents in turn have reciprocal pcdm_member_of and
pcdm_related_object_of fields.

In the Blacklight app I am working on, we want to enrich the display of a
document with the titles of its members and related objects using a
subquery. However, this is out first foray into subqueries and things
aren't working as expected.

I expected the following query to return a "members" key with a document
list of documents with "id" and "title" keys, but I am getting nothing:

  "responseHeader": {
    "status": 0,
    "QTime": 1,
    "params": {
      "q": "id:\"https://fcrepolocal/fcrepo/rest/pcdm/19/31/3c/1a/19313c1a-6ab4-4305-93ec-12dfdf01ba74\"",
      "indent": "true",
      "fl": "members:[subquery]",
      "members.fl": "id,title",
      "members.q": "{!terms f=id v=$row.pcdm_members}",
      "wt": "json",
      "_": "1483641932207"
  "response": {
    "numFound": 1,
    "start": 0,
    "docs": [

Any pointers on what I am missing? Are there any configuration settings in
solrconfig.xml that I need to be aware of for subqueries to work?


Peter Eichman
Senior Software Developer
University of Maryland Libraries

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