See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
[EP-tech] Limitations of search API?
From: Stephen Shorrock <sms67 AT cam.ac.uk>
Date: Fri, 07 Nov 2008 13:34:02 +0000
| Threading: | • This Message → [EP-tech] Re: Limitations of search API? from sms67 AT cam.ac.uk → [EP-tech] Re: Limitations of search API? from tdb01r AT ecs.soton.ac.uk → [EP-tech] Re: Limitations of search API? from sms67 AT cam.ac.uk |
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** EPrints community wiki - http://wiki.eprints.org/ Hi All, I was wondering whether anyone has managed to get round some issues I've found with the search API. I'd like to be able to do a couple of things: A, Include non-word characters in my search queries (eg underscore _ asterix *) B, Achieve an SQL type 'OR' in the conditions that are created for an exact match which includes white space eg 'project X' OR 'theme_Y' . To try and achieve B I attempted to use two search fields eg; $search->add_field([ $ds->get_field( "projects" ↵ )],["project X""],"EX","ALL" ); $search->add_field([ $ds->get_field( "projects" )],["theme_Y""],"EX","ALL" ); But, as I think is mentioned somewhere in the code, the second search condition overwrites the first. Interestingly in the docs of Search::Field there is the note: "It can search over several metadata fields, and the value of the value of the search field is usually a string containing a list of whitespace seperated words, or other search criteria." I don't want a whitespace separated list of words, so what is and how can I utilise 'other search criteria'? are there any escape characters that can be used? Thanks in advance, Stephen
[index] [prev] [next] [options] [help]




