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 473 forks source link

Fix #37 #38

Closed szyhf closed 6 years ago

szyhf commented 6 years ago

fix GetAllDocIds() and GetAllIds() can not get real ids.

Provide test code:

```Go
    for _, id := range postSearcher.GetAllDocIds() {
    println("ID = %d", id)
}
```

fix test code of


func TestEngineIndexDocWithPersistentStorage(t *testing.T) {
    gob.Register(ScoringFields{}) //  new code
        ....
}

Description

...