[infinispan-issues] [JBoss JIRA] (ISPN-11222) Cannot query fields added via @FieldBridge in Ickle

Gustavo Fernandes (Jira) issues at jboss.org
Fri Jan 24 05:55:57 EST 2020


Gustavo Fernandes created ISPN-11222:
----------------------------------------

             Summary: Cannot query fields added via @FieldBridge in Ickle
                 Key: ISPN-11222
                 URL: https://issues.redhat.com/browse/ISPN-11222
             Project: Infinispan
          Issue Type: Bug
            Reporter: Gustavo Fernandes


Given an entry that dynamically adds field to the index, such as:
{code:java}
@Indexed
public class DynamicPropertiesEntity {

   private final Map<String,String> properties = new HashMap<String, String>();

   @Field(analyze=Analyze.YES, store=Store.YES)
   @FieldBridge(impl=StringKeyedMapBridge.class)
   public Map<String, String> getProperties() {
      return properties;
   }

   public DynamicPropertiesEntity set(String key, String value) {
      properties.put(key, value);
      return this;
   }
{code}

Ickle fails to resolve the fields during the query: org.infinispan.objectfilter.ParsingException: 

{{ISPN028501: The type org.infinispan.query.dynamicexample.DynamicPropertiesEntity does not have an accessible property named 'field'.}}




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


More information about the infinispan-issues mailing list