#213: minus in keyword
---------------------+------------------------------------------------------
Reporter: liefra | Owner: geonetwork-devel@lists.sourceforge.net
Type: defect | Status: new
Priority: minor | Milestone: v2.5.0
Component: General | Version: v2.5.0
Keywords: |
---------------------+------------------------------------------------------
There are difficulties with keywords which do contain one or more minuses,
for instance: "Fisheries - low income"
These keywords do show up in the advanced search keywords popup, but a
search results in zero results.
We haven't tested any other Lucene special characters.
The affected keywords can be queried with the Lucene tool Luke, using a
{{{
org.apache.lucene.analysis.KeywordAnalyzer
}}}
Below are logging debug messages, showing a raw Lucene query:
{{{
DEBUG geonetwork.search - Lucene Query: keyword:Fisheries - low income
DEBUG geonetwork.search - Lucene Query: keyword:Fisheries - low income
DEBUG geonetwork.search - Lucene Query: _op0:1
DEBUG geonetwork.search - Lucene Query: _op0:0
DEBUG geonetwork.search - Lucene Query: _op0:1 _op0:0
DEBUG geonetwork.search - Lucene Query: _isTemplate:n
DEBUG geonetwork.search - Lucene Query: +(keyword:Fisheries - low income)
+(_op0:1 _op0:0) +_isTemplate:n
}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/213>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.