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

Indexed caches and Query not properly working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 12.0.0.Final
    • Console, REST
    • None

      When we create a cache that can be queried and we add a protobuf schema object, if the cache is indexed a query like 'from people.Person' won't work.

      • create a protobuf schema
      package people;
      message Person {
       required string name = 1;
      }

       

      • create a indexed cache
      {
       "distributed-cache": {
       "mode": "SYNC",
       "encoding": {
       "key": {
       "media-type": "application/x-protostream"
       },
       "value": {
       "media-type": "application/x-protostream"
       }
       },
       "transaction": {
       "mode": "NONE"
       },
       "indexing": {
       "enabled": true
       },
       "statistics": true
       }
      }

       

      Add an entry

      {
       "_type": "people.Person",
       "name": "katia"
      }

       

      Try the query: from people.Person

       

      The outcome from the REST API

       

      Query error

      Error executing search ISPN014054: Trying to execute query `from people.Person`, but no type is indexed on cache.
       

              karestig@redhat.com Katia Aresti
              karestig@redhat.com Katia Aresti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: