[Archivesspace_Users_Group] query patterns for strings

Arnold, Hillel harnold at rockarch.org
Fri Feb 17 18:02:03 EST 2017


Hi Jason,
I think you need to use “identifier” rather than “id”, like:
search?page=1&?page_size=1&aq={"query":{"field":"identifier","value":"anything","jsonmodel_type":"field_query"}}'

Hillel

From: <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Jason Loeffler <j at minorscience.com>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Date: Friday, February 17, 2017 at 1:40 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] query patterns for strings

This example works taking into account solr/schema.xml<https://github.com/hudmol/archivesspace/blob/0bdeaabc6b3e8c878590e3d4db0e8c5b99b8c344/solr/schema.xml>:

search?page=1&?page_size=1&aq={"query":{"field":"title","value":"foo","jsonmodel_type":"field_query"}}'

This example returns "Unrecognized search field: id".

search?page=1&?page_size=1&aq={"query":{"field":"id","value":"anything","jsonmodel_type":"field_query"}}'

Is there an additional parameter required to address fields where type="string"?

JL

Jason Loeffler
Technology Consultant | The American Academy in Rome
Minor Science | Application Development & Metadata Strategy
Brooklyn, New York
jason at minorscience.com<mailto:jason at minorscience.com>
(347) 405-0826
minorscience (Skype)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20170217/da385e35/attachment.html>


More information about the Archivesspace_Users_Group mailing list