简体   繁体   中英

Apache Lucene: How to read segment/Index files from a jar

how will I read Segment/index files which is stored inside a jar file using Apache Lucene. If files are kept in a folder then it works properly.But I have to read the file from a jar only.

There is no such functionality out of the box. To make this happen, you would need to implement oalstore.Directory and feed it to the IndexReader .

Needless to say, performance for such a thing would suffer as effectively every change would have to be zipped/unzipped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM