Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1244 closed defect (fixed)

lucene doesn't index gmx:anchor keywords added from thesaurus

Reported by: landry Owned by: geonetwork-devel@…
Priority: major Milestone: v2.8.1
Component: General Version: v2.8.0
Keywords: Cc:

Description

Tried with vanilla 2.8.0 :

edit one of the sample metadata, add a keyword from a thesaurus -> the following xml is added to the metadata

<gmd:descriptiveKeywords><gmd:MD_Keywords><gmd:keyword><gmx:Anchor xlink:href="http://localhost:8080/geonetwork/srv/en/xml.keyword.get?thesaurus=external.place.regions&id=http://geonetwork-opensource.org/regions%233">Albania</gmx:Anchor>

But if you look for a metadata with 'Albania' in the keywords, it doesn't show up - as if lucene was only indexing pure-text keywords such as

<gmd:descriptiveKeywords><gmd:MD_Keywords><gmd:keyword><gco:CharacterString>Africa</gco:CharacterString>

This is with the old-style UI. When using the widgets UI, the /q service (ie http://localhost:8080/geonetwork/srv/fre/q?fast=index) doesnt return <keyword>Albania</keyword> for this metadata, it only returns 'pure' text keywords.

Change History (3)

comment:1 by landry, 12 years ago

It seems that the old-style xml.search and xml.search?fast=index services dont return those anchor/xlinks keywords either, so i'm not sure this is only linked to lucene here.....

comment:2 by simonp, 12 years ago

Milestone: v2.9.0v2.8.1
Resolution: fixed
Status: newclosed

gmx:Anchor content was not being indexed in 2.8.x only (trunk was ok) - see 672d6eadd51bd893b93f66e81d330893453567ea

comment:3 by landry, 12 years ago

Thanks, works perfectly now!

Note: See TracTickets for help on using tickets.