Tabnine Logo
FieldMapper$Builder.storeTermVectors
Code IndexAdd Tabnine to your IDE (free)

How to use
storeTermVectors
method
in
org.elasticsearch.index.mapper.FieldMapper$Builder

Best Java code snippets using org.elasticsearch.index.mapper.FieldMapper$Builder.storeTermVectors (Showing top 10 results out of 315)

origin: org.elasticsearch/elasticsearch

  iterator.remove();
} else if (propName.equals("store_term_vectors")) {
  builder.storeTermVectors(nodeBooleanValue(name, "store_term_vectors", propNode, parserContext));
  iterator.remove();
} else if (propName.equals("store_term_vector_offsets")) {
origin: org.elasticsearch/elasticsearch

public static void parseTermVector(String fieldName, String termVector, FieldMapper.Builder builder) throws MapperParsingException {
  if ("no".equals(termVector)) {
    builder.storeTermVectors(false);
  } else if ("yes".equals(termVector)) {
    builder.storeTermVectors(true);
  } else if ("with_offsets".equals(termVector)) {
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions".equals(termVector)) {
    builder.storeTermVectorPositions(true);
  } else if ("with_positions_offsets".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorPayloads(true);
  } else if ("with_positions_offsets_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
    builder.storeTermVectorPayloads(true);
  } else {
    throw new MapperParsingException("wrong value for termVector [" + termVector + "] for field [" + fieldName + "]");
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  iterator.remove();
} else if (propName.equals("store_term_vectors")) {
  builder.storeTermVectors(nodeBooleanValue(name, "store_term_vectors", propNode, parserContext));
  iterator.remove();
} else if (propName.equals("store_term_vector_offsets")) {
origin: com.strapdata.elasticsearch/elasticsearch

  iterator.remove();
} else if (propName.equals("store_term_vectors")) {
  builder.storeTermVectors(nodeBooleanValue(name, "store_term_vectors", propNode));
  iterator.remove();
} else if (propName.equals("store_term_vector_offsets")) {
origin: apache/servicemix-bundles

  iterator.remove();
} else if (propName.equals("store_term_vectors")) {
  builder.storeTermVectors(nodeBooleanValue(name, "store_term_vectors", propNode, parserContext));
  iterator.remove();
} else if (propName.equals("store_term_vector_offsets")) {
origin: harbby/presto-connectors

  iterator.remove();
} else if (propName.equals("store_term_vectors")) {
  builder.storeTermVectors(nodeBooleanValue(propNode));
  iterator.remove();
} else if (propName.equals("store_term_vector_offsets")) {
origin: harbby/presto-connectors

public static void parseTermVector(String fieldName, String termVector, FieldMapper.Builder builder) throws MapperParsingException {
  termVector = Strings.toUnderscoreCase(termVector);
  if ("no".equals(termVector)) {
    builder.storeTermVectors(false);
  } else if ("yes".equals(termVector)) {
    builder.storeTermVectors(true);
  } else if ("with_offsets".equals(termVector)) {
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions".equals(termVector)) {
    builder.storeTermVectorPositions(true);
  } else if ("with_positions_offsets".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorPayloads(true);
  } else if ("with_positions_offsets_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
    builder.storeTermVectorPayloads(true);
  } else {
    throw new MapperParsingException("wrong value for termVector [" + termVector + "] for field [" + fieldName + "]");
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

public static void parseTermVector(String fieldName, String termVector, FieldMapper.Builder builder) throws MapperParsingException {
  if ("no".equals(termVector)) {
    builder.storeTermVectors(false);
  } else if ("yes".equals(termVector)) {
    builder.storeTermVectors(true);
  } else if ("with_offsets".equals(termVector)) {
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions".equals(termVector)) {
    builder.storeTermVectorPositions(true);
  } else if ("with_positions_offsets".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorPayloads(true);
  } else if ("with_positions_offsets_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
    builder.storeTermVectorPayloads(true);
  } else {
    throw new MapperParsingException("wrong value for termVector [" + termVector + "] for field [" + fieldName + "]");
  }
}
origin: apache/servicemix-bundles

public static void parseTermVector(String fieldName, String termVector, FieldMapper.Builder builder) throws MapperParsingException {
  if ("no".equals(termVector)) {
    builder.storeTermVectors(false);
  } else if ("yes".equals(termVector)) {
    builder.storeTermVectors(true);
  } else if ("with_offsets".equals(termVector)) {
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions".equals(termVector)) {
    builder.storeTermVectorPositions(true);
  } else if ("with_positions_offsets".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorPayloads(true);
  } else if ("with_positions_offsets_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
    builder.storeTermVectorPayloads(true);
  } else {
    throw new MapperParsingException("wrong value for termVector [" + termVector + "] for field [" + fieldName + "]");
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public static void parseTermVector(String fieldName, String termVector, FieldMapper.Builder builder) throws MapperParsingException {
  if ("no".equals(termVector)) {
    builder.storeTermVectors(false);
  } else if ("yes".equals(termVector)) {
    builder.storeTermVectors(true);
  } else if ("with_offsets".equals(termVector)) {
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions".equals(termVector)) {
    builder.storeTermVectorPositions(true);
  } else if ("with_positions_offsets".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
  } else if ("with_positions_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorPayloads(true);
  } else if ("with_positions_offsets_payloads".equals(termVector)) {
    builder.storeTermVectorPositions(true);
    builder.storeTermVectorOffsets(true);
    builder.storeTermVectorPayloads(true);
  } else {
    throw new MapperParsingException("wrong value for termVector [" + termVector + "] for field [" + fieldName + "]");
  }
}
org.elasticsearch.index.mapperFieldMapper$BuilderstoreTermVectors

Popular methods of FieldMapper$Builder

  • fieldType
  • docValues
  • setupFieldType
  • addMultiField
  • boost
  • buildFullName
  • copyTo
  • getDefaultIndexOption
  • includeInAll
  • index
  • indexAnalyzer
  • indexOptions
  • indexAnalyzer,
  • indexOptions,
  • name,
  • omitNorms,
  • searchAnalyzer,
  • similarity,
  • store,
  • storeTermVectorOffsets,
  • storeTermVectorPayloads,
  • storeTermVectorPositions

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Path (java.nio.file)
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now