Uses of Class
org.apache.lucene.util.Version
-
Packages that use Version 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.index Code to maintain and access indices.org.apache.lucene.queryParser A simple query parser implemented with JavaCC.org.apache.lucene.util Some utility classes. -
-
Uses of Version in org.apache.lucene.analysis
Fields in org.apache.lucene.analysis declared as Version Modifier and Type Field Description protected Version
StopwordAnalyzerBase. matchVersion
Methods in org.apache.lucene.analysis with parameters of type Version Modifier and Type Method Description static <V> CharArrayMap<V>
CharArrayMap. copy(Version matchVersion, Map<?,? extends V> map)
Returns a copy of the given map as aCharArrayMap
.static CharArraySet
CharArraySet. copy(Version matchVersion, Set<?> set)
Returns a copy of the given set as aCharArraySet
.static boolean
StopFilter. getEnablePositionIncrementsVersionDefault(Version matchVersion)
Deprecated.useStopFilter(Version, TokenStream, Set)
insteadstatic CharArraySet
WordlistLoader. getSnowballWordSet(Reader reader, Version matchVersion)
Reads stopwords from a stopword list in Snowball format.static CharArraySet
WordlistLoader. getWordSet(Reader reader, String comment, Version matchVersion)
Reads lines from a Reader and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace).static CharArraySet
WordlistLoader. getWordSet(Reader reader, Version matchVersion)
Reads lines from a Reader and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace).protected static CharArraySet
StopwordAnalyzerBase. loadStopwordSet(File stopwords, Version matchVersion)
Creates a CharArraySet from a file.protected static CharArraySet
StopwordAnalyzerBase. loadStopwordSet(Reader stopwords, Version matchVersion)
Creates a CharArraySet from a file.static Set<Object>
StopFilter. makeStopSet(Version matchVersion, String... stopWords)
Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor.static Set<Object>
StopFilter. makeStopSet(Version matchVersion, String[] stopWords, boolean ignoreCase)
Creates a stopword set from the given stopword array.static Set<Object>
StopFilter. makeStopSet(Version matchVersion, List<?> stopWords)
Builds a Set from an array of stop words, appropriate for passing into the StopFilter constructor.static Set<Object>
StopFilter. makeStopSet(Version matchVersion, List<?> stopWords, boolean ignoreCase)
Creates a stopword set from the given stopword list.Constructors in org.apache.lucene.analysis with parameters of type Version Constructor Description CharArrayMap(Version matchVersion, int startSize, boolean ignoreCase)
Create map with enough capacity to hold startSize termsCharArrayMap(Version matchVersion, Map<?,? extends V> c, boolean ignoreCase)
Creates a map from the mappings in another map.CharArraySet(Version matchVersion, int startSize, boolean ignoreCase)
Create set with enough capacity to hold startSize termsCharArraySet(Version matchVersion, Collection<?> c, boolean ignoreCase)
Creates a set from a Collection of objects.CharTokenizer(Version matchVersion, Reader input)
Creates a newCharTokenizer
instanceCharTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
Creates a newCharTokenizer
instanceCharTokenizer(Version matchVersion, AttributeSource source, Reader input)
Creates a newCharTokenizer
instanceLetterTokenizer(Version matchVersion, Reader in)
Construct a new LetterTokenizer.LetterTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader in)
Construct a new LetterTokenizer using a givenAttributeSource.AttributeFactory
.LetterTokenizer(Version matchVersion, AttributeSource source, Reader in)
Construct a new LetterTokenizer using a givenAttributeSource
.LowerCaseFilter(Version matchVersion, TokenStream in)
Create a new LowerCaseFilter, that normalizes token text to lower case.LowerCaseTokenizer(Version matchVersion, Reader in)
Construct a new LowerCaseTokenizer.LowerCaseTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader in)
Construct a new LowerCaseTokenizer using a givenAttributeSource.AttributeFactory
.LowerCaseTokenizer(Version matchVersion, AttributeSource source, Reader in)
Construct a new LowerCaseTokenizer using a givenAttributeSource
.SimpleAnalyzer(Version matchVersion)
Creates a newSimpleAnalyzer
StopAnalyzer(Version matchVersion)
Builds an analyzer which removes words inStopAnalyzer.ENGLISH_STOP_WORDS_SET
.StopAnalyzer(Version matchVersion, File stopwordsFile)
Builds an analyzer with the stop words from the given file.StopAnalyzer(Version matchVersion, Reader stopwords)
Builds an analyzer with the stop words from the given reader.StopAnalyzer(Version matchVersion, Set<?> stopWords)
Builds an analyzer with the stop words from the given set.StopFilter(Version matchVersion, TokenStream in, Set<?> stopWords)
Constructs a filter which removes words from the input TokenStream that are named in the Set.StopFilter(Version matchVersion, TokenStream input, Set<?> stopWords, boolean ignoreCase)
Deprecated.UseStopFilter(Version, TokenStream, Set)
insteadStopwordAnalyzerBase(Version version)
Creates a new Analyzer with an empty stopword setStopwordAnalyzerBase(Version version, Set<?> stopwords)
Creates a new instance initialized with the given stopword setWhitespaceAnalyzer(Version matchVersion)
Creates a newWhitespaceAnalyzer
WhitespaceTokenizer(Version matchVersion, Reader in)
Construct a new WhitespaceTokenizer.WhitespaceTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader in)
Construct a new WhitespaceTokenizer using a givenAttributeSource.AttributeFactory
.WhitespaceTokenizer(Version matchVersion, AttributeSource source, Reader in)
Construct a new WhitespaceTokenizer using a givenAttributeSource
. -
Uses of Version in org.apache.lucene.analysis.standard
Constructors in org.apache.lucene.analysis.standard with parameters of type Version Constructor Description ClassicAnalyzer(Version matchVersion)
Builds an analyzer with the default stop words (ClassicAnalyzer.STOP_WORDS_SET
).ClassicAnalyzer(Version matchVersion, File stopwords)
Deprecated.UseClassicAnalyzer(Version, Reader)
instead.ClassicAnalyzer(Version matchVersion, Reader stopwords)
Builds an analyzer with the stop words from the given reader.ClassicAnalyzer(Version matchVersion, Set<?> stopWords)
Builds an analyzer with the given stop words.ClassicTokenizer(Version matchVersion, Reader input)
Creates a new instance of theClassicTokenizer
.ClassicTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
Creates a new ClassicTokenizer with a givenAttributeSource.AttributeFactory
ClassicTokenizer(Version matchVersion, AttributeSource source, Reader input)
Creates a new ClassicTokenizer with a givenAttributeSource
.StandardAnalyzer(Version matchVersion)
Builds an analyzer with the default stop words (StandardAnalyzer.STOP_WORDS_SET
).StandardAnalyzer(Version matchVersion, File stopwords)
Deprecated.UseStandardAnalyzer(Version, Reader)
instead.StandardAnalyzer(Version matchVersion, Reader stopwords)
Builds an analyzer with the stop words from the given reader.StandardAnalyzer(Version matchVersion, Set<?> stopWords)
Builds an analyzer with the given stop words.StandardFilter(Version matchVersion, TokenStream in)
StandardTokenizer(Version matchVersion, Reader input)
Creates a new instance of theStandardTokenizer
.StandardTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
Creates a new StandardTokenizer with a givenAttributeSource.AttributeFactory
StandardTokenizer(Version matchVersion, AttributeSource source, Reader input)
Creates a new StandardTokenizer with a givenAttributeSource
.UAX29URLEmailAnalyzer(Version matchVersion)
Builds an analyzer with the default stop words (UAX29URLEmailAnalyzer.STOP_WORDS_SET
).UAX29URLEmailAnalyzer(Version matchVersion, Reader stopwords)
Builds an analyzer with the stop words from the given reader.UAX29URLEmailAnalyzer(Version matchVersion, Set<?> stopWords)
Builds an analyzer with the given stop words.UAX29URLEmailTokenizer(Version matchVersion, Reader input)
Creates a new instance of the UAX29URLEmailTokenizer.UAX29URLEmailTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
Creates a new UAX29URLEmailTokenizer with a givenAttributeSource.AttributeFactory
UAX29URLEmailTokenizer(Version matchVersion, AttributeSource source, Reader input)
Creates a new UAX29URLEmailTokenizer with a givenAttributeSource
. -
Uses of Version in org.apache.lucene.index
Constructors in org.apache.lucene.index with parameters of type Version Constructor Description IndexUpgrader(Directory dir, Version matchVersion)
Creates index upgrader on the given directory, using anIndexWriter
using the givenmatchVersion
.IndexUpgrader(Directory dir, Version matchVersion, PrintStream infoStream, boolean deletePriorCommits)
Creates index upgrader on the given directory, using anIndexWriter
using the givenmatchVersion
.IndexWriterConfig(Version matchVersion, Analyzer analyzer)
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode, Version matchVersion)
PersistentSnapshotDeletionPolicy
wraps anotherIndexDeletionPolicy
to enable flexible snapshotting. -
Uses of Version in org.apache.lucene.queryParser
Methods in org.apache.lucene.queryParser with parameters of type Version Modifier and Type Method Description 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.Constructors in org.apache.lucene.queryParser with parameters of type Version 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 Version in org.apache.lucene.util
Methods in org.apache.lucene.util that return Version Modifier and Type Method Description static Version
Version. valueOf(String name)
Returns the enum constant of this type with the specified name.static Version[]
Version. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.lucene.util with parameters of type Version Modifier and Type Method Description static CharacterUtils
CharacterUtils. getInstance(Version matchVersion)
Returns aCharacterUtils
implementation according to the givenVersion
instance.boolean
Version. onOrAfter(Version other)
-