[Archivesspace_Users_Group] are user_defined fields indexed ?

Noah Huffman noah.huffman at duke.edu
Tue Feb 20 12:15:41 EST 2018


Hi Steve,

I think you need to add the user_defined fields to the index. Here's an example of a plugin that does this: https://github.com/hudmol/extended_advanced_search

Specifically: https://github.com/hudmol/extended_advanced_search/blob/master/indexer/common_indexer.rb#L110

I tweaked the above example to make an advanced search plugin that enables searching across various user defined fields that we use in accession records: https://github.com/duke-libraries/archivesspace-duke-plugins/tree/master/plugins/duke-advanced-search

-Noah


-----Original Message-----
From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Tuesday, February 20, 2018 12:00 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] are user_defined fields indexed ?

Are user_defined fields indexed ? 

I added a boolean value as a test, and I don’t see any fields in the solr query console that might represent that value.
user_defined values are stuffed into the response.docs[].json in the search docs, but how would one search for resources by user_defined fields ?  

We would like to tag several items as featured resources to be able to pull out a selection from the featured resources on the public landing page. ( Is anyone else have another method to do this ? ) 

— Steve Majewski



More information about the Archivesspace_Users_Group mailing list