Implements the database

This commit is contained in:
2016-01-21 20:24:36 +01:00
parent 40e1e55215
commit 4a18666fe2
5 changed files with 109 additions and 21 deletions

View File

@@ -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))
}