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

@SortableField annotation is ignored in nested message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.0.3.Final
    • None
    • Workaround Exists
    • Hide

      Configure the index to allow uninverting the fields on demand to allow sorting:

       <property name="hibernate.search.index_uninverting_allowed">true</property>
      
      Show
      Configure the index to allow uninverting the fields on demand to allow sorting: <property name= "hibernate.search.index_uninverting_allowed" > true </property>

    Description

      Consider the protofile:

      /* @Indexed */
      message ProcessInstance {
         
          /* @Field(store = Store.YES) */
          optional ProcessInstanceError error = 14;
      }
      
      /* @Indexed */
      message ProcessInstanceError {
          /* @Field(store = Store.YES)
           * @SortableField
           */
          optional string nodeDefinitionId = 1;
          /* @Field(store = Store.YES)
           * @SortableField
           */
          optional string message = 2;
      }
      

      The sortable annotations in the subtype are not taken into consideration and the query fails with:

      SearchException: HSEARCH000301: Requested sort field(s) error.nodeDefinitionId are not configured 
      for entity type org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper mapped to index 
      processinstances_protobuf, thus an uninverting reader must be created. You should declare the 
      missing sort fields using @SortableField.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: