Compare commits

..
Author SHA1 Message Date
plarsen 48a8448aa0 B2026-053-Global-Search-should-not-return-partial-matches 2026-07-27 10:51:56 -04:00
plarsen 99fe567e78 Development 2026-07-27 09:13:34 -04:00
@@ -2078,7 +2078,7 @@ namespace Volian.Controls.Library
if (cbxFndUnLnkROVals.Enabled && cbxFndUnLnkROVals.Checked)
{
string ROSearchList2 = exactsearch(ROSearchList); // B2026-053 match exact string
string ROSearchList2 = exactsearch(ROSearchList); // match exact string
// B2022-031 - added a cbxProcSectSrch to filter out procedure and section titles from global search results.
SearchResults = ItemInfoList.GetListFromTextSearch(DVISearchList, TypeSearchList, ROSearchList2, cbxBooleanTxtSrch.Checked ? 2 : cbxCaseSensitive.Checked ? 1 : 0, cbxProcSectSrch.Checked ? 1 : 0, ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars, unitPrefix, string.Empty, string.Empty);
cmbResultsStyleIndex = 3; // display step text in results
@@ -2193,6 +2193,7 @@ namespace Volian.Controls.Library
private string exactsearch(string SearchString) // B2026-053
{
//string ss = "";
StringBuilder ss = new StringBuilder();
int sl = SearchString.Length;
int LstIdxSp = SearchString.LastIndexOf(' ');
@@ -2205,7 +2206,7 @@ namespace Volian.Controls.Library
{
ss.Append(' ');
ss.Append(SearchString); // B2026-053 Exact match add spaces before and after searchString.
ss.Append(' ');
ss.Append(' ');
}
return ss.ToString();
}