suggest-go/suggest

Document Collector implementation

alldroll opened this issue · 0 comments

The current implementation of merge documents is not performance efficient:

  • We collect all documents (even when do not have to do it)
  • We are performing scoring on each document
  • We return all matching documents (memory inefficient at all)

As solutions, we can use Lucene approach: