From 57d6aeed6765342631627138fd116c6fd81c911c Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Thu, 23 May 2024 11:01:51 -0600 Subject: [PATCH] make search filter on lexeme form and citation form --- backend/LcmCrdt/CrdtLexboxApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/LcmCrdt/CrdtLexboxApi.cs b/backend/LcmCrdt/CrdtLexboxApi.cs index 27c3cfbc4..e0a11d13f 100644 --- a/backend/LcmCrdt/CrdtLexboxApi.cs +++ b/backend/LcmCrdt/CrdtLexboxApi.cs @@ -73,7 +73,7 @@ public async Task GetWritingSystems() public IAsyncEnumerable SearchEntries(string? query, QueryOptions? options = null) { if (string.IsNullOrEmpty(query)) return GetEntriesAsyncEnum(null, options); - return GetEntriesAsyncEnum(e => e.LexemeForm.SearchValue(query), options); + return GetEntriesAsyncEnum(e => e.LexemeForm.SearchValue(query) || e.CitationForm.SearchValue(query), options); } private async IAsyncEnumerable GetEntriesAsyncEnum(