Implements the database
This commit is contained in:
@@ -22,7 +22,7 @@ func (s *BleveIndexerSuite) SetUpSuite(c *C) {
|
||||
s.i, err = bleve.New(filepath.Join(c.MkDir(), "satbd-test.bar.satellite"), buildAlbumMapping())
|
||||
c.Assert(err, IsNil)
|
||||
for _, a := range albumsDataTest {
|
||||
c.Assert(s.i.Index((&a).IDString(), &a), IsNil)
|
||||
c.Assert(s.i.Index(AlbumIDString(a.ID), &a), IsNil)
|
||||
}
|
||||
log.Printf("Indexing took %s", time.Since(start))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user