Ejemplo n.º 1
0
 /**
  * Prepares the MemoryIndex for querying in a non-lazy way.
  *
  * <p>After calling this you can query the MemoryIndex from multiple threads, but you cannot
  * subsequently add new data.
  */
 public void freeze() {
   this.frozen = true;
   for (Info info : fields.values()) {
     info.sortTerms();
     info.getNormDocValues(); // lazily computed
   }
 }
Ejemplo n.º 2
0
 @Override
 public NumericDocValues getNormValues(String field) {
   Info info = fields.get(field);
   if (info == null) {
     return null;
   }
   return info.getNormDocValues();
 }