mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 07:23:34 +01:00
fix: search with only NOT conditions doesn't return results
closes #694
This commit is contained in:
parent
5d7fdb3557
commit
ff6861c554
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class LuceneHelper(
|
|||
try {
|
||||
val fieldsQuery = MultiFieldQueryParser(entity.defaultFields, searchAnalyzer).apply {
|
||||
defaultOperator = QueryParser.Operator.AND
|
||||
}.parse(searchTerm)
|
||||
}.parse("$searchTerm *:*")
|
||||
|
||||
val typeQuery = TermQuery(Term(LuceneEntity.TYPE, entity.type))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue