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


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/