public abstract class LuceneUtils extends Object
Utility methods for the Lucene optional tool.
Modifier and Type | Class and Description |
---|---|
static class |
LuceneUtils.DefaultIndexDescriptor
The default LuceneIndexDescriptor
|
Modifier and Type | Field and Description |
---|---|
static String |
TEXT_FIELD_NAME |
Constructor and Description |
---|
LuceneUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.util.Version |
currentVersion()
Get the version of the Lucene library on the classpath.
|
static org.apache.lucene.analysis.Analyzer |
defaultAnalyzer()
Get the default Analyzer associated with the database Locale.
|
static LuceneIndexDescriptor |
defaultIndexDescriptor()
Get the default index descriptor.
|
static org.apache.lucene.queryparser.classic.QueryParser |
defaultQueryParser(org.apache.lucene.util.Version version,
String[] fieldNames,
org.apache.lucene.analysis.Analyzer analyzer)
Get the default, classic QueryParser.
|
static org.apache.lucene.analysis.Analyzer |
getAnalyzerForLocale(Locale locale)
Get the Analyzer associated with the given Locale.
|
static org.apache.lucene.analysis.Analyzer |
standardAnalyzer()
Get the StandardAnalyzer for parsing text.
|
public static final String TEXT_FIELD_NAME
public static org.apache.lucene.util.Version currentVersion()
public static org.apache.lucene.analysis.Analyzer defaultAnalyzer() throws SQLException
Get the default Analyzer associated with the database Locale.
SQLException
public static org.apache.lucene.analysis.Analyzer getAnalyzerForLocale(Locale locale) throws SQLException
Get the Analyzer associated with the given Locale.
SQLException
public static org.apache.lucene.analysis.Analyzer standardAnalyzer()
Get the StandardAnalyzer for parsing text.
public static org.apache.lucene.queryparser.classic.QueryParser defaultQueryParser(org.apache.lucene.util.Version version, String[] fieldNames, org.apache.lucene.analysis.Analyzer analyzer)
Get the default, classic QueryParser.
public static LuceneIndexDescriptor defaultIndexDescriptor()
Get the default index descriptor. This has a single field named TEXT, a defaultAnalyzer() and a defaultQueryParser().
Apache Derby 10.14 API Documentation - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.