2022-05-24 18:03:31 +09:30
|
|
|
package db
|
|
|
|
|
|
|
|
func (db *DB) InitIndices() {
|
2025-04-25 23:57:04 +09:30
|
|
|
panic("unimplemented")
|
|
|
|
// wi := entity.WordIndex{}
|
|
|
|
// db.store.DeleteMatching(wi, &bolthold.Query{})
|
2022-05-24 18:03:31 +09:30
|
|
|
}
|
|
|
|
|
2025-04-25 23:57:04 +09:30
|
|
|
// func (db *DB) IndexDocument(id uint64, info entity.PageInfo) {
|
|
|
|
// log.Printf("I am indexing!")
|
|
|
|
// err := db.bleve.Index(fmt.Sprint(id), info)
|
|
|
|
// if err != nil {
|
|
|
|
// panic(err)
|
|
|
|
// }
|
|
|
|
// }
|
2022-05-24 18:03:31 +09:30
|
|
|
|
2025-04-25 23:57:04 +09:30
|
|
|
// func (db *DB) UpdateIndexForWordsByID(words []string, id uint64) {
|
|
|
|
// panic("I should not be called")
|
|
|
|
// }
|
2022-05-24 18:03:31 +09:30
|
|
|
|
|
|
|
func (db *DB) DumpIndex() {
|
2025-04-25 23:57:04 +09:30
|
|
|
panic("unimplemented")
|
2022-05-24 18:03:31 +09:30
|
|
|
|
|
|
|
}
|