Uses of Class
org.apache.lucene.analysis.Analyzer
-
-
Uses of Analyzer in org.apache.lucene.analysis
Subclasses of Analyzer in org.apache.lucene.analysis Modifier and Type Class Description classAnalyzerWrapperExtension toAnalyzersuitable for Analyzers which wrap other Analyzers.classDelegatingAnalyzerWrapperAn analyzer wrapper, that doesn't allow to wrap components or readers.classStopwordAnalyzerBaseBase class for Analyzers that need to make use of stopword sets.Methods in org.apache.lucene.analysis that return Analyzer Modifier and Type Method Description protected abstract AnalyzerAnalyzerWrapper. getWrappedAnalyzer(String fieldName)Retrieves the wrapped Analyzer appropriate for analyzing the field with the given nameMethods in org.apache.lucene.analysis with parameters of type Analyzer Modifier and Type Method Description abstract Analyzer.TokenStreamComponentsAnalyzer.ReuseStrategy. getReusableComponents(Analyzer analyzer, String fieldName)Gets the reusable TokenStreamComponents for the field with the given name.protected ObjectAnalyzer.ReuseStrategy. getStoredValue(Analyzer analyzer)Returns the currently stored value.abstract voidAnalyzer.ReuseStrategy. setReusableComponents(Analyzer analyzer, String fieldName, Analyzer.TokenStreamComponents components)Stores the given TokenStreamComponents as the reusable components for the field with the give name.protected voidAnalyzer.ReuseStrategy. setStoredValue(Analyzer analyzer, Object storedValue)Sets the stored value.Method parameters in org.apache.lucene.analysis with type arguments of type Analyzer Modifier and Type Method Description protected static CharArraySetStopwordAnalyzerBase. loadStopwordSet(boolean ignoreCase, Class<? extends Analyzer> aClass, String resource, String comment)Creates a CharArraySet from a file resource associated with a class. -
Uses of Analyzer in org.apache.lucene.analysis.core
Subclasses of Analyzer in org.apache.lucene.analysis.core Modifier and Type Class Description classKeywordAnalyzer"Tokenizes" the entire stream as a single token.classSimpleAnalyzerclassStopAnalyzerclassWhitespaceAnalyzerAn Analyzer that usesWhitespaceTokenizer. -
Uses of Analyzer in org.apache.lucene.analysis.en
Subclasses of Analyzer in org.apache.lucene.analysis.en Modifier and Type Class Description classEnglishAnalyzerAnalyzerfor English. -
Uses of Analyzer in org.apache.lucene.analysis.standard
Subclasses of Analyzer in org.apache.lucene.analysis.standard Modifier and Type Class Description classClassicAnalyzerFiltersClassicTokenizerwithClassicFilter,LowerCaseFilterandStopFilter, using a list of English stop words.classStandardAnalyzerFiltersStandardTokenizerwithLowerCaseFilterandStopFilter, using a configurable list of stop words. -
Uses of Analyzer in org.apache.lucene.analysis.synonym
Constructors in org.apache.lucene.analysis.synonym with parameters of type Analyzer Constructor Description Parser(boolean dedup, Analyzer analyzer) -
Uses of Analyzer in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs with parameters of type Analyzer Modifier and Type Method Description TokenStreamStoredFieldsWriter.MergeVisitor. tokenStream(Analyzer analyzer, TokenStream reuse) -
Uses of Analyzer in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type Analyzer Modifier and Type Method Description TokenStreamField. tokenStream(Analyzer analyzer, TokenStream reuse) -
Uses of Analyzer in org.apache.lucene.index
Methods in org.apache.lucene.index that return Analyzer Modifier and Type Method Description AnalyzerIndexWriter. getAnalyzer()Returns the analyzer used by this index.AnalyzerIndexWriterConfig. getAnalyzer()AnalyzerLiveIndexWriterConfig. getAnalyzer()Returns the default analyzer to use for indexing documents.Methods in org.apache.lucene.index with parameters of type Analyzer Modifier and Type Method Description TokenStreamIndexableField. tokenStream(Analyzer analyzer, TokenStream reuse)Creates the TokenStream used for indexing this field.Constructors in org.apache.lucene.index with parameters of type Analyzer Constructor Description IndexWriterConfig(Analyzer analyzer)Creates a new config that with the providedAnalyzer. -
Uses of Analyzer in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory with parameters of type Analyzer Modifier and Type Method Description voidMemoryIndex. addField(String fieldName, String text, Analyzer analyzer)Convenience method; Tokenizes the given field text and adds the resulting terms to the index; Equivalent to adding an indexed non-keyword LuceneFieldthat is tokenized, not stored, termVectorStored with positions (or termVectorStored with positions and offsets),voidMemoryIndex. addField(IndexableField field, Analyzer analyzer)Adds a luceneIndexableFieldto the MemoryIndex using the provided analyzer.static MemoryIndexMemoryIndex. fromDocument(Iterable<? extends IndexableField> document, Analyzer analyzer)Builds a MemoryIndex from a luceneDocumentusing an analyzerstatic MemoryIndexMemoryIndex. fromDocument(Iterable<? extends IndexableField> document, Analyzer analyzer, boolean storeOffsets, boolean storePayloads)Builds a MemoryIndex from a luceneDocumentusing an analyzerstatic MemoryIndexMemoryIndex. fromDocument(Iterable<? extends IndexableField> document, Analyzer analyzer, boolean storeOffsets, boolean storePayloads, long maxReusedBytes)Builds a MemoryIndex from a luceneDocumentusing an analyzer -
Uses of Analyzer in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic with parameters of type Analyzer Modifier and Type Method Description voidQueryParserBase. init(String f, Analyzer a)Initializes a query parser.protected QueryQueryParserBase. newFieldQuery(Analyzer analyzer, String field, String queryText, boolean quoted)Constructors in org.apache.lucene.queryparser.classic with parameters of type Analyzer Constructor Description QueryParser(String f, Analyzer a)Create a query parser.XQueryParser(String f, Analyzer a) -
Uses of Analyzer in org.apache.lucene.queryparser.flexible.standard
Methods in org.apache.lucene.queryparser.flexible.standard that return Analyzer Modifier and Type Method Description AnalyzerCommonQueryParserConfiguration. getAnalyzer() -
Uses of Analyzer in org.apache.lucene.queryparser.simple
Constructors in org.apache.lucene.queryparser.simple with parameters of type Analyzer Constructor Description SimpleQueryParser(Analyzer analyzer, String field)Creates a new parser searching over a single field.SimpleQueryParser(Analyzer analyzer, Map<String,Float> weights)Creates a new parser searching over multiple fields with different weights.SimpleQueryParser(Analyzer analyzer, Map<String,Float> weights, int flags)Creates a new parser with custom flags used to enable/disable certain features. -
Uses of Analyzer in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type Analyzer Modifier and Type Method Description StringHighlighter. getBestFragment(Analyzer analyzer, String fieldName, String text)Highlights chosen terms in a text, extracting the most relevant section.String[]Highlighter. getBestFragments(Analyzer analyzer, String fieldName, String text, int maxNumFragments)Highlights chosen terms in a text, extracting the most relevant sections. -
Uses of Analyzer in org.apache.lucene.search.suggest.document
Subclasses of Analyzer in org.apache.lucene.search.suggest.document Modifier and Type Class Description classCompletionAnalyzerWraps anAnalyzerto provide additional completion-only tuning (e.g.Methods in org.apache.lucene.search.suggest.document that return Analyzer Modifier and Type Method Description AnalyzerPrefixCompletionQuery. getAnalyzer()Gets the analyzer used to analyze the prefix.protected AnalyzerCompletionAnalyzer. getWrappedAnalyzer(String fieldName)Methods in org.apache.lucene.search.suggest.document with parameters of type Analyzer Modifier and Type Method Description TokenStreamSuggestField. tokenStream(Analyzer analyzer, TokenStream reuse)Constructors in org.apache.lucene.search.suggest.document with parameters of type Analyzer Constructor Description CompletionAnalyzer(Analyzer analyzer)CallsCompletionAnalyzer(org.apache.lucene.analysis.Analyzer, boolean, boolean, int)preserving token separation, position increments and no limit on graph expansionsCompletionAnalyzer(Analyzer analyzer, boolean preserveSep, boolean preservePositionIncrements)CallsCompletionAnalyzer(org.apache.lucene.analysis.Analyzer, boolean, boolean, int)with no limit on graph expansionsCompletionAnalyzer(Analyzer analyzer, boolean preserveSep, boolean preservePositionIncrements, int maxGraphExpansions)Wraps an analyzer to convert its output token stream to an automatonCompletionAnalyzer(Analyzer analyzer, int maxGraphExpansions)CallsCompletionAnalyzer(org.apache.lucene.analysis.Analyzer, boolean, boolean, int)preserving token separation and position incrementsFuzzyCompletionQuery(Analyzer analyzer, Term term)CallsFuzzyCompletionQuery(Analyzer, Term, BitsProducer)with no filterFuzzyCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter)CallsFuzzyCompletionQuery(Analyzer, Term, BitsProducer, int, boolean, int, int, boolean, int)with defaults formaxEdits,transpositions,nonFuzzyPrefix,minFuzzyLength,unicodeAwareandmaxDeterminizedStatesSeeFuzzyCompletionQuery.DEFAULT_MAX_EDITS,FuzzyCompletionQuery.DEFAULT_TRANSPOSITIONS,FuzzyCompletionQuery.DEFAULT_NON_FUZZY_PREFIX,FuzzyCompletionQuery.DEFAULT_MIN_FUZZY_LENGTH,FuzzyCompletionQuery.DEFAULT_UNICODE_AWAREandOperations.DEFAULT_MAX_DETERMINIZED_STATESfor defaultsFuzzyCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter, int maxEdits, boolean transpositions, int nonFuzzyPrefix, int minFuzzyLength, boolean unicodeAware, int maxDeterminizedStates)Constructs an analyzed fuzzy prefix completion queryPrefixCompletionQuery(Analyzer analyzer, Term term)CallsPrefixCompletionQuery(Analyzer, Term, BitsProducer)with no filterPrefixCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter)Constructs an analyzed prefix completion query -
Uses of Analyzer in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight declared as Analyzer Modifier and Type Field Description protected AnalyzerAnalysisOffsetStrategy. analyzerprotected AnalyzerUnifiedHighlighter. indexAnalyzerMethods in org.apache.lucene.search.uhighlight that return Analyzer Modifier and Type Method Description AnalyzerUnifiedHighlighter. getIndexAnalyzer()...Constructors in org.apache.lucene.search.uhighlight with parameters of type Analyzer Constructor Description AnalysisOffsetStrategy(UHComponents components, Analyzer analyzer)CustomUnifiedHighlighter(IndexSearcher searcher, Analyzer analyzer, UnifiedHighlighter.OffsetSource offsetSource, PassageFormatter passageFormatter, Locale breakIteratorLocale, BreakIterator breakIterator, String fieldValue, int noMatchSize)Creates a new instance ofCustomUnifiedHighlighterMemoryIndexOffsetStrategy(UHComponents components, Analyzer analyzer)TokenStreamOffsetStrategy(UHComponents components, Analyzer indexAnalyzer)UnifiedHighlighter(IndexSearcher indexSearcher, Analyzer indexAnalyzer)Constructs the highlighter with the given index searcher and analyzer. -
Uses of Analyzer in org.apache.lucene.util
Fields in org.apache.lucene.util declared as Analyzer Modifier and Type Field Description protected AnalyzerQueryBuilder. analyzerMethods in org.apache.lucene.util that return Analyzer Modifier and Type Method Description AnalyzerQueryBuilder. getAnalyzer()Returns the analyzer.Methods in org.apache.lucene.util with parameters of type Analyzer Modifier and Type Method Description protected QueryQueryBuilder. createFieldQuery(Analyzer analyzer, BooleanClause.Occur operator, String field, String queryText, boolean quoted, int phraseSlop)Creates a query from the analysis chain.voidQueryBuilder. setAnalyzer(Analyzer analyzer)Sets the analyzer used to tokenize text.Constructors in org.apache.lucene.util with parameters of type Analyzer Constructor Description QueryBuilder(Analyzer analyzer)Creates a new QueryBuilder using the given analyzer. -
Uses of Analyzer in org.elasticsearch.common.lucene.search
Methods in org.elasticsearch.common.lucene.search that return Analyzer Modifier and Type Method Description AnalyzerMoreLikeThisQuery. getAnalyzer()AnalyzerXMoreLikeThis. getAnalyzer()Returns an analyzer that will be used to parse source doc with.Methods in org.elasticsearch.common.lucene.search with parameters of type Analyzer Modifier and Type Method Description voidMoreLikeThisQuery. setAnalyzer(Analyzer analyzer)voidXMoreLikeThis. setAnalyzer(Analyzer analyzer)Sets the analyzer to use.Constructors in org.elasticsearch.common.lucene.search with parameters of type Analyzer Constructor Description MoreLikeThisQuery(String likeText, String[] moreLikeFields, Analyzer analyzer) -
Uses of Analyzer in org.elasticsearch.index.analysis
Classes in org.elasticsearch.index.analysis with type parameters of type Analyzer Modifier and Type Class Description classAbstractIndexAnalyzerProvider<T extends Analyzer>interfaceAnalyzerProvider<T extends Analyzer>Subclasses of Analyzer in org.elasticsearch.index.analysis Modifier and Type Class Description classCustomAnalyzerclassFieldNameAnalyzerclassNamedAnalyzerNamed analyzer is an analyzer wrapper around an actual analyzer (NamedAnalyzer.analyzerthat is associated with a name (NamedAnalyzer.name().classReloadableCustomAnalyzerMethods in org.elasticsearch.index.analysis that return Analyzer Modifier and Type Method Description AnalyzerNamedAnalyzer. analyzer()The actual analyzer.AnalyzerCustomAnalyzerProvider. get()AnalyzerAnalysisRegistry. getAnalyzer(String analyzer)Returns a registeredAnalyzerprovider by name ornullif the analyzer was not registeredprotected AnalyzerFieldNameAnalyzer. getWrappedAnalyzer(String fieldName)protected AnalyzerNamedAnalyzer. getWrappedAnalyzer(String fieldName)Methods in org.elasticsearch.index.analysis that return types with arguments of type Analyzer Modifier and Type Method Description Map<String,Analyzer>FieldNameAnalyzer. analyzers()Constructors in org.elasticsearch.index.analysis with parameters of type Analyzer Constructor Description NamedAnalyzer(String name, AnalyzerScope scope, Analyzer analyzer)PreBuiltAnalyzerProvider(String name, AnalyzerScope scope, Analyzer analyzer)Constructor parameters in org.elasticsearch.index.analysis with type arguments of type Analyzer Constructor Description FieldNameAnalyzer(Map<String,Analyzer> analyzers)PreBuiltAnalyzerProviderFactory(String name, PreBuiltCacheFactory.CachingStrategy cache, Supplier<Analyzer> create) -
Uses of Analyzer in org.elasticsearch.index.engine
Methods in org.elasticsearch.index.engine that return Analyzer Modifier and Type Method Description AnalyzerEngineConfig. getAnalyzer()Returns the analyzer as the default analyzer in the enginesIndexWriterConstructors in org.elasticsearch.index.engine with parameters of type Analyzer Constructor Description EngineConfig(ShardId shardId, String allocationId, ThreadPool threadPool, IndexSettings indexSettings, Engine.Warmer warmer, Store store, MergePolicy mergePolicy, Analyzer analyzer, Similarity similarity, CodecService codecService, Engine.EventListener eventListener, QueryCache queryCache, QueryCachingPolicy queryCachingPolicy, TranslogConfig translogConfig, TimeValue flushMergesAfter, List<ReferenceManager.RefreshListener> externalRefreshListener, List<ReferenceManager.RefreshListener> internalRefreshListener, Sort indexSort, CircuitBreakerService circuitBreakerService, LongSupplier globalCheckpointSupplier, Supplier<RetentionLeases> retentionLeasesSupplier, LongSupplier primaryTermSupplier, EngineConfig.TombstoneDocSupplier tombstoneDocSupplier)Creates a newEngineConfig -
Uses of Analyzer in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return Analyzer Modifier and Type Method Description AnalyzerDocumentFieldMappers. indexAnalyzer()A smart analyzer used for indexing that takes into account specific analyzers configured perFieldMapper.AnalyzerMapperService. indexAnalyzer()AnalyzerMapperService. searchAnalyzer()AnalyzerMapperService. searchQuoteAnalyzer()Methods in org.elasticsearch.index.mapper with parameters of type Analyzer Modifier and Type Method Description TokenStreamCustomDocValuesField. tokenStream(Analyzer analyzer, TokenStream reuse)Constructors in org.elasticsearch.index.mapper with parameters of type Analyzer Constructor Description DocumentFieldMappers(Collection<FieldMapper> mappers, Collection<FieldAliasMapper> aliasMappers, Analyzer defaultIndex, Analyzer defaultSearch, Analyzer defaultSearchQuote) -
Uses of Analyzer in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query that return Analyzer Modifier and Type Method Description AnalyzerQueryShardContext. getSearchAnalyzer(MappedFieldType fieldType)Gets the search analyzer for the given field, or the default if there is none present for the field TODO: remove this by moving defaults into mappers themselvesAnalyzerQueryShardContext. getSearchQuoteAnalyzer(MappedFieldType fieldType)Gets the search quote analyzer for the given field, or the default if there is none present for the field TODO: remove this by moving defaults into mappers themselvesConstructors in org.elasticsearch.index.query with parameters of type Analyzer Constructor Description IntervalBuilder(String field, Analyzer analyzer) -
Uses of Analyzer in org.elasticsearch.index.search
Fields in org.elasticsearch.index.search declared as Analyzer Modifier and Type Field Description protected AnalyzerMatchQuery. analyzerMethods in org.elasticsearch.index.search that return Analyzer Modifier and Type Method Description protected AnalyzerMatchQuery. getAnalyzer(MappedFieldType fieldType, boolean quoted)Methods in org.elasticsearch.index.search with parameters of type Analyzer Modifier and Type Method Description voidMatchQuery. setAnalyzer(Analyzer analyzer)voidQueryStringQueryParser. setForceAnalyzer(Analyzer analyzer)voidQueryStringQueryParser. setForceQuoteAnalyzer(Analyzer analyzer)Constructors in org.elasticsearch.index.search with parameters of type Analyzer Constructor Description SimpleQueryStringQueryParser(Analyzer analyzer, Map<String,Float> weights, int flags, SimpleQueryStringQueryParser.Settings settings, QueryShardContext context)Creates a new parser with custom flags used to enable/disable certain features. -
Uses of Analyzer in org.elasticsearch.indices.analysis
Fields in org.elasticsearch.indices.analysis with type parameters of type Analyzer Modifier and Type Field Description protected PreBuiltCacheFactory.PreBuiltCache<Analyzer>PreBuiltAnalyzers. cacheMethods in org.elasticsearch.indices.analysis that return Analyzer Modifier and Type Method Description protected abstract AnalyzerPreBuiltAnalyzers. create(Version version)AnalyzerPreBuiltAnalyzers. getAnalyzer(Version version)Methods in org.elasticsearch.indices.analysis that return types with arguments of type Analyzer Modifier and Type Method Description PreBuiltCacheFactory.PreBuiltCache<Analyzer>PreBuiltAnalyzers. getCache() -
Uses of Analyzer in org.elasticsearch.plugins
Methods in org.elasticsearch.plugins that return types with arguments of type Analyzer Modifier and Type Method Description default Map<String,AnalysisModule.AnalysisProvider<AnalyzerProvider<? extends Analyzer>>>AnalysisPlugin. getAnalyzers()Override to add additionalAnalyzers. -
Uses of Analyzer in org.elasticsearch.search.fetch.subphase.highlight
Methods in org.elasticsearch.search.fetch.subphase.highlight that return Analyzer Modifier and Type Method Description protected AnalyzerUnifiedHighlighter. getAnalyzer(DocumentMapper docMapper, FetchSubPhase.HitContext hitContext) -
Uses of Analyzer in org.elasticsearch.search.suggest
Methods in org.elasticsearch.search.suggest that return Analyzer Modifier and Type Method Description AnalyzerSuggestionSearchContext.SuggestionContext. getAnalyzer()Methods in org.elasticsearch.search.suggest with parameters of type Analyzer Modifier and Type Method Description voidSuggestionSearchContext.SuggestionContext. setAnalyzer(Analyzer analyzer) -
Uses of Analyzer in org.elasticsearch.search.suggest.phrase
Methods in org.elasticsearch.search.suggest.phrase with parameters of type Analyzer Modifier and Type Method Description static intDirectCandidateGenerator. analyze(Analyzer analyzer, BytesRef toAnalyze, String field, DirectCandidateGenerator.TokenConsumer consumer, CharsRefBuilder spare)Constructors in org.elasticsearch.search.suggest.phrase with parameters of type Analyzer Constructor Description DirectCandidateGenerator(DirectSpellChecker spellchecker, String field, SuggestMode suggestMode, IndexReader reader, double nonErrorLikelihood, int numCandidates, Analyzer preFilter, Analyzer postFilter, Terms terms)
-