Tabnine Logo
ElasticSearchIndexer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.james.backends.es.ElasticSearchIndexer
constructor

Best Java code snippets using org.apache.james.backends.es.ElasticSearchIndexer.<init> (Showing top 3 results out of 315)

origin: org.apache.james/apache-james-mailbox-quota-search-elasticsearch

@Before
public void setUp() {
  client = QuotaSearchIndexCreationUtil.prepareDefaultClient(
    new TestingClientProvider(embeddedElasticSearch.getNode()).get());
  quotaMailboxListener = new ElasticSearchQuotaMailboxListener(
    new ElasticSearchIndexer(client,
      Executors.newSingleThreadExecutor(),
      QuotaRatioElasticSearchConstants.DEFAULT_QUOTA_RATIO_WRITE_ALIAS,
      QuotaRatioElasticSearchConstants.QUOTA_RATIO_TYPE,
      BATCH_SIZE),
    new QuotaRatioToElasticSearchJson());
}
origin: org.apache.james/apache-james-mailbox-quota-search-elasticsearch

new ElasticSearchIndexer(client, Executors.newSingleThreadExecutor(),
  QuotaRatioElasticSearchConstants.DEFAULT_QUOTA_RATIO_WRITE_ALIAS,
  QuotaRatioElasticSearchConstants.QUOTA_RATIO_TYPE),
origin: org.apache.james/apache-james-mailbox-elasticsearch

@Override
protected void initializeMailboxManager() throws Exception {
  Client client = MailboxIndexCreationUtil.prepareDefaultClient(
    new TestingClientProvider(embeddedElasticSearch.getNode()).get());
  storeMailboxManager = new InMemoryIntegrationResources()
    .createMailboxManager(new SimpleGroupMembershipResolver());
  ElasticSearchListeningMessageSearchIndex elasticSearchListeningMessageSearchIndex = new ElasticSearchListeningMessageSearchIndex(
    storeMailboxManager.getMapperFactory(),
    new ElasticSearchIndexer(client,
      Executors.newSingleThreadExecutor(),
      MailboxElasticSearchConstants.DEFAULT_MAILBOX_WRITE_ALIAS,
      MailboxElasticSearchConstants.MESSAGE_TYPE,
      BATCH_SIZE),
    new ElasticSearchSearcher(client, new QueryConverter(new CriterionConverter()), SEARCH_SIZE,
      new InMemoryId.Factory(), storeMailboxManager.getMessageIdFactory(),
      MailboxElasticSearchConstants.DEFAULT_MAILBOX_READ_ALIAS,
      MailboxElasticSearchConstants.MESSAGE_TYPE),
    new MessageToElasticSearchJson(textExtractor, ZoneId.of("Europe/Paris"), IndexAttachments.YES));
  messageIdManager = new StoreMessageIdManager(
    storeMailboxManager,
    storeMailboxManager.getMapperFactory(),
    storeMailboxManager.getEventDispatcher(),
    storeMailboxManager.getMessageIdFactory(),
    storeMailboxManager.getQuotaManager(),
    storeMailboxManager.getQuotaRootResolver());
  storeMailboxManager.setMessageSearchIndex(elasticSearchListeningMessageSearchIndex);
  storeMailboxManager.addGlobalListener(elasticSearchListeningMessageSearchIndex, new MockMailboxSession("admin"));
  this.messageSearchIndex = elasticSearchListeningMessageSearchIndex;
}
org.apache.james.backends.esElasticSearchIndexer<init>

Popular methods of ElasticSearchIndexer

  • index
  • delete
  • deleteAllMatchingQuery
  • update
  • checkArgument

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Vim 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