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

[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 at 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150512/a069f608/attachment.html