Tabnine Logo
PutMappingRequestBuilder.setUpdateAllTypes
Code IndexAdd Tabnine to your IDE (free)

How to use
setUpdateAllTypes
method
in
org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder

Best Java code snippets using org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder.setUpdateAllTypes (Showing top 5 results out of 315)

origin: loklak/loklak_server

public void setMapping(String indexName, File json) {
  try {
    this.elasticsearchClient.admin().indices().preparePutMapping(indexName)
      .setSource(new String(Files.readAllBytes(json.toPath()), StandardCharsets.UTF_8))
      .setUpdateAllTypes(true)
      .setType("_default_")
      .execute()
      .actionGet();
  } catch (Throwable e) {
    DAO.severe(e);
  };
}
origin: yacy/yacy_grid_mcp

public void setMapping(String indexName, File json) {
  try {
    this.elasticsearchClient.admin().indices().preparePutMapping(indexName)
      .setSource(new String(Files.readAllBytes(json.toPath()), StandardCharsets.UTF_8), XContentType.JSON)
      .setUpdateAllTypes(true)
      .setType("_default_")
      .execute()
      .actionGet();
  } catch (Throwable e) {
    Data.logger.warn("", e);
  };
}
origin: yacy/yacy_grid_mcp

public void setMapping(String indexName, XContentBuilder mapping) {
  try {
    this.elasticsearchClient.admin().indices().preparePutMapping(indexName)
      .setSource(mapping)
      .setUpdateAllTypes(true)
      .setType("_default_").execute().actionGet();
  } catch (Throwable e) {
    Data.logger.warn("", e);
  };
}
origin: yacy/yacy_grid_mcp

public void setMapping(String indexName, Map<String, Object> mapping) {
  try {
    this.elasticsearchClient.admin().indices().preparePutMapping(indexName)
      .setSource(mapping)
      .setUpdateAllTypes(true)
      .setType("_default_").execute().actionGet();
  } catch (Throwable e) {
    Data.logger.warn("", e);
  };
}
origin: yacy/yacy_grid_mcp

public void setMapping(String indexName, String mapping) {
  try {
    this.elasticsearchClient.admin().indices().preparePutMapping(indexName)
      .setSource(mapping, XContentType.JSON)
      .setUpdateAllTypes(true)
      .setType("_default_").execute().actionGet();
  } catch (Throwable e) {
    Data.logger.warn("", e);
  };
}
org.elasticsearch.action.admin.indices.mapping.putPutMappingRequestBuildersetUpdateAllTypes

Javadoc

True if all fields that span multiple types should be updated, false otherwise

Popular methods of PutMappingRequestBuilder

  • setSource
    A specialized simplified mapping source method, takes the form of simple properties definition: ("fi
  • setType
    The type of the mappings.
  • execute
  • get
  • setIgnoreConflicts
  • setIndices
  • <init>
  • setMasterNodeTimeout
  • setTimeout
  • setConcreteIndex

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • BoxLayout (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
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