[Xapian-tickets] [Xapian] #198: Add support for multiple values in each value slot in a Document.
Xapian
nobody at xapian.org
Mon Jul 20 22:57:21 BST 2009
#198: Add support for multiple values in each value slot in a Document.
---------------------------+------------------------------------------------
Reporter: richard | Owner: richard
Type: defect | Status: assigned
Priority: high | Milestone: 1.1.4
Component: Backend-Chert | Version: SVN trunk
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking: 199
---------------------------+------------------------------------------------
Comment(by richard):
Oops, yes, !StringListSerialiser.
You'd only need to use a Sorter for a value slot that you've stored
multiple values in - I think wanting to sort on a field with multiple
values is going to be quite rare (but could be wrong!).
If you want to separate the storage of the first value from the subsequent
values, you could do that by using one slot to store the first value (as a
plain entry), and a second slot to hold the subsequent values (as a
!StringListSerialised set of entries).
I think the difference is about where the code complexity sits - I'm not
sure that there's anything which needs to sit inside the innards of
Xapian, so I'm thinking that we shouldn't make them more complex than we
need to.
Also, there's a question of implementation time - we have a
StringListSerialiser implementation already that works (though could
probably do with some API tidying), but we'd have to implement the
multiple-value-in-a-slot storage mechaism, for each backend, which would
be quite a bit of work.
Perhaps we're going in circles a bit - we should probably discuss this on
IRC instead.
--
Ticket URL: <http://trac.xapian.org/ticket/198#comment:18>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list