public abstract class LuceneUtils
extends java.lang.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 java.lang.String |
TEXT_FIELD_NAME |
| Constructor and Description |
|---|
LuceneUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Version |
currentVersion()
Get the version of the Lucene library on the classpath.
|
static Analyzer |
defaultAnalyzer()
Get the default Analyzer associated with the database Locale.
|
static LuceneIndexDescriptor |
defaultIndexDescriptor()
Get the default index descriptor.
|
static QueryParser |
defaultQueryParser(Version version,
java.lang.String[] fieldNames,
Analyzer analyzer)
Get the default, classic QueryParser.
|
static Analyzer |
getAnalyzerForLocale(java.util.Locale locale)
Get the Analyzer associated with the given Locale.
|
static Analyzer |
standardAnalyzer()
Get the StandardAnalyzer for parsing text.
|
public static final java.lang.String TEXT_FIELD_NAME
public static Version currentVersion()
public static Analyzer defaultAnalyzer()
throws java.sql.SQLException
Get the default Analyzer associated with the database Locale.
java.sql.SQLExceptionpublic static Analyzer getAnalyzerForLocale(java.util.Locale locale)
throws java.sql.SQLException
Get the Analyzer associated with the given Locale.
java.sql.SQLExceptionpublic static Analyzer standardAnalyzer()
Get the StandardAnalyzer for parsing text.
public static QueryParser defaultQueryParser(Version version,
java.lang.String[] fieldNames,
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.13 API Documentation - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.