|
|
@ -1689,7 +1689,10 @@ function buildSearchQuery(options, extensions, info, isOrChild) {
|
|
|
|
if (criteria === 'OR') {
|
|
|
|
if (criteria === 'OR') {
|
|
|
|
if (args.length !== 2)
|
|
|
|
if (args.length !== 2)
|
|
|
|
throw new Error('OR must have exactly two arguments');
|
|
|
|
throw new Error('OR must have exactly two arguments');
|
|
|
|
searchargs += ' OR (';
|
|
|
|
if (isOrChild)
|
|
|
|
|
|
|
|
searchargs += 'OR (';
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
searchargs += ' OR (';
|
|
|
|
searchargs += buildSearchQuery(args[0], extensions, info, true);
|
|
|
|
searchargs += buildSearchQuery(args[0], extensions, info, true);
|
|
|
|
searchargs += ') (';
|
|
|
|
searchargs += ') (';
|
|
|
|
searchargs += buildSearchQuery(args[1], extensions, info, true);
|
|
|
|
searchargs += buildSearchQuery(args[1], extensions, info, true);
|
|
|
|