title: Is it possible to index a simple infinispan cache?
body: <p>I want to index my cache to have better response time for my serachs in the cache.</p>
  <p>Here how I implemented the infinispan cache :</p>
  <pre><code> private Cache createCache(String cacheName) {
      try {
          final Configuration configuration = new ConfigurationBuilder()
              .indexing()
              .addIndexedEntity(MyEntity.class)
              .simpleCache(true)
              .statistics().enable()
  
              .build();
          cacheManager.defineConfiguration(cacheName, configuration);
      }catch (RuntimeException ex){
  
      }
      return cacheManager.getCache(cacheName);
  }
  </code></pre>
  <p>But I got he following exception :</p>
  <blockquote>
  <p>ISPN000436: Cache 'MyCache' has been requested, but no matching cache configuration exists</p>
  </blockquote>
  <p>Any idea about the reason of error ?</p>