go-ego / riot

Go Open Source, Distributed, Simple and efficient Search Engine; Warning: This is V1 and beta version, because of big memory consume, and the V2 will be rewrite all code.
Apache License 2.0
6.11k stars 474 forks source link

BM25 equal to float32(0) when I using types.SearchReq.Logic for searching #96

Open 2guotou opened 4 years ago

2guotou commented 4 years ago

Description

  1. Using types.FrequenciesIndex OR types.LocsIndex For Indexer
  2. Using Custom Scorer
  3. Not Using "Logic", doc.BM25 >= float32(0);
  4. Using "Logic", The doc.BM25 == float32(0);