EPrints Technical Mailing List Archive
Message: #04223
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: exact match on advanced search
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: exact match on advanced search
- From: Timothy Miles-Board <timothy.miles-board@ulcc.ac.uk>
- Date: Tue, 12 May 2015 15:53:48 +0000
What type of field is it? Text? Try changing to id - this doesn't do any preprocessing of search terms.
Tim
On 12 May 2015 3:11 pm, Yuri <yurj@alfa.it> wrote:
Hi!
I would like to change a text search on a field to be an exact match.
now I've:
search_fields => [
{ meta_fields => [ $EPrints::Utils::FULLTEXT ] },
{ meta_fields => [ "localizzazione" ] },
{ meta_fields => [ "tipo_fruizione" ] },
{ meta_fields => [ "collocazione" ] },
[..]
I would like to have the "localizzazione" field to be an exact match
instead of a text search (which instead removes dots, spaces and so on).
Which is the best way to do it? I need it in the advanced search form,
it is not a custom script (which can use filters and works).
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Prev by Date: [EP-tech] Re: Change EPrint field type.
- Next by Date: [EP-tech] Re: exact match on advanced search
- Previous by thread: [EP-tech] exact match on advanced search
- Next by thread: [EP-tech] Re: exact match on advanced search
- Index(es):