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.
- is related to
-
ISPN-12270 NPE when calling the Indexer with no indexed entities
- Closed
- relates to
-
ISPN-12218 Indexed caches with non-indexed entities query inconsistency
- Closed