Opened 12 years ago

Closed 12 years ago

#1210 closed defect (fixed)

Csw constraint parsing fails to parse expressions numeric with numeric fields

Reported by: jesseeichar Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: General Version: v2.8.0RC2
Keywords: Cc:

Description

Csw constraint parsing fails to parse expressions numeric with numeric fields like: northBL the constructed object is not a Numeric Range object and thus fails to correctly search for those elements.

A possible fix is to use the StandardQueryParser which appears to be a more flexible parser and specify the numeric fields using the LuceneConfig.

See https://github.com/geonetwork/core-geonetwork/commit/2a271f41be18a1d104e0137f0ce2e68300d02c26

for the patch

Change History (2)

comment:1 by jesseeichar, 12 years ago

A bug fix is in this commit as well: https://github.com/geonetwork/core-geonetwork/commit/6da4efd45ffeb5c250712e23bdb39f32b3a0250e

The new parser does not always create BooleanQueries so this check is needed.

comment:2 by jesseeichar, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.