Whoosh matches multiple keywords at the same time

question:
when searching with whoosh, for example, the query object obtained by "my apple"
is

.
query_obj = self.parser.parse("my apple", )
print(query_obj)
((symbol:my OR co_name:my OR prv_name:my OR short_name:my OR popular_name:my) AND (symbol:apple OR co_name:apple OR prv_name:apple OR short_name:apple OR popular_name:apple))
The expression

above can only be found if it satisfies both my apple and apple, but in fact we only need to find it with apple.

Jul.15,2021

query = MultifieldParser(["symbol", "co_name", ...], ix.schema group=syntax.OrGroup)
Menu