[Xapian-devel] GSoC xapian node binding

Marius Tibeica mtibeica at gmail.com
Sat Apr 28 09:04:23 BST 2012


I have no problem with also adding {op:string, left:string, right:string}
to make everything clearer.

I will throw exceptions if the objects are not of the correct type.

On Sat, Apr 28, 2012 at 3:41 AM, Liam <xapian at networkimprov.net> wrote:

>
> 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.
>
> _______________________________________________
> Xapian-devel mailing list
> Xapian-devel at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120428/3c0290e1/attachment-0001.htm>


More information about the Xapian-devel mailing list