Opened 15 years ago

Closed 15 years ago

#213 closed defect (fixed)

minus in keyword

Reported by: liefra Owned by: josegar74
Priority: minor Milestone: v2.4.3
Component: General Version: v2.4.2
Keywords: Cc:

Description

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

Change History (2)

comment:1 by ticheler, 15 years ago

Milestone: v2.5.0v2.4.3
Owner: changed from geonetwork-devel@… to josegar74
Version: v2.5.0v2.4.2

comment:2 by josegar, 15 years ago

Resolution: fixed
Status: newclosed

I checked in 2.4.3 assigning "Fisheries - low income" keyword to some metadata records and seem found them correctly.

Possibly was fixed with new search improvements

Note: See TracTickets for help on using tickets.