EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03411
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Writing slightly more complex searches
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Writing slightly more complex searches
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Fri, 22 Aug 2014 16:41:01 +0100
On 22/08/14 15:24, John Salter wrote:
Yep - same as Alan's comment: two searches & take the union (or even the onion, but lets not cry over that)Or do (Friday afternoon monkey-code) $list1 = search1: userid = 42 $list2 = search2: (ispublished = 'pub' OR refereed = 'TRUE') $new_list = $list1->intersect( $list2 );
[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, EDINA, The University of Edinburgh. http://edina.ac.uk/ This email was sent via the University of Edinburgh. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- Follow-Ups:
- [EP-tech] Re: Writing slightly more complex searches
- From: sf2 <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Writing slightly more complex searches
- References:
- [EP-tech] Writing slightly more complex searches
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Re: Writing slightly more complex searches
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Re: Writing slightly more complex searches
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Writing slightly more complex searches
- Prev by Date: [EP-tech] Re: Writing slightly more complex searches
- Next by Date: [EP-tech] Re: Writing slightly more complex searches
- Previous by thread: [EP-tech] Re: Writing slightly more complex searches
- Next by thread: [EP-tech] Re: Writing slightly more complex searches
- Index(es):