Ejemplo n.º 1
0
 /**
  * Perform a sanity check on the existing index to verify that it's valid. If the index is
  * corrupt, we'll force a rebuild of it.
  *
  * @return
  */
 protected boolean indexCorrupt() {
   Index index = getIndex();
   if (index == null) {
     return true;
   }
   List<String> categories = index.getCategories();
   return categories == null || categories.isEmpty();
 };