Skip to content

Commit

Permalink
make search filter on lexeme form and citation form
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed May 23, 2024
1 parent 2346654 commit 57d6aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/LcmCrdt/CrdtLexboxApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<WritingSystems> GetWritingSystems()
public IAsyncEnumerable<MiniLcm.Entry> 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<MiniLcm.Entry> GetEntriesAsyncEnum(
Expand Down

0 comments on commit 57d6aee

Please sign in to comment.