Uses of Class
org.apache.lucene.analysis.Analyzer
-
Packages that use Analyzer Package Description org.apache.lucene.analysis API and code to convert text into indexable/searchable tokens.org.apache.lucene.analysis.standard Standards-based analyzers implemented with JFlex.org.apache.lucene.collation CollationKeyFilterconverts each token into its binaryCollationKeyusing the providedCollator, and then encode theCollationKeyas a String usingIndexableBinaryStringTools, to allow it to be stored as an index term.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.queryParser A simple query parser implemented with JavaCC.org.apache.lucene.search Code to search indices. -
-
Uses of Analyzer in org.apache.lucene.analysis
Subclasses of Analyzer in org.apache.lucene.analysis Modifier and Type Class Description classKeywordAnalyzer"Tokenizes" the entire stream as a single token.classLimitTokenCountAnalyzerThis Analyzer limits the number of tokens while indexing.classPerFieldAnalyzerWrapperThis analyzer is used to facilitate scenarios where different fields require different analysis techniques.classReusableAnalyzerBaseAn convenience subclass of Analyzer that makes it easy to implementTokenStreamreuse.classSimpleAnalyzerclassStopAnalyzerclassStopwordAnalyzerBaseBase class for Analyzers that need to make use of stopword sets.classWhitespaceAnalyzerAn Analyzer that usesWhitespaceTokenizer.Methods in org.apache.lucene.analysis with parameters of type Analyzer Modifier and Type Method Description voidPerFieldAnalyzerWrapper. addAnalyzer(String fieldName, Analyzer analyzer)Deprecated.Changing the Analyzer for a field after instantiation prevents reusability.Constructors in org.apache.lucene.analysis with parameters of type Analyzer Constructor Description LimitTokenCountAnalyzer(Analyzer delegate, int maxTokenCount)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 parameters in org.apache.lucene.analysis with type arguments of type Analyzer Constructor Description PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer, Map<String,Analyzer> fieldAnalyzers)Constructs with default analyzer and a map of analyzers to use for specific fields. -
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.classStandardAnalyzerFiltersStandardTokenizerwithStandardFilter,LowerCaseFilterandStopFilter, using a list of English stop words.classUAX29URLEmailAnalyzerFiltersUAX29URLEmailTokenizerwithStandardFilter,LowerCaseFilterandStopFilter, using a list of English stop words. -
Uses of Analyzer in org.apache.lucene.collation
Subclasses of Analyzer in org.apache.lucene.collation Modifier and Type Class Description classCollationKeyAnalyzerFiltersKeywordTokenizerwithCollationKeyFilter. -
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()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 voidIndexWriter. addDocument(Document doc, Analyzer analyzer)Adds a document to this index, using the provided analyzer instead of the value ofIndexWriter.getAnalyzer().voidIndexWriter. addDocuments(Collection<Document> 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.voidIndexWriter. updateDocument(Term term, Document doc, Analyzer analyzer)Updates a document by first deleting the document(s) containingtermand then adding the new document.voidIndexWriter. updateDocuments(Term delTerm, Collection<Document> 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.Constructors in org.apache.lucene.index with parameters of type Analyzer Constructor Description IndexWriter(Directory d, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexDeletionPolicy deletionPolicy, IndexWriter.MaxFieldLength mfl, IndexCommit commit)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl)Deprecated.useIndexWriter(Directory, IndexWriterConfig)insteadIndexWriterConfig(Version matchVersion, Analyzer analyzer) -
Uses of Analyzer in org.apache.lucene.queryParser
Methods in org.apache.lucene.queryParser that return Analyzer Modifier and Type Method Description AnalyzerQueryParser. getAnalyzer()Methods in org.apache.lucene.queryParser with parameters of type Analyzer Modifier and Type Method Description static QueryMultiFieldQueryParser. parse(Version matchVersion, String[] queries, String[] fields, Analyzer analyzer)Parses a query which searches on the fields specified.static QueryMultiFieldQueryParser. parse(Version matchVersion, String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.static QueryMultiFieldQueryParser. parse(Version matchVersion, String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.Constructors in org.apache.lucene.queryParser with parameters of type Analyzer Constructor 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)Constructs a query parser. -
Uses of Analyzer in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type Analyzer Modifier and Type Method Description longNRTManager.TrackingIndexWriter. addDocument(Document d, Analyzer a)longNRTManager.TrackingIndexWriter. addDocuments(Collection<Document> docs, Analyzer a)longNRTManager.TrackingIndexWriter. updateDocument(Term t, Document d, Analyzer a)longNRTManager.TrackingIndexWriter. updateDocuments(Term t, Collection<Document> docs, Analyzer a)Constructors in org.apache.lucene.search with parameters of type Analyzer Constructor Description QueryTermVector(String queryString, Analyzer analyzer)
-