Implementation of substring search in omegascript

James Aylett james-xapian at tartarus.org
Tue Feb 16 11:21:27 GMT 2016


On 16 Feb 2016, at 10:11, Olly Betts <olly at survex.com> wrote:

>> (Note that it looks to me like there’s a bug in the evalargs handling,
>> where minargs == N.)
> 
> Although it isn't clearly documented, (minargs == N) means just treat
> all the content as one argument (rather than splitting it at commas).
> 
> In this case, evalargs is ignored - arguably a bug, but it's a latent
> one as (minargs == N) is only actually used for comments, where such
> splitting would be a waste of effort:
> 
>    ${This is a comment, do you see?}

Ah, right. Yes, that probably warrants a little documentation at some point; most of the rest is fairly easy to figure out from the code, but I missed the first detail, and didn’t spot that it’s only set for comments.

J

-- 
 James Aylett, occasional trouble-maker
 xapian.org




More information about the Xapian-devel mailing list