[EP-tech] Re: Writing slightly more complex searches

Ian Stuart Ian.Stuart at ed.ac.uk
Fri Aug 22 16:41:01 BST 2014

On 22/08/14 15:24, John Salter wrote:
> Or do (Friday afternoon monkey-code)
> $list1 = search1: userid = 42
> $list2 = search2: (ispublished = 'pub' OR refereed = 'TRUE')
> $new_list = $list1->intersect( $list2 );
Yep - same as Alan's comment: two searches & take the union (or even the 
onion, but lets not cry over that)

> [From: http://wiki.eprints.org/w/API:EPrints/List]
Cheers for the link!

> I'm guessing you're not on a Xapian-enabled repo..?
Correct :)

(though I may look at it, if it also speeds up OAI-PMH result sets and 
the like)


Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
The University of Edinburgh.


This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

More information about the Eprints-tech mailing list