Closed xiaomi-tc closed 5 years ago
sorry, compile ok panic when running
panic: interface conversion: interface {} is types.ScoredDocs, not types.ScoredIDs
goroutine 1 [running]: github.com/go-ego/riot.(*Engine).SearchID(...) /home/devuser/Golibs/src/github.com/go-ego/riot/engine.go:755 main.main() /home/devuser/MyProj/riot_test/default-engine/main.go:29 +0x6b1
Set IdOnly to true with searchID(), otherwise use searchDoc().
Description
Compiling error: '...github.com/go-ego/riot/engine.go:756:3: cannot use resp.Docs.(types.ScoredDocs) (type types.ScoredDocs) as type []types.ScoredID in field value'