Emmanuel Engelhart
2013-Nov-27 19:21 UTC
[Xapian-discuss] Question about embedding Xapian index in one file
Hi, Xapian uses a directory as standard storage backend. Is that possible to pack everything in a file (a tar file for example), and to tell libxapian to open it (by telling him at which offset are the different stuff)? If this is not possible yet, would that be technically possible to implement such a feature? How complex would that be? Kind regards Emmanuel -- Kiwix - Wikipedia Offline & more * Web: http://www.kiwix.org * Twitter: https://twitter.com/KiwixOffline * more: http://www.kiwix.org/wiki/Communication
Wilm Schumacher
2013-Nov-27 20:49 UTC
[Xapian-discuss] Question about embedding Xapian index in one file
Hi, !!!Warning: Xapian-Newbie writing 1.) a possible solution: I would not do this by xapian, but by the operating system. You could create a "moutable file", and mount it to a directory of your choice and let Xapian read and write in this directory. All changes would happen in this one file. 2.) just for clarification: why would you want such thing? What is the advantage of this plan? Best Wilm Am 27.11.2013 20:21, schrieb Emmanuel Engelhart:> Hi, > > Xapian uses a directory as standard storage backend. Is that possible to > pack everything in a file (a tar file for example), and to tell > libxapian to open it (by telling him at which offset are the different > stuff)? > > If this is not possible yet, would that be technically possible to > implement such a feature? How complex would that be? > > Kind regards > Emmanuel >
Emmanuel Engelhart
2013-Nov-27 20:59 UTC
[Xapian-discuss] Question about embedding Xapian index in one file
Le 27/11/2013 21:49, Wilm Schumacher a ?crit :> !!!Warning: Xapian-Newbie writing > > 1.) a possible solution: I would not do this by xapian, but by the > operating system. You could create a "moutable file", and mount it to a > directory of your choice and let Xapian read and write in this > directory. All changes would happen in this one file.This is not really on option for us, our software supports a lot of different OSes, and I don't really want to start to add such type of complexity.> 2.) just for clarification: why would you want such thing? What is the > advantage of this plan?We provide read-only archives of content in a dedicated file and we use Xapian only to provide full-text search. Not having everything in one file makes the life of our users (and ours) unnecessary complicated. Emmanuel -- Kiwix - Wikipedia Offline & more * Web: http://www.kiwix.org * Twitter: https://twitter.com/KiwixOffline * more: http://www.kiwix.org/wiki/Communication