[Xapian-devel] GSoC xapian node binding

Liam xapian at networkimprov.net
Sat Apr 28 01:41:38 BST 2012


On Fri, Apr 27, 2012 at 3:24 PM, Marius Tibeica <mtibeica at gmail.com> wrote:

>
> On Sat, Apr 28, 2012 at 12:37 AM, Liam <xapian at networkimprov.net> wrote:
>
>> Re the Query structure spec, looks good.
>>
>>   Query (Query::op op_, const std::string &left, const std::string
>> &right) {
>>
> I think it can be handled by
> {
>   op: string,
>   queries: [ object_querystructure1, ...]
> }
> with an array of two elements (the first being left and the second right)
>
>
True, but the user might mistakenly put >2 strings in the array, or mix
objects and strings? so maybe

{op:string, left:string, right:string}

And that gives us the whole query-constructor API in one method, very nice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120427/79cda5e1/attachment.htm>


More information about the Xapian-devel mailing list