Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2224

Change access levels in SearchIndex and NodeIndexer for better inherance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5.6, 2.0-alpha4
    • 2.0-alpha7
    • jackrabbit-core
    • None

    Description

      I want to change NodeIndexer#addBinaryValue logic in JR 1.5.6, therefore i needed to:

      • create a custom class extending NodeIndexer for changing binary field indexation
      • create a custom class extending SearchIndex for using this custom NodeIndexer

      I was obliged to:

      • override SearchIndex#createTextExtractor in order to store created TextExtractor because of private attribute
      • put both classes into package org.apache.jackrabbit.core.query.lucene because NodeIndexer#createDoc(...) is protected

      In trunk TextExtractor has now a getter but there are still some private attributes.
      And NodeIndexer#createDoc(...) is still protected and there are some private methods.

      Attachments

        1. JCR-2224-2009-07-23.patch
          4 kB
          Sébastien Launay

        Activity

          People

            Unassigned Unassigned
            yabon Sébastien Launay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: