0
0
Fork 0

fixed errcheck issues

This commit is contained in:
Marty Schoch 2016-01-13 17:10:13 -05:00
parent af25e724f6
commit 2479ddef2e
1 changed files with 8 additions and 2 deletions

View File

@ -1338,8 +1338,14 @@ func TestBooleanFieldMappingIssue109(t *testing.T) {
type doc struct {
Bool bool
}
index.Index("true", &doc{Bool: true})
index.Index("false", &doc{Bool: false})
err = index.Index("true", &doc{Bool: true})
if err != nil {
t.Fatal(err)
}
err = index.Index("false", &doc{Bool: false})
if err != nil {
t.Fatal(err)
}
sreq := NewSearchRequest(NewBoolFieldQuery(true).SetField("Bool"))
sres, err := index.Search(sreq)