@Override
 public TokenStream tokenStream(Analyzer analyzer, TokenStream previous) throws IOException {
   if (fieldType().indexed()) {
     return mapper.popCachedStream().setIntValue(number);
   }
   return null;
 }
Пример #2
0
 @Override
 public TokenStream tokenStream(Analyzer analyzer, TokenStream previous) throws IOException {
   if (fieldType().indexOptions() != IndexOptions.NONE) {
     return mapper.popCachedStream().setDoubleValue(number);
   }
   return null;
 }
 @Override
 public TokenStream tokenStream(Analyzer analyzer) {
   if (fieldType().indexed()) {
     return mapper.popCachedStream().setIntValue(number);
   }
   return null;
 }
 @Override
 public TokenStream tokenStreamValue() {
   if (isIndexed) {
     return mapper.popCachedStream().setIntValue(number);
   }
   return null;
 }