Opened 12 years ago

Last modified 12 years ago

#837 new enhancement

language-index-field to be align to trunk

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

Description

Some fixes to apply:

  • token attribute could be removed from all fields (it's defined in config-lucene.xsl)
  • instead of using UPPER (ABCDEFGHIJKLMNOPQRSTUVWXYZ) and LOWER var and translate function, you could switch to XSL v2 and use lower-case upper-case function
  • trunk is not using + 360 shift for coordinates, because lat long are indexed as numeric now.
  • "any" field indexing could probably be done using normalize-space instead of recursive template loop - which is much faster. I've not tested it but something like the following should be ok (you could have a look to "any" in index-fields.xsl) :
    <Field name="any" store="false" index="true" token="true">
     <xsl:attribute name="string">
      <xsl:value-of select="normalize-space(//node()[@locale=$langId])"/>
     </xsl:attribubte>
    </Field>
    
  • default lang in function.xsl is set to "en" not "eng" ?

Change History (2)

comment:1 by fxp, 12 years ago

Type: defectenhancement

Committed revision 8916.

  • Remove token parameter from language-index-fields (it's set in config-lucene.xml).
  • Cleaning: remove unused namespace, use upper-case fct.
  • Used normalize-space for full text criteria instead of recursive loop.
  • Align bbox indexing in language-index-field to index-fields.

TODO :

  • Don't store all fields in index - only those used in q service dumpFields

comment:2 by ianwallen, 12 years ago

Milestone: v2.7.0v2.9.0
Note: See TracTickets for help on using tickets.