Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Restore Index Only through StorageFolder #24

Open
xfanplus opened this issue Dec 17, 2017 · 3 comments
Open

Restore Index Only through StorageFolder #24

xfanplus opened this issue Dec 17, 2017 · 3 comments

Comments

@xfanplus
Copy link

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!

@vcaesar
Copy link
Member

vcaesar commented Dec 17, 2017

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

@xfanplus
Copy link
Author

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

@vcaesar
Copy link
Member

vcaesar commented Jan 12, 2018

Currently, you can use memory for indexing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants