blevesearch / bleve

A modern text/numeric/geo-spatial/vector indexing library for go
Apache License 2.0
10.1k stars 686 forks source link

error opening index data/sgk: strconv.ParseUint: parsing "._00000002b9d1": invalid syntax #1827

Closed hktalent closed 1 year ago

hktalent commented 1 year ago
$ cat go.mod|grep bleve
    github.com/blevesearch/bleve/v2 v2.3.8
    github.com/blevesearch/bleve_index_api v1.0.5
    github.com/hktalent/bleve-mapping-ui v0.4.1
    github.com/blevesearch/geo v0.1.17 // indirect
    github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
    github.com/blevesearch/goleveldb v1.1.0 // indirect
    github.com/blevesearch/gtreap v0.1.1 // indirect
    github.com/blevesearch/mmap-go v1.0.4 // indirect
    github.com/blevesearch/scorch_segment_api/v2 v2.1.4 // indirect
    github.com/blevesearch/segment v0.9.1 // indirect
    github.com/blevesearch/snowballstem v0.9.0 // indirect
    github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
    github.com/blevesearch/vellum v1.0.9 // indirect
    github.com/blevesearch/zapx/v11 v11.3.7 // indirect
    github.com/blevesearch/zapx/v12 v12.3.7 // indirect
    github.com/blevesearch/zapx/v13 v13.3.7 // indirect
    github.com/blevesearch/zapx/v14 v14.3.7 // indirect
    github.com/blevesearch/zapx/v15 v15.3.10 // indirect

Perhaps it was caused by some special abnormal exit? I'm not sure, I just hope to fix this bug

init open index error

i, err := bleve.Open(s1)

error opening index data/sgk: strconv.ParseUint: parsing "._00000002b9d1": invalid syntax

how fix?thanks

hktalent commented 1 year ago
$ find data/ -name ".*"
data//LBS/._index_meta.json
data//LBS/store/._root.bolt
data//LBS/._store
data//reverseNc/._index_meta.json
data//reverseNc/store/._root.bolt
data//reverseNc/._store
data//sgk/store/._root.bolt
data//sgk/store/._00000002b9d1.zap
data//sgk/store/._00000002b9d4.zap
data//sgk/store/._00000002b9dc.zap
data//sgk/._index_meta.json
data//osint/._index_meta.json
data//osint/store/._root.bolt
data//osint/._store
(base) 51pwn@123-2 goSqlite_gorm $ find data/ -name ".*" -delete

now is ok I think this should be considered a bug