3 Replies Latest reply on Jun 29, 2017 2:17 AM by abhishekdg1983

    Infinispan Proto file indexing

    abhishekdg1983

      I have a sample proto file like this, I want to make the Person.name as indexed and the whole Device class to be indexed, how to achieve this in proto file?:

       

      package org.jboss.as.quickstarts.datagrid.hotrod.query;

      message Person {

        required string name = 1;

        required int32 id = 2;

        optional string email = 3;

       

        enum PhoneType {

          MOBILE = 0;

          HOME = 1;

          WORK = 2;

        }

       

        message PhoneNumber {

          required string number = 1;

          optional PhoneType type = 2 [default = HOME];

        }

       

        repeated PhoneNumber phone = 4;

      }

       

      message Device {

        required string name = 1;

        required int32 id = 2;

        optional string description = 3;

      }

       

      message AddressBook {

        repeated Device device = 1;

      }