[infinispan-issues] [JBoss JIRA] (ISPN-12203) @SortableField annotation is ignored in sub-message

Gustavo Fernandes (Jira) issues at jboss.org
Fri Aug 7 06:13:00 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-12203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gustavo Fernandes updated ISPN-12203:
-------------------------------------
    Summary: @SortableField annotation is ignored in sub-message  (was: @SortableField annotation is ignored in sub-type)


> @SortableField annotation is ignored in sub-message
> ---------------------------------------------------
>
>                 Key: ISPN-12203
>                 URL: https://issues.redhat.com/browse/ISPN-12203
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying, Remote Querying
>    Affects Versions: 11.0.3.Final
>            Reporter: Gustavo Fernandes
>            Priority: Major
>
> Consider the protofile:
> {code:java}
> /* @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;
> }
> {code}
> The sortable annotations in the subtype are not taken into consideration and the query fails with:
> {noformat}
> 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.
> {noformat}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list