Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1986

Allow users to define multiple subfield types in AbstractSubTypeFieldType

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Schema and Analysis
    • None

    Description

      A few small changes to the AbstractSubTypeFieldType class to allow users to define distinct field types for each subfield. This enables us to define complex data types in the schema.

      For example, we have our own subclass of the CoordinateFieldType called TemporalCoverage where we store a start and end date for an event but now we can store a name for the event as well.

      <fieldType name="temporal" class="uk.ac.edina.solr.schema.TemporalCoverage" dimension="3" subFieldSuffix="_ti,_ti,_s"/>

      In this example, the start and end dates get stored as trie-coded integer subfields and the description as a string subfield.

      Attachments

        1. AbstractMultiSubTypeFieldType.patch
          6 kB
          Thomas Joiner
        2. multiSubType.patch
          2 kB
          Mark Allan
        3. SOLR-1986.patch
          16 kB
          Thomas Joiner

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markjallan Mark Allan
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified