Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7842

Declarative indexed entity mapping

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None

    Description

      We need a way to list annotation-less indexed entities in the infinispan XML.
      The

      <indexed-entities>
      

      element schema will need to be extended as follows:

                  <indexed-entities>
                     <!-- annotated entity -->
                     <indexed-entity>org.infinispan.query.queries.faceting.Car</indexed-entity>
                     <!-- non-annotated entity -->
                     <indexed-entity-mapping>
                        <!-- the FQN of the class to index -->
                        <class>my.domain.model.Author</class>
                        <!-- optional -->
                        <spatial name="place" mode="HASH"/>
                        <!-- list of indexed properties -->
                        <property name="name" type="method">
                           <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5"/>
                        </property>
                        <property name="title" type="method">
                           <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5" analyzer="titleanalyzer"/>
                        </property>
      
                        <property type="method" name="birthdate">
                           <field store="true" index="true" analyze="true" norms="true" term-vector="yes" boost="0.5"/>
                           <date-bridge resolution="DAY"/>
                        </property>
                        
                        <property type="method" name="city">
                           <spatial name="name" store="true" boost="0.5" spatial-mode="RANGE" />
                        </property>
      
                     </indexed-entity-mapping>
                  </indexed-entities>
                  
      

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: