Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
org.apache.lucene.analysis.ar |
Analyzer for Arabic.
|
org.apache.lucene.analysis.bg |
Analyzer for Bulgarian.
|
org.apache.lucene.analysis.br |
Analyzer for Brazilian Portuguese.
|
org.apache.lucene.analysis.ca |
Analyzer for Catalan.
|
org.apache.lucene.analysis.cjk |
Analyzer for Chinese, Japanese, and Korean, which indexes bigrams.
|
org.apache.lucene.analysis.ckb |
Analyzer for Sorani Kurdish.
|
org.apache.lucene.analysis.cn |
Analyzer for Chinese, which indexes unigrams (individual chinese characters).
|
org.apache.lucene.analysis.cn.smart |
Analyzer for Simplified Chinese, which indexes words.
|
org.apache.lucene.analysis.core |
Basic, general-purpose analysis components.
|
org.apache.lucene.analysis.cz |
Analyzer for Czech.
|
org.apache.lucene.analysis.da |
Analyzer for Danish.
|
org.apache.lucene.analysis.de |
Analyzer for German.
|
org.apache.lucene.analysis.el |
Analyzer for Greek.
|
org.apache.lucene.analysis.en |
Analyzer for English.
|
org.apache.lucene.analysis.es |
Analyzer for Spanish.
|
org.apache.lucene.analysis.eu |
Analyzer for Basque.
|
org.apache.lucene.analysis.fa |
Analyzer for Persian.
|
org.apache.lucene.analysis.fi |
Analyzer for Finnish.
|
org.apache.lucene.analysis.fr |
Analyzer for French.
|
org.apache.lucene.analysis.ga |
Analysis for Irish.
|
org.apache.lucene.analysis.gl |
Analyzer for Galician.
|
org.apache.lucene.analysis.hi |
Analyzer for Hindi.
|
org.apache.lucene.analysis.hu |
Analyzer for Hungarian.
|
org.apache.lucene.analysis.hy |
Analyzer for Armenian.
|
org.apache.lucene.analysis.id |
Analyzer for Indonesian.
|
org.apache.lucene.analysis.it |
Analyzer for Italian.
|
org.apache.lucene.analysis.lv |
Analyzer for Latvian.
|
org.apache.lucene.analysis.miscellaneous |
Miscellaneous TokenStreams
|
org.apache.lucene.analysis.nl |
Analyzer for Dutch.
|
org.apache.lucene.analysis.no |
Analyzer for Norwegian.
|
org.apache.lucene.analysis.pl |
Analyzer for Polish.
|
org.apache.lucene.analysis.pt |
Analyzer for Portuguese.
|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.analysis.ro |
Analyzer for Romanian.
|
org.apache.lucene.analysis.ru |
Analyzer for Russian.
|
org.apache.lucene.analysis.shingle |
Word n-gram filters
|
org.apache.lucene.analysis.snowball |
TokenFilter and Analyzer implementations that use Snowball
stemmers. |
org.apache.lucene.analysis.standard |
Fast, general-purpose grammar-based tokenizers.
|
org.apache.lucene.analysis.sv |
Analyzer for Swedish.
|
org.apache.lucene.analysis.synonym |
Analysis components for Synonyms.
|
org.apache.lucene.analysis.th |
Analyzer for Thai.
|
org.apache.lucene.analysis.tr |
Analyzer for Turkish.
|
org.apache.lucene.analysis.util |
Utility functions for text analysis.
|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify new documents.
|
org.apache.lucene.classification.utils |
Utilities for evaluation, data preparation, etc.
|
org.apache.lucene.collation |
Unicode collation support.
|
org.apache.lucene.document |
Misc extensions of the Document/Field API.
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.queries.mlt |
Document similarity query generators.
|
org.apache.lucene.queryparser.analyzing |
QueryParser that passes Fuzzy-, Prefix-, Range-, and WildcardQuerys through the given analyzer.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.complexPhrase |
QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
|
org.apache.lucene.queryparser.ext |
Extendable QueryParser provides a simple and flexible extension mechanism by overloading query field names.
|
org.apache.lucene.queryparser.flexible.precedence |
Precedence Query Parser Implementation
|
org.apache.lucene.queryparser.flexible.standard |
Implementation of the Lucene classic query parser using the flexible query parser frameworks
|
org.apache.lucene.queryparser.flexible.standard.config |
Standard Lucene Query Configuration.
|
org.apache.lucene.queryparser.simple |
A simple query parser for human-entered queries.
|
org.apache.lucene.queryparser.xml |
Parser that produces Lucene Query objects from XML streams.
|
org.apache.lucene.queryparser.xml.builders |
XML Parser factories for different Lucene Query/Filters.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
AnalyzerWrapper
Extension to
Analyzer suitable for Analyzers which wrap
other Analyzers. |
Modifier and Type | Method and Description |
---|---|
protected abstract Analyzer |
AnalyzerWrapper.getWrappedAnalyzer(String fieldName)
Retrieves the wrapped Analyzer appropriate for analyzing the field with
the given name
|
Modifier and Type | Method and Description |
---|---|
abstract Analyzer.TokenStreamComponents |
Analyzer.ReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name.
|
Analyzer.TokenStreamComponents |
Analyzer.GlobalReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Deprecated.
|
Analyzer.TokenStreamComponents |
Analyzer.PerFieldReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Deprecated.
|
protected Object |
Analyzer.ReuseStrategy.getStoredValue(Analyzer analyzer)
Returns the currently stored value.
|
abstract void |
Analyzer.ReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the
field with the give name.
|
void |
Analyzer.GlobalReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Deprecated.
|
void |
Analyzer.PerFieldReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Deprecated.
|
protected void |
Analyzer.ReuseStrategy.setStoredValue(Analyzer analyzer,
Object storedValue)
Sets the stored value.
|
Modifier and Type | Class and Description |
---|---|
class |
ArabicAnalyzer
Analyzer for Arabic. |
Modifier and Type | Class and Description |
---|---|
class |
BulgarianAnalyzer
Analyzer for Bulgarian. |
Modifier and Type | Class and Description |
---|---|
class |
BrazilianAnalyzer
Analyzer for Brazilian Portuguese language. |
Modifier and Type | Class and Description |
---|---|
class |
CatalanAnalyzer
Analyzer for Catalan. |
Modifier and Type | Class and Description |
---|---|
class |
CJKAnalyzer
An
Analyzer that tokenizes text with StandardTokenizer ,
normalizes content with CJKWidthFilter , folds case with
LowerCaseFilter , forms bigrams of CJK with CJKBigramFilter ,
and filters stopwords with StopFilter |
Modifier and Type | Class and Description |
---|---|
class |
SoraniAnalyzer
Analyzer for Sorani Kurdish. |
Modifier and Type | Class and Description |
---|---|
class |
ChineseAnalyzer
Deprecated.
(3.1) Use
StandardAnalyzer instead, which has the same functionality.
This analyzer will be removed in Lucene 5.0 |
Modifier and Type | Class and Description |
---|---|
class |
SmartChineseAnalyzer
SmartChineseAnalyzer is an analyzer for Chinese or mixed Chinese-English text.
|
Modifier and Type | Class and Description |
---|---|
class |
KeywordAnalyzer
"Tokenizes" the entire stream as a single token.
|
class |
SimpleAnalyzer
|
class |
StopAnalyzer
|
class |
WhitespaceAnalyzer
An Analyzer that uses
WhitespaceTokenizer . |
Modifier and Type | Class and Description |
---|---|
class |
CzechAnalyzer
Analyzer for Czech language. |
Modifier and Type | Class and Description |
---|---|
class |
DanishAnalyzer
Analyzer for Danish. |
Modifier and Type | Class and Description |
---|---|
class |
GermanAnalyzer
Analyzer for German language. |
Modifier and Type | Class and Description |
---|---|
class |
GreekAnalyzer
Analyzer for the Greek language. |
Modifier and Type | Class and Description |
---|---|
class |
EnglishAnalyzer
Analyzer for English. |
Modifier and Type | Class and Description |
---|---|
class |
SpanishAnalyzer
Analyzer for Spanish. |
Modifier and Type | Class and Description |
---|---|
class |
BasqueAnalyzer
Analyzer for Basque. |
Modifier and Type | Class and Description |
---|---|
class |
PersianAnalyzer
Analyzer for Persian. |
Modifier and Type | Class and Description |
---|---|
class |
FinnishAnalyzer
Analyzer for Finnish. |
Modifier and Type | Class and Description |
---|---|
class |
FrenchAnalyzer
Analyzer for French language. |
Modifier and Type | Class and Description |
---|---|
class |
IrishAnalyzer
Analyzer for Irish. |
Modifier and Type | Class and Description |
---|---|
class |
GalicianAnalyzer
Analyzer for Galician. |
Modifier and Type | Class and Description |
---|---|
class |
HindiAnalyzer
Analyzer for Hindi.
|
Modifier and Type | Class and Description |
---|---|
class |
HungarianAnalyzer
Analyzer for Hungarian. |
Modifier and Type | Class and Description |
---|---|
class |
ArmenianAnalyzer
Analyzer for Armenian. |
Modifier and Type | Class and Description |
---|---|
class |
IndonesianAnalyzer
Analyzer for Indonesian (Bahasa)
|
Modifier and Type | Class and Description |
---|---|
class |
ItalianAnalyzer
Analyzer for Italian. |
Modifier and Type | Class and Description |
---|---|
class |
LatvianAnalyzer
Analyzer for Latvian. |
Modifier and Type | Class and Description |
---|---|
class |
LimitTokenCountAnalyzer
This Analyzer limits the number of tokens while indexing.
|
class |
PatternAnalyzer
Deprecated.
(4.0) use the pattern-based analysis in the analysis/pattern package instead.
|
class |
PerFieldAnalyzerWrapper
This analyzer is used to facilitate scenarios where different
fields require different analysis techniques.
|
Modifier and Type | Method and Description |
---|---|
protected Analyzer |
LimitTokenCountAnalyzer.getWrappedAnalyzer(String fieldName) |
protected Analyzer |
PerFieldAnalyzerWrapper.getWrappedAnalyzer(String fieldName) |
Constructor and Description |
---|
LimitTokenCountAnalyzer(Analyzer delegate,
int maxTokenCount)
Build an analyzer that limits the maximum number of tokens per field.
|
LimitTokenCountAnalyzer(Analyzer delegate,
int maxTokenCount,
boolean consumeAllTokens)
Build an analyzer that limits the maximum number of tokens per field.
|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer)
Constructs with default analyzer.
|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,
Map<String,Analyzer> fieldAnalyzers)
Constructs with default analyzer and a map of analyzers to use for
specific fields.
|
Constructor and Description |
---|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,
Map<String,Analyzer> fieldAnalyzers)
Constructs with default analyzer and a map of analyzers to use for
specific fields.
|
Modifier and Type | Class and Description |
---|---|
class |
DutchAnalyzer
Analyzer for Dutch language. |
Modifier and Type | Class and Description |
---|---|
class |
NorwegianAnalyzer
Analyzer for Norwegian. |
Modifier and Type | Class and Description |
---|---|
class |
PolishAnalyzer
Analyzer for Polish. |
Modifier and Type | Class and Description |
---|---|
class |
PortugueseAnalyzer
Analyzer for Portuguese. |
Modifier and Type | Class and Description |
---|---|
class |
QueryAutoStopWordAnalyzer
An
Analyzer used primarily at query time to wrap another analyzer and provide a layer of protection
which prevents very common words from being passed into queries. |
Modifier and Type | Method and Description |
---|---|
protected Analyzer |
QueryAutoStopWordAnalyzer.getWrappedAnalyzer(String fieldName) |
Constructor and Description |
---|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency percentage greater than
QueryAutoStopWordAnalyzer.defaultMaxDocFreqPercent |
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
Collection<String> fields,
float maxPercentDocs)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency percentage
greater than the given maxPercentDocs
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
Collection<String> fields,
int maxDocFreq)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency greater than
the given maxDocFreq
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
float maxPercentDocs)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency percentage greater than
the given maxPercentDocs
|
QueryAutoStopWordAnalyzer(Version matchVersion,
Analyzer delegate,
IndexReader indexReader,
int maxDocFreq)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency greater than the given
maxDocFreq
|
Modifier and Type | Class and Description |
---|---|
class |
RomanianAnalyzer
Analyzer for Romanian. |
Modifier and Type | Class and Description |
---|---|
class |
RussianAnalyzer
Analyzer for Russian language. |
Modifier and Type | Class and Description |
---|---|
class |
ShingleAnalyzerWrapper
A ShingleAnalyzerWrapper wraps a
ShingleFilter around another Analyzer . |
Modifier and Type | Method and Description |
---|---|
Analyzer |
ShingleAnalyzerWrapper.getWrappedAnalyzer(String fieldName) |
Constructor and Description |
---|
ShingleAnalyzerWrapper(Analyzer defaultAnalyzer) |
ShingleAnalyzerWrapper(Analyzer defaultAnalyzer,
int maxShingleSize) |
ShingleAnalyzerWrapper(Analyzer defaultAnalyzer,
int minShingleSize,
int maxShingleSize) |
ShingleAnalyzerWrapper(Analyzer delegate,
int minShingleSize,
int maxShingleSize,
String tokenSeparator,
boolean outputUnigrams,
boolean outputUnigramsIfNoShingles,
String fillerToken)
Creates a new ShingleAnalyzerWrapper
|
Modifier and Type | Class and Description |
---|---|
class |
SnowballAnalyzer
Deprecated.
(3.1) Use the language-specific analyzer in modules/analysis instead.
This analyzer will be removed in Lucene 5.0
|
Modifier and Type | Class and Description |
---|---|
class |
ClassicAnalyzer
Filters
ClassicTokenizer with ClassicFilter , LowerCaseFilter and StopFilter , using a list of
English stop words. |
class |
StandardAnalyzer
Filters
StandardTokenizer with StandardFilter , LowerCaseFilter and StopFilter , using a list of
English stop words. |
class |
UAX29URLEmailAnalyzer
Filters
UAX29URLEmailTokenizer
with StandardFilter ,
LowerCaseFilter and
StopFilter , using a list of
English stop words. |
Modifier and Type | Class and Description |
---|---|
class |
SwedishAnalyzer
Analyzer for Swedish. |
Constructor and Description |
---|
SolrSynonymParser(boolean dedup,
boolean expand,
Analyzer analyzer) |
SynonymMap.Parser(boolean dedup,
Analyzer analyzer) |
WordnetSynonymParser(boolean dedup,
boolean expand,
Analyzer analyzer) |
Modifier and Type | Class and Description |
---|---|
class |
ThaiAnalyzer
Analyzer for Thai language. |
Modifier and Type | Class and Description |
---|---|
class |
TurkishAnalyzer
Analyzer for Turkish. |
Modifier and Type | Class and Description |
---|---|
class |
StopwordAnalyzerBase
Base class for Analyzers that need to make use of stopword sets.
|
Modifier and Type | Method and Description |
---|---|
protected static CharArraySet |
StopwordAnalyzerBase.loadStopwordSet(boolean ignoreCase,
Class<? extends Analyzer> aClass,
String resource,
String comment)
Creates a CharArraySet from a file resource associated with a class.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleNaiveBayesClassifier.train(AtomicReader atomicReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(AtomicReader atomicReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
Classifier.train(AtomicReader atomicReader,
String[] textFieldNames,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
SimpleNaiveBayesClassifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
Classifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer)
Train the classifier using the underlying Lucene index
|
void |
SimpleNaiveBayesClassifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
KNearestNeighborClassifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
void |
Classifier.train(AtomicReader atomicReader,
String textFieldName,
String classFieldName,
Analyzer analyzer,
Query query)
Train the classifier using the underlying Lucene index
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetSplitter.split(AtomicReader originalIndex,
Directory trainingIndex,
Directory testIndex,
Directory crossValidationIndex,
Analyzer analyzer,
String... fieldNames)
Split a given index into 3 indexes for training, test and cross validation tasks respectively
|
Modifier and Type | Class and Description |
---|---|
class |
CollationKeyAnalyzer
Configures
KeywordTokenizer with CollationAttributeFactory . |
Modifier and Type | Method and Description |
---|---|
TokenStream |
LazyDocument.LazyField.tokenStream(Analyzer analyzer) |
TokenStream |
Field.tokenStream(Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
Analyzer |
IndexWriter.getAnalyzer()
Returns the analyzer used by this index.
|
Analyzer |
LiveIndexWriterConfig.getAnalyzer()
Returns the default analyzer to use for indexing documents.
|
Analyzer |
IndexWriterConfig.getAnalyzer() |
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addDocument(Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Adds a document to this index, using the provided analyzer instead of the
value of
IndexWriter.getAnalyzer() . |
long |
TrackingIndexWriter.addDocument(Iterable<? extends IndexableField> d,
Analyzer a)
Calls
IndexWriter.addDocument(Iterable,Analyzer) and
returns the generation that reflects this change. |
void |
IndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically adds a block of documents, analyzed using the
provided analyzer, with sequentially assigned document
IDs, such that an external reader will see all or none
of the documents.
|
long |
TrackingIndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a)
Calls
IndexWriter.addDocuments(Iterable,Analyzer) and
returns the generation that reflects this change. |
TokenStream |
IndexableField.tokenStream(Analyzer analyzer)
Creates the TokenStream used for indexing this field.
|
void |
IndexWriter.updateDocument(Term term,
Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
long |
TrackingIndexWriter.updateDocument(Term t,
Iterable<? extends IndexableField> d,
Analyzer a)
Calls
IndexWriter.updateDocument(Term,Iterable,Analyzer)
and returns the generation that reflects this change. |
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically deletes documents matching the provided
delTerm and adds a block of documents, analyzed using
the provided analyzer, with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
long |
TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a)
Calls
IndexWriter.updateDocuments(Term,Iterable,Analyzer)
and returns the generation that reflects this change. |
Constructor and Description |
---|
IndexWriterConfig(Version matchVersion,
Analyzer analyzer)
|
Modifier and Type | Method and Description |
---|---|
void |
MemoryIndex.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 Lucene
Field that is tokenized, not stored,
termVectorStored with positions (or termVectorStored with positions and offsets), |
Modifier and Type | Method and Description |
---|---|
Analyzer |
MoreLikeThisQuery.getAnalyzer() |
Analyzer |
MoreLikeThis.getAnalyzer()
Returns an analyzer that will be used to parse source doc with.
|
Modifier and Type | Method and Description |
---|---|
void |
MoreLikeThisQuery.setAnalyzer(Analyzer analyzer) |
void |
MoreLikeThis.setAnalyzer(Analyzer analyzer)
Sets the analyzer to use.
|
Constructor and Description |
---|
MoreLikeThisQuery(String likeText,
String[] moreLikeFields,
Analyzer analyzer,
String fieldName) |
Constructor and Description |
---|
AnalyzingQueryParser(Version matchVersion,
String field,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
QueryParserBase.analyzeMultitermTerm(String field,
String part,
Analyzer analyzerIn) |
void |
QueryParserBase.init(Version matchVersion,
String f,
Analyzer a)
Initializes a query parser.
|
protected Query |
QueryParserBase.newFieldQuery(Analyzer analyzer,
String field,
String queryText,
boolean quoted) |
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
Analyzer analyzer)
Parses a query which searches on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Constructor and Description |
---|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer)
Creates a MultiFieldQueryParser.
|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer,
Map<String,Float> boosts)
Creates a MultiFieldQueryParser.
|
QueryParser(Version matchVersion,
String f,
Analyzer a)
Create a query parser.
|
Constructor and Description |
---|
ComplexPhraseQueryParser(Version matchVersion,
String f,
Analyzer a) |
Constructor and Description |
---|
ExtendableQueryParser(Version matchVersion,
String f,
Analyzer a)
Creates a new
ExtendableQueryParser instance |
ExtendableQueryParser(Version matchVersion,
String f,
Analyzer a,
Extensions ext)
Creates a new
ExtendableQueryParser instance |
Constructor and Description |
---|
PrecedenceQueryParser(Analyzer analyer) |
Modifier and Type | Method and Description |
---|---|
Analyzer |
StandardQueryParser.getAnalyzer() |
Analyzer |
CommonQueryParserConfiguration.getAnalyzer() |
Modifier and Type | Method and Description |
---|---|
static Query |
QueryParserUtil.parse(String[] queries,
String[] fields,
Analyzer analyzer)
Parses a query which searches on the fields specified.
|
static Query |
QueryParserUtil.parse(String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
QueryParserUtil.parse(String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
void |
StandardQueryParser.setAnalyzer(Analyzer analyzer) |
Constructor and Description |
---|
StandardQueryParser(Analyzer analyzer)
Constructs a
StandardQueryParser object and sets an
Analyzer to it. |
Modifier and Type | Field and Description |
---|---|
static ConfigurationKey<Analyzer> |
StandardQueryConfigHandler.ConfigurationKeys.ANALYZER
Key used to set the
Analyzer used for terms found in the query |
Constructor and Description |
---|
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.
|
SimpleQueryParser(Analyzer analyzer,
String field)
Creates a new parser searching over a single field.
|
Modifier and Type | Field and Description |
---|---|
protected Analyzer |
CoreParser.analyzer |
Constructor and Description |
---|
CoreParser(Analyzer analyzer,
QueryParser parser)
Construct an XML parser that uses a single instance QueryParser for handling
UserQuery tags - all parse operations are synchronised on this parser
|
CoreParser(String defaultField,
Analyzer analyzer)
Constructs an XML parser that creates a QueryParser for each UserQuery request.
|
CoreParser(String defaultField,
Analyzer analyzer,
QueryParser parser) |
CorePlusExtensionsParser(Analyzer analyzer,
QueryParser parser)
Construct an XML parser that uses a single instance QueryParser for handling
UserQuery tags - all parse operations are synchronized on this parser
|
CorePlusExtensionsParser(String defaultField,
Analyzer analyzer)
Constructs an XML parser that creates a QueryParser for each UserQuery request.
|
Modifier and Type | Method and Description |
---|---|
protected QueryParser |
UserInputQueryBuilder.createQueryParser(String fieldName,
Analyzer analyzer)
Method to create a QueryParser - designed to be overridden
|
Constructor and Description |
---|
FuzzyLikeThisQueryBuilder(Analyzer analyzer) |
LikeThisQueryBuilder(Analyzer analyzer,
String[] defaultFieldNames) |
SpanOrTermsBuilder(Analyzer analyzer) |
TermsFilterBuilder(Analyzer analyzer) |
TermsQueryBuilder(Analyzer analyzer) |
UserInputQueryBuilder(String defaultField,
Analyzer analyzer) |
Constructor and Description |
---|
FuzzyLikeThisQuery(int maxNumTerms,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Analyzer analyzer)
A convenience method that tries a number of approaches to getting a token
stream.
|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Document doc,
Analyzer analyzer)
A convenience method that tries to first get a TermPositionVector for the
specified docId, then, falls back to using the passed in
Document to retrieve the TokenStream. |
String |
Highlighter.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.
|
static TokenStream |
TokenSources.getTokenStream(Document doc,
String field,
Analyzer analyzer) |
static TokenStream |
TokenSources.getTokenStream(IndexReader reader,
int docId,
String field,
Analyzer analyzer) |
static TokenStream |
TokenSources.getTokenStream(String field,
String contents,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
protected Analyzer |
PostingsHighlighter.getIndexAnalyzer(String field)
Returns the analyzer originally used to index the content for
field . |
Modifier and Type | Field and Description |
---|---|
protected Analyzer |
AnalyzingInfixSuggester.indexAnalyzer
Analyzer used at index time
|
protected Analyzer |
AnalyzingInfixSuggester.queryAnalyzer
Analyzer used at search time
|
Modifier and Type | Method and Description |
---|---|
protected IndexWriterConfig |
AnalyzingInfixSuggester.getIndexWriterConfig(Version matchVersion,
Analyzer indexAnalyzer,
IndexWriterConfig.OpenMode openMode)
Override this to customize index settings, e.g.
|
Constructor and Description |
---|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingSuggester(Analyzer analyzer)
|
AnalyzingSuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer)
|
AnalyzingSuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int options,
int maxSurfaceFormsPerAnalyzedForm,
int maxGraphExpansions,
boolean preservePositionIncrements)
Creates a new suggester.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
directory, if it exists.
|
BlendedInfixSuggester(Version matchVersion,
Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
BlendedInfixSuggester.BlenderType blenderType,
int numFactor)
Create a new instance, loading from a previously built
directory, if it exists.
|
FreeTextSuggester(Analyzer analyzer)
Instantiate, using the provided analyzer for both
indexing and lookup, using bigram model by default.
|
FreeTextSuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer)
Instantiate, using the provided indexing and lookup
analyzers, using bigram model by default.
|
FreeTextSuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int grams)
Instantiate, using the provided indexing and lookup
analyzers, with the specified model (2
= bigram, 3 = trigram, etc.).
|
FreeTextSuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int grams,
byte separator)
Instantiate, using the provided indexing and lookup
analyzers, and specified model (2 = bigram, 3 =
trigram ,etc.).
|
FuzzySuggester(Analyzer analyzer)
Creates a
FuzzySuggester instance initialized with default values. |
FuzzySuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer)
Creates a
FuzzySuggester instance with an index & a query analyzer initialized with default values. |
FuzzySuggester(Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int options,
int maxSurfaceFormsPerAnalyzedForm,
int maxGraphExpansions,
boolean preservePositionIncrements,
int maxEdits,
boolean transpositions,
int nonFuzzyPrefix,
int minFuzzyLength,
boolean unicodeAware)
Creates a
FuzzySuggester instance. |
Modifier and Type | Method and Description |
---|---|
Analyzer |
QueryBuilder.getAnalyzer()
Returns the analyzer.
|
Modifier and Type | Method and Description |
---|---|
protected Query |
QueryBuilder.createFieldQuery(Analyzer analyzer,
BooleanClause.Occur operator,
String field,
String queryText,
boolean quoted,
int phraseSlop)
Creates a query from the analysis chain.
|
void |
QueryBuilder.setAnalyzer(Analyzer analyzer)
Sets the analyzer used to tokenize text.
|
Constructor and Description |
---|
QueryBuilder(Analyzer analyzer)
Creates a new QueryBuilder using the given analyzer.
|
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.