Charles
2021-Oct-05 05:42 UTC
How to use omindex-produced Xapian database with xapian-haystack?
We are migrating an omega-based solution to Django, because we need authentication and authorisation. We are developing a Django solution using django-haystack and xapian-haystack https://github.com/notanumber/xapian-haystack I am stuck on making xapian-haystack read our existing omindex-produced Xapian database. The documentation linked above includes ... HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'xapian_backend.XapianEngine', 'PATH': os.path.join(os.path.dirname(__file__), 'xapian_index'), }, } ... which is a single file but our omindex-produced Xapian database is several files -rw-r--r-- 1 root root 4.4M Sep 28 14:16 docdata.glass -rw-r--r-- 1 root root 0 Sep 28 14:06 flintlock -rw-r--r-- 1 root root 141 Sep 28 14:16 iamglass -rw-r--r-- 1 root root 572M Sep 28 14:16 position.glass -rw-r--r-- 1 root root 522M Sep 28 14:16 postlist.glass -rw-r--r-- 1 root root 44M Sep 28 14:16 termlist.glass I guess this is more of a xapian-haystack question than a Xapian question but the mailing list and irc #haystack mentioned on https://github.com/notanumber/xapian-haystack are defunct
Olly Betts
2021-Oct-05 21:24 UTC
How to use omindex-produced Xapian database with xapian-haystack?
On Tue, Oct 05, 2021 at 11:12:44AM +0530, Charles wrote:> I am stuck on making xapian-haystack read our existing omindex-produced > Xapian database. > > The documentation linked above includes ... > > HAYSTACK_CONNECTIONS = { > 'default': { > 'ENGINE': 'xapian_backend.XapianEngine', > 'PATH': os.path.join(os.path.dirname(__file__), 'xapian_index'), > }, > } > > ... which is a single file but our omindex-produced Xapian database is > several filesI don't know anything specifically about xapian-haystack, but almost certainly this expects to be pointed at the directory containing those files (since that's what Xapian itself expects). Cheers, Olly