mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
disabled fuzzy matching since it screwed up scored results (?)
This commit is contained in:
parent
c502d4055d
commit
a2fd1afa80
@ -186,8 +186,7 @@ class SearchView(APIView):
|
||||
page = 1
|
||||
|
||||
with self.ix.searcher() as searcher:
|
||||
query_parser = QueryParser("content", self.ix.schema,
|
||||
termclass=terms.FuzzyTerm).parse(query)
|
||||
query_parser = QueryParser("content", self.ix.schema).parse(query)
|
||||
result_page = searcher.search_page(query_parser, page)
|
||||
result_page.results.fragmenter = highlight.ContextFragmenter(
|
||||
surround=50)
|
||||
|
Loading…
x
Reference in New Issue
Block a user