]
Gustavo Fernandes updated ISPN-12203:
-------------------------------------
Summary: @SortableField annotation is ignored in nested message (was: @SortableField
annotation is ignored in sub-message)
@SortableField annotation is ignored in nested 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}