Package org.elasticsearch.index.mapper
Class MapperServiceTestCase
java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.index.mapper.MapperServiceTestCase
- Direct Known Subclasses:
MapperScriptTestCase
,MapperTestCase
,MetadataMapperTestCase
Test case that lets you easilly build
MapperService
based on some
mapping. Useful when you don't need to spin up an entire index but do
need most of the trapping of the mapping.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.test.ESTestCase
ESTestCase.DeprecationWarning, ESTestCase.GeohashGenerator, ESTestCase.TestAnalysis
Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase
org.apache.lucene.util.LuceneTestCase.AwaitsFix, org.apache.lucene.util.LuceneTestCase.BadApple, org.apache.lucene.util.LuceneTestCase.Monster, org.apache.lucene.util.LuceneTestCase.Nightly, org.apache.lucene.util.LuceneTestCase.Slow, org.apache.lucene.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.util.LuceneTestCase.SuppressFileSystems, org.apache.lucene.util.LuceneTestCase.SuppressFsync, org.apache.lucene.util.LuceneTestCase.SuppressReproduceLine, org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.util.LuceneTestCase.ThrowingRunnable, org.apache.lucene.util.LuceneTestCase.Weekly
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.elasticsearch.xcontent.ToXContent.Params
protected static final org.elasticsearch.common.settings.Settings
Fields inherited from class org.elasticsearch.test.ESTestCase
checkIndexFailures, DEFAULT_TEST_WORKER_ID, failureAndSuccessEvents, FIPS_SYSPROP, JAVA_TIMEZONE_IDS, JAVA_ZONE_IDS, logger, MIN_PRIVATE_PORT, TEST_WORKER_SYS_PROPERTY, TEST_WORKER_VM_ID
Fields inherited from class org.apache.lucene.util.LuceneTestCase
assertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_BADAPPLES, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
compileScript
(org.elasticsearch.script.Script script, org.elasticsearch.script.ScriptContext<T> context) This is the injection point for tests that require mock scripts.protected final org.elasticsearch.index.mapper.DocumentMapper
createDocumentMapper
(String mappings) protected final org.elasticsearch.index.mapper.DocumentMapper
createDocumentMapper
(org.elasticsearch.Version version, org.elasticsearch.xcontent.XContentBuilder mappings) protected final org.elasticsearch.index.mapper.DocumentMapper
createDocumentMapper
(org.elasticsearch.xcontent.XContentBuilder mappings) protected static org.elasticsearch.index.analysis.IndexAnalyzers
protected org.elasticsearch.index.analysis.IndexAnalyzers
createIndexAnalyzers
(org.elasticsearch.index.IndexSettings indexSettings) protected static org.elasticsearch.index.IndexSettings
createIndexSettings
(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings) protected final org.elasticsearch.index.mapper.MapperService
createMapperService
(String mappings) protected org.elasticsearch.index.mapper.MapperService
createMapperService
(BooleanSupplier idFieldEnabled, org.elasticsearch.xcontent.XContentBuilder mappings) protected final org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.common.settings.Settings settings, String mappings) protected org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.xcontent.XContentBuilder mappings) protected final org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings, BooleanSupplier idFieldDataEnabled) protected final org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings, BooleanSupplier idFieldDataEnabled, org.elasticsearch.xcontent.XContentBuilder mapping) Create aMapperService
like we would for an index.protected org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.Version version, org.elasticsearch.xcontent.XContentBuilder mapping) protected org.elasticsearch.index.mapper.MapperService
createMapperService
(org.elasticsearch.xcontent.XContentBuilder mappings) protected org.elasticsearch.index.query.SearchExecutionContext
createSearchExecutionContext
(org.elasticsearch.index.mapper.MapperService mapperService) protected org.elasticsearch.index.query.SearchExecutionContext
createSearchExecutionContext
(org.elasticsearch.index.mapper.MapperService mapperService, org.apache.lucene.search.IndexSearcher searcher) protected org.elasticsearch.index.query.SearchExecutionContext
createSearchExecutionContext
(org.elasticsearch.index.mapper.MapperService mapperService, org.apache.lucene.search.IndexSearcher searcher, org.elasticsearch.common.settings.Settings settings) protected final org.elasticsearch.xcontent.XContentBuilder
dynamicMapping
(org.elasticsearch.index.mapper.Mapping dynamicMapping) protected BiFunction<org.elasticsearch.index.mapper.MappedFieldType,
Supplier<org.elasticsearch.search.lookup.SearchLookup>, org.elasticsearch.index.fielddata.IndexFieldData<?>> protected final org.elasticsearch.xcontent.XContentBuilder
fieldMapping
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildField) protected org.elasticsearch.common.settings.Settings
protected final org.elasticsearch.common.settings.Settings.Builder
protected Collection<? extends org.elasticsearch.plugins.Plugin>
protected final org.elasticsearch.xcontent.XContentBuilder
mapping
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) protected final void
Merge a new mapping into the one in the providedMapperService
.protected final void
merge
(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.index.mapper.MapperService.MergeReason reason, String mapping) protected final void
merge
(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.index.mapper.MapperService.MergeReason reason, org.elasticsearch.xcontent.XContentBuilder mapping) Merge a new mapping into the one in the providedMapperService
with a specificMergeReason
protected final void
merge
(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.xcontent.XContentBuilder mapping) Merge a new mapping into the one in the providedMapperService
.protected final String
protected final org.elasticsearch.xcontent.XContentBuilder
runtimeFieldMapping
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildField) protected final org.elasticsearch.xcontent.XContentBuilder
runtimeMapping
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) protected final org.elasticsearch.index.mapper.SourceToParse
protected final org.elasticsearch.index.mapper.SourceToParse
source
(String index, String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, String routing, Map<String, String> dynamicTemplates) protected final org.elasticsearch.index.mapper.SourceToParse
source
(String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, String routing) protected final org.elasticsearch.index.mapper.SourceToParse
source
(String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, String routing, Map<String, String> dynamicTemplates) protected final org.elasticsearch.index.mapper.SourceToParse
source
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build) protected final org.elasticsearch.xcontent.XContentBuilder
topMapping
(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) protected final void
withAggregationContext
(org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test) protected final void
withAggregationContext
(org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test, Supplier<org.elasticsearch.search.lookup.SearchLookup> lookupSupplier) protected final void
withAggregationContext
(org.elasticsearch.search.aggregations.support.ValuesSourceRegistry valuesSourceRegistry, org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.apache.lucene.search.Query query, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test) protected final void
withAggregationContext
(org.elasticsearch.search.aggregations.support.ValuesSourceRegistry valuesSourceRegistry, org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.apache.lucene.search.Query query, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test, Supplier<org.elasticsearch.search.lookup.SearchLookup> lookupSupplier) protected final void
withLuceneIndex
(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.core.CheckedConsumer<org.apache.lucene.index.RandomIndexWriter, IOException> builder, org.elasticsearch.core.CheckedConsumer<org.apache.lucene.index.IndexReader, IOException> test) Methods inherited from class org.elasticsearch.test.ESTestCase
after, afterIfFailed, afterIfSuccessful, assertArrayEquals, assertBusy, assertBusy, assertCriticalWarnings, assertEquals, assertSettingDeprecationsAndWarnings, assertWarnings, assertWarnings, before, between, buildEnvSettings, buildNewFakeTransportAddress, checkStaticState, compatibleMediaType, copyInstance, copyNamedWriteable, copyNamedWriteable, copyWriteable, copyWriteable, createDefaultIndexAnalyzers, createParser, createParser, createParser, createParser, createParser, createParser, createParserWithCompatibilityFor, createTestAnalysis, createTestAnalysis, createTestAnalysis, enableWarningsCheck, ensureAllSearchContextsReleased, ensureCheckIndexPassed, ensureNoWarnings, ensureSupportedLocale, filteredWarnings, frequently, generateRandomStringArray, generateRandomStringArray, getBasePort, getDataPath, getPortRange, getSuiteFailureMarker, getTestTransportPlugin, getTestTransportType, inFipsJvm, iterations, maybeSet, mockScript, newEnvironment, newEnvironment, newNodeEnvironment, newNodeEnvironment, parserConfig, randomAlphaOfLength, randomAlphaOfLengthBetween, randomArray, randomArray, randomBigInteger, randomBoolean, randomByte, randomByteArrayOfLength, randomCompatibleMediaType, randomDateFormatterPattern, randomDouble, randomDoubleBetween, randomFloat, randomFrom, randomFrom, randomFrom, randomFrom, randomFrom, randomFrom, randomGeohash, randomInt, randomInt, randomIntBetween, randomIp, randomList, randomList, randomLong, randomLongBetween, randomMap, randomMillisUpToYear9999, randomNonNegativeByte, randomNonNegativeLong, randomPositiveTimeValue, randomRealisticUnicodeOfCodepointLength, randomRealisticUnicodeOfCodepointLengthBetween, randomRealisticUnicodeOfLength, randomRealisticUnicodeOfLengthBetween, randomShort, randomSubsetOf, randomSubsetOf, randomSubsetOf, randomTimeValue, randomTimeValue, randomTimeValue, randomTimeZone, randomUnicodeOfCodepointLength, randomUnicodeOfCodepointLengthBetween, randomUnicodeOfLength, randomUnicodeOfLengthBetween, randomUnique, randomValueOtherThan, randomValueOtherThanMany, randomVendorType, randomZone, removeHeaderWarningAppender, resetCheckIndexStatus, resetPortCounter, restoreContentType, restoreFileSystem, scaledRandomIntBetween, setContentType, setFileSystem, setHeaderWarningAppender, settings, shuffleMap, shuffleXContent, shuffleXContent, skipTestWaitingForLuceneFix, spinForAtLeastNMilliseconds, spinForAtLeastOneMillisecond, terminate, terminate, tmpPaths, toShuffledXContent, waitUntil, waitUntil, writableRegistry, xContentRegistry
Methods inherited from class org.apache.lucene.util.LuceneTestCase
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, assumeWorkingMMapOnWindows, atLeast, atLeast, callStackContains, callStackContains, callStackContainsAnyOf, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, ensureSaneIWCOnNightly, expectThrows, expectThrows, expectThrows, expectThrowsAnyOf, expectThrowsAnyOf, getDataInputStream, getOnlyLeafReader, getTestClass, getTestName, hasWorkingMMapOnWindows, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, runWithRestrictedPermissions, setIndexWriterMaxDocs, setUp, setupCPUCoreCount, slowFileExists, tearDown, usually, usually, wrapReader
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
-
Field Details
-
SETTINGS
protected static final org.elasticsearch.common.settings.Settings SETTINGS -
INCLUDE_DEFAULTS
protected static final org.elasticsearch.xcontent.ToXContent.Params INCLUDE_DEFAULTS
-
-
Constructor Details
-
MapperServiceTestCase
public MapperServiceTestCase()
-
-
Method Details
-
getPlugins
-
getIndexSettings
protected org.elasticsearch.common.settings.Settings getIndexSettings() -
getIndexSettingsBuilder
protected final org.elasticsearch.common.settings.Settings.Builder getIndexSettingsBuilder() -
createIndexAnalyzers
protected org.elasticsearch.index.analysis.IndexAnalyzers createIndexAnalyzers(org.elasticsearch.index.IndexSettings indexSettings) -
createIndexAnalyzers
protected static org.elasticsearch.index.analysis.IndexAnalyzers createIndexAnalyzers() -
randomIndexOptions
-
createDocumentMapper
protected final org.elasticsearch.index.mapper.DocumentMapper createDocumentMapper(org.elasticsearch.xcontent.XContentBuilder mappings) throws IOException - Throws:
IOException
-
createDocumentMapper
protected final org.elasticsearch.index.mapper.DocumentMapper createDocumentMapper(org.elasticsearch.Version version, org.elasticsearch.xcontent.XContentBuilder mappings) throws IOException - Throws:
IOException
-
createDocumentMapper
protected final org.elasticsearch.index.mapper.DocumentMapper createDocumentMapper(String mappings) throws IOException - Throws:
IOException
-
createMapperService
protected org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.xcontent.XContentBuilder mappings) throws IOException - Throws:
IOException
-
createMapperService
protected org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.xcontent.XContentBuilder mappings) throws IOException - Throws:
IOException
-
createMapperService
protected org.elasticsearch.index.mapper.MapperService createMapperService(BooleanSupplier idFieldEnabled, org.elasticsearch.xcontent.XContentBuilder mappings) throws IOException - Throws:
IOException
-
createMapperService
protected final org.elasticsearch.index.mapper.MapperService createMapperService(String mappings) throws IOException - Throws:
IOException
-
createMapperService
protected final org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.common.settings.Settings settings, String mappings) throws IOException - Throws:
IOException
-
createMapperService
protected org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.Version version, org.elasticsearch.xcontent.XContentBuilder mapping) throws IOException - Throws:
IOException
-
createMapperService
protected final org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings, BooleanSupplier idFieldDataEnabled, org.elasticsearch.xcontent.XContentBuilder mapping) throws IOException Create aMapperService
like we would for an index.- Throws:
IOException
-
createMapperService
protected final org.elasticsearch.index.mapper.MapperService createMapperService(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings, BooleanSupplier idFieldDataEnabled) -
compileScript
protected <T> T compileScript(org.elasticsearch.script.Script script, org.elasticsearch.script.ScriptContext<T> context) This is the injection point for tests that require mock scripts. Test cases should override this to return the mock script factory of their choice. -
createIndexSettings
protected static org.elasticsearch.index.IndexSettings createIndexSettings(org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings) -
withLuceneIndex
protected final void withLuceneIndex(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.core.CheckedConsumer<org.apache.lucene.index.RandomIndexWriter, IOException> builder, org.elasticsearch.core.CheckedConsumer<org.apache.lucene.index.IndexReader, throws IOExceptionIOException> test) - Throws:
IOException
-
source
protected final org.elasticsearch.index.mapper.SourceToParse source(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build) throws IOException- Throws:
IOException
-
source
protected final org.elasticsearch.index.mapper.SourceToParse source(String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, @Nullable String routing) throws IOException- Throws:
IOException
-
source
protected final org.elasticsearch.index.mapper.SourceToParse source(String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, @Nullable String routing, Map<String, throws IOExceptionString> dynamicTemplates) - Throws:
IOException
-
source
protected final org.elasticsearch.index.mapper.SourceToParse source(String index, String id, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> build, @Nullable String routing, Map<String, throws IOExceptionString> dynamicTemplates) - Throws:
IOException
-
source
-
merge
protected final void merge(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.xcontent.XContentBuilder mapping) throws IOException Merge a new mapping into the one in the providedMapperService
.- Throws:
IOException
-
merge
protected final void merge(org.elasticsearch.index.mapper.MapperService mapperService, String mapping) throws IOException Merge a new mapping into the one in the providedMapperService
.- Throws:
IOException
-
merge
protected final void merge(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.index.mapper.MapperService.MergeReason reason, String mapping) throws IOException - Throws:
IOException
-
merge
protected final void merge(org.elasticsearch.index.mapper.MapperService mapperService, org.elasticsearch.index.mapper.MapperService.MergeReason reason, org.elasticsearch.xcontent.XContentBuilder mapping) throws IOException Merge a new mapping into the one in the providedMapperService
with a specificMergeReason
- Throws:
IOException
-
topMapping
protected final org.elasticsearch.xcontent.XContentBuilder topMapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) throws IOException- Throws:
IOException
-
mapping
protected final org.elasticsearch.xcontent.XContentBuilder mapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) throws IOException- Throws:
IOException
-
dynamicMapping
protected final org.elasticsearch.xcontent.XContentBuilder dynamicMapping(org.elasticsearch.index.mapper.Mapping dynamicMapping) throws IOException - Throws:
IOException
-
fieldMapping
protected final org.elasticsearch.xcontent.XContentBuilder fieldMapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildField) throws IOException- Throws:
IOException
-
runtimeFieldMapping
protected final org.elasticsearch.xcontent.XContentBuilder runtimeFieldMapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildField) throws IOException- Throws:
IOException
-
runtimeMapping
protected final org.elasticsearch.xcontent.XContentBuilder runtimeMapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> buildFields) throws IOException- Throws:
IOException
-
withAggregationContext
protected final void withAggregationContext(org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test) throws IOException- Throws:
IOException
-
withAggregationContext
protected final void withAggregationContext(org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test, Supplier<org.elasticsearch.search.lookup.SearchLookup> lookupSupplier) throws IOException- Throws:
IOException
-
withAggregationContext
protected final void withAggregationContext(org.elasticsearch.search.aggregations.support.ValuesSourceRegistry valuesSourceRegistry, org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.apache.lucene.search.Query query, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test) throws IOException- Throws:
IOException
-
withAggregationContext
protected final void withAggregationContext(org.elasticsearch.search.aggregations.support.ValuesSourceRegistry valuesSourceRegistry, org.elasticsearch.index.mapper.MapperService mapperService, List<org.elasticsearch.index.mapper.SourceToParse> docs, org.apache.lucene.search.Query query, org.elasticsearch.core.CheckedConsumer<org.elasticsearch.search.aggregations.support.AggregationContext, IOException> test, Supplier<org.elasticsearch.search.lookup.SearchLookup> lookupSupplier) throws IOException- Throws:
IOException
-
createSearchExecutionContext
protected org.elasticsearch.index.query.SearchExecutionContext createSearchExecutionContext(org.elasticsearch.index.mapper.MapperService mapperService) -
createSearchExecutionContext
protected org.elasticsearch.index.query.SearchExecutionContext createSearchExecutionContext(org.elasticsearch.index.mapper.MapperService mapperService, org.apache.lucene.search.IndexSearcher searcher) -
createSearchExecutionContext
protected org.elasticsearch.index.query.SearchExecutionContext createSearchExecutionContext(org.elasticsearch.index.mapper.MapperService mapperService, org.apache.lucene.search.IndexSearcher searcher, org.elasticsearch.common.settings.Settings settings) -
fieldDataLookup
protected BiFunction<org.elasticsearch.index.mapper.MappedFieldType,Supplier<org.elasticsearch.search.lookup.SearchLookup>, fieldDataLookup()org.elasticsearch.index.fielddata.IndexFieldData<?>>
-