Opened 12 years ago
Last modified 12 years ago
#1051 new defect
Lucene searches for two keywords separated by dash return no result
Reported by: | vsinceac | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | v2.6.5 |
Component: | General | Version: | v2.6.4 |
Keywords: | Lucene, keywords, dash | Cc: |
Description
Found this for GN 2.6.4, I did not try other releases.
Example found on the fao geonetwork (also 2.6.4): http://www.fao.org/geonetwork/srv/en/main.home
There is one metadata containing "WOFOST-based" in Abstract. Here below some simple searches by keywords (with or wihtout "", as result is the same) for region=any, and the corresponding result:
"WOFOST based" -> OK (1) "WOFOST-based" -> NOK (0) "WOFOST?based" -> NOK (0) "WOFOST*based" -> NOK (0) "WOFOST/based" -> OK (1) "WOFOST - based" -> OK (1) "WOFOST ?based" -> NOK (0) "WOFOST? based" -> NOK (0)
Is this the expected behavior? Should I clean the keywords list for "-" (and other chars?) before sending the get query?
On the same geonetwork, both searches "November 2003 - June 2004" and "November 2003 June 2004" return the same results (containing "November 2003 - June 2004" in Abstract).
Thanks,
Victor