On ElasticSearch, query like "(--)", "(-)" or "(--science)" fails. In authority module (authorities-home.pl or auth-finder.pl), searching a term like "Science -- fiction" produce a query that fail: "(Science) AND (--) AND (fiction)"
Created attachment 115156 [details] [review] Bug 27431: Elasticsearch - escape words that equal to hyphen or starting with more than one hyphen
Created attachment 118499 [details] [review] Bug 27431: Elasticsearch - escape words that equal to hyphen or starting with more than one hyphen Signed-off-by: HUGO AGUD <hagud@orex.es>
Can we get a more detailed test plan and some unit tests for this one? Terms beginning with '-' are treated as negtive terms, i.e. the results shouldn't have them - this doesn't seem to affect that Is this affecting biblio search as well as auth?