lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Subqueries
Date Thu, 05 Jan 2017 21:38:54 GMT
Hello,

Can you add pcdm_members into fl to make sure it's stored?
Also please add the following param
members.logParamsList=q,fl,rows,row.pcdm_members,
and check logs then.

On Thu, Jan 5, 2017 at 9:46 PM, Peter Matthew Eichman <peichman@umd.edu>
wrote:

> 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?
>
> Thanks,
> -Peter
>
> --
> Peter Eichman
> Senior Software Developer
> University of Maryland Libraries
> peichman@umd.edu
>



-- 
Sincerely yours
Mikhail Khludnev

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