riot icon indicating copy to clipboard operation
riot copied to clipboard

Restore Index Only through StorageFolder

Open xfanplus opened this issue 7 years ago • 3 comments

hi,

after set UseStorage: true, I can create index from the StorageFolder, but i still need the original content like stringData in engine.IndexDoc(DocId, types.DocIndexData{Content: stringData}). I have many files and read them from disk is time-comsuming, is there any way to check whether the specific DocId exists and restore the index without stringData(only through StorageFolder)?

thanks!

xfanplus avatar Dec 17 '17 05:12 xfanplus

GetAllDocIds can get all data id, restore the index without stringData?

vcaesar avatar Dec 17 '17 15:12 vcaesar

Yes, I don't want to read all the original stringData from disk, it takes very long time.

xfanplus avatar Dec 18 '17 01:12 xfanplus

Currently, you can use memory for indexing.

vcaesar avatar Jan 12 '18 12:01 vcaesar