Opened 9 years ago

Closed 9 years ago

#565 closed enhancement (wontfix)

Perl bindings don't allow to select database backend on creation

Reported by: Vitaliy Filippov Owned by: Olly Betts
Priority: normal Milestone:
Component: Search::Xapian Version: 1.2.6
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All


When you create database using Search::Xapian::WritableDatabase->new() in Perl, you can't specify which backend to use (flint/chert/brass) and you end up with default chert. It would be good to have an opportunity to select backend. An example patch is attached, though you might wish to adjust it corresponding to your coding guidelines.

Attachments (1)

patch-Search-Xapian- (5.4 KB ) - added by Vitaliy Filippov 9 years ago.
Backend and block size selection for Search::Xapian::WritableDatabase

Download all attachments as: .zip

Change History (2)

by Vitaliy Filippov, 9 years ago

Backend and block size selection for Search::Xapian::WritableDatabase

comment:1 by Olly Betts, 9 years ago

Resolution: wontfix
Status: newclosed

Selecting the backend is possible in the SWIG-based Perl bindings which have now replaced the hand-coded XS bindings on trunk. It would be unhelpful to add an incompatible way to achieve this in 1.2.x - users would either have to change their code in the near future, or we'd need to either implement that way in trunk and then support two APIs which can achieve the same ends.

So sorry, but I don't think we want this patch. If we're going to support this in 1.2.x, it needs to be compatible with how this works in trunk.

Note: See TracTickets for help on using tickets.