<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">Thanks, Brian. That JIRA is actually what helped me come up with
 my theory earlier in this thread. In our case all of our identifiers have ampersands, which combined with the exact match issue from the JIRA causes the PUI identifier search to completely break. Upon digging deeper, it uses "ActionView::Helpers::SanitizeHelper"
 to sanitize queries which will automatically convert <, &, >, etc. without any way to modify that behavior. Hopefully when that JIRA is addressed we can just use partial matches and avoid searching using ampersands. Until then I'm looking at ways to manipulate
 the search string post-sanitization. </span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;font-size:12pt;text-align:start">Jesse Griffis</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin:0px;font-size:12pt;text-align:start">Prof. Tech. 2</div>
<span style="margin:0px;font-size:12pt;text-align:start">Systems Development</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;font-size:12pt;text-align:start">WVU Libraries</span></div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Brian Harrington
 <brian.harrington@lyrasis.org><br>
<b>Sent:</b> Friday, December 16, 2022 12:13 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Issue with searching by identifier in PUI</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Segoe UI"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
p.x_xxmsonormal, li.x_xxmsonormal, div.x_xxmsonormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_elementtoproof
        {}
span.x_xelementtoproof
        {}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi Jesse,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Just FYI, there’s a JIRA for this issue here:  <a href="https://archivesspace.atlassian.net/browse/ANW-1556">https://archivesspace.atlassian.net/browse/ANW-1556</a></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Brian</p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt; color:black">From:
</span></b><span style="font-size:12.0pt; color:black">archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Jesse Griffis <jagriffis@mail.wvu.edu><br>
<b>Date: </b>Thursday, December 15, 2022 at 2:53 PM<br>
<b>To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] Issue with searching by identifier in PUI</span></p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_elementtoproof"><span style="font-size:12.0pt; color:black; background:white">Thanks for the idea. From a quick test it appears that searching by identifier requires an exact match and doesn't work with wildcards in 3.3.1.
 Strangely partial matches and wildcards do work in 2.8.0. </span></span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_Signature">
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Jesse Griffis</span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Prof. Tech. 2</span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Systems Development</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">WVU Libraries</span></p>
</div>
</div>
</div>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="55%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Joshua D. Shaw <Joshua.D.Shaw@dartmouth.edu><br>
<b>Sent:</b> Thursday, December 15, 2022 2:33 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Issue with searching by identifier in PUI</span>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_MsoNormal"><span class="x_xelementtoproof"><span style="font-size:12.0pt; color:black; background:white">A potential test/workaround would be to replace the ampersand with a wildcard '*' in your searches. If that wildcard search works, I think it
 would confirm your idea about the ampersand translation.</span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_xelementtoproof"><span style="font-size:12.0pt; color:black; background:white">jds</span></span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="55%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Jesse Griffis <jagriffis@mail.wvu.edu><br>
<b>Sent:</b> Thursday, December 15, 2022 2:23 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Issue with searching by identifier in PUI</span>
</p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%; display:table; border-collapse:seperate; float:none">
<tbody>
<tr>
<td style="background:#A6A6A6; padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="x_MsoNormal" style=""><span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif; color:#212121">You don't often get email from jagriffis@mail.wvu.edu.
</span><span style="color:black"><a href="https://aka.ms/LearnAboutSenderIdentification"><span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Learn why this is important</span></a></span><span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif; color:#212121"></span></p>
</div>
</td>
<td width="75" style="width:56.25pt; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 3.75pt">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="x_xxmsonormal"><span style="color:black; background:white">Thank you for the advice. I believe we waited for the index to finish completely, but I will double check that. We are able to find the record through regular keyword searches, and in the
 staff UI we can find it using the exact same identifier search term. I have a theory that it may have something to do with input sanitization on the PUI side as well as the issue with identifier truncation mentioned in </span><a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.atlassian.net%2Fbrowse%2FANW-1556&data=05%7C01%7Cjoshua.d.shaw%40dartmouth.edu%7C285e48f5beaa440cd58408daded1e1ac%7C995b093648d640e5a31ebf689ec9446f%7C0%7C0%7C638067290885360987%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bOlRnYdKFFIjFL8tGmvHyzfOLB6A1QB7gnKOhZiLEJk%3D&reserved=0"><span style="border:none windowtext 1.0pt; padding:0in; background:white">https://archivesspace.atlassian.net/browse/ANW-1556</span></a><span style="color:black; background:white"> .
 The identifier in question has an ampersand which gets translated to "&amp;" in the PUI search and since that isn't an exact match to the identifier it doesn't get returned. I've been trying to figure out a way to fix the ampersand issue and test this theory.</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>