[Archivesspace_Users_Group] Changing Main PUI Search from OR to AND

Alexander Duryee alexanderduryee at nypl.org
Fri Apr 23 10:23:22 EDT 2021


Starting in ArchivesSpace 2.8.0, you can pass Solr parameters to the PUI
via config/config.rb.  The default behavior in a fresh installation is
mm='100%', which I believe is (mostly) equivalent to using AND as the
default operator.  I tested this on test.archivesspace.org (3.0.0-RC2), and
it appears to be using AND as its default - for example, searching
"benjamin stockton" (without quotes) returns "Benjamin and Julia Stockton
Rush papers" but not "Benjamin Harrison papers".

If you're using 2.8.0 or newer, I would check the config/config.rb to see
if the following line is present and not commented out:
AppConfig[:solr_params] = { 'mm' => '100%' }

For older versions, you'll need to write a plug-in to override the default
Solr parameters generated by the PUI.


On Thu, Apr 22, 2021 at 10:52 AM Hoffner, Bailey E. <baileys at ou.edu> wrote:

> Morning All,
> I know I’ve seen conversations about this before, but because I can’t
> think of the appropriate technical terminology, I haven’t been able to
> easily locate those convos in the listserv archive.
> We are interested in changing the automatic search function on the PUI
> from using “or” between search terms, to using “and.” Any help appreciated
> (including just pointing me to previous convos I wasn’t able to locate 😊
> ).
> -Bailey
> Bailey Hoffner, MLIS
> Pronouns: she/her/hers
> Metadata and Collections Management Archivist
> University of Oklahoma Libraries
> baileys at ou.edu
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

Alexander Duryee
Metadata Archivist
New York Public Library
alexanderduryee at nypl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20210423/80dea10a/attachment.html>

More information about the Archivesspace_Users_Group mailing list