mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02: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 {
|
try {
|
||||||
val fieldsQuery = MultiFieldQueryParser(entity.defaultFields, searchAnalyzer).apply {
|
val fieldsQuery = MultiFieldQueryParser(entity.defaultFields, searchAnalyzer).apply {
|
||||||
defaultOperator = QueryParser.Operator.AND
|
defaultOperator = QueryParser.Operator.AND
|
||||||
}.parse(searchTerm)
|
}.parse("$searchTerm *:*")
|
||||||
|
|
||||||
val typeQuery = TermQuery(Term(LuceneEntity.TYPE, entity.type))
|
val typeQuery = TermQuery(Term(LuceneEntity.TYPE, entity.type))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue