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

Cannot query fields added via @FieldBridge in Ickle

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • None

      Given an entry that dynamically adds field to the index, such as:

      @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;
         }
      

      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'.

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: