[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Searching in EP3.2



On Wed, 2012-08-08 at 13:57 +0100, Ian Stuart wrote:
> On 08/08/12 12:33, Tim Brody wrote:
> > On Wed, 2012-08-08 at 11:14 +0100, Ian Stuart wrote:
> >> Confused here.... I'm trying to restrict a search, and it's returning 0
> >> results when it should return 19:
> >>
> >>     $searchexp2->add_field($dsd->get_field("field3"), 'Foo bar');
> >
> > Does that need an EQ ANY?
> 
> It's a single match on a 7-character string...
> 
> For example, this could be
> 
>    $searchexp2->add_field($dsd->get_field("creator_institution"), 
> 'University of Southampton');
> 
> I would expect this to be a singular, complete, match....
> 

Then 'EX' ? Otherwise that may (depending on the field) default to 'EQ
ALL' (=University AND =of AND =Southampton ...).

/Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120808/c822de1a/attachment.bin