EPrints Technical Mailing List Archive
Message: #02533
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Search, for partial matches
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Search, for partial matches
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Tue, 21 Jan 2014 16:17:33 +0000
On 21/01/14 16:02, Ian Stuart wrote:
On 21/01/14 15:44, Sebastien Francois wrote:Perhaps your email field is of type "email" or "id" in which case an exact match is performed? Try setting the "match" parameter to "IN" in your search (match is the 3rd argument of ->add_field) Also how stuff is searched/indexed is defined in the metafield classes (e.g. look at MetaField/Email::get_index_codes) - look what's in your foo__rindex table to see what has been indexed.Nope - of type text. how does one create an indexed field? { name => "email", type => "text", required => 1, text_index => 1 }
Correct - "text_index" is not even needed since MetaField/Text.pm sets "text_index" to true by default.
Hm... have you looked at what's in the index tables for your dataset/field?
- References:
- [EP-tech] Search, for partial matches
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Re: Search, for partial matches
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Search, for partial matches
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Search, for partial matches
- Prev by Date: [EP-tech] Re: Search, for partial matches
- Next by Date: [EP-tech] Re: Search, for partial matches
- Previous by thread: [EP-tech] Re: Search, for partial matches
- Next by thread: [EP-tech] Re: Search, for partial matches
- Index(es):