|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.SimpleLuceneIndex
public final class SimpleLuceneIndex
A simple API for searching, reading and writing Lucene indexes.
ResultDoc
,
DocReader
Field Summary | |
---|---|
static boolean |
BLOCK
Indicates update operations will be blocked until the current one returns. |
static int |
DEFAULT_AND
Use to set the boolean search operator to AND. |
static int |
DEFAULT_OR
Use to set the boolean search operator to OR. |
static boolean |
NO_BLOCK
Indicates update operations will be allowed while others are still in progress. |
Constructor Summary | |
---|---|
SimpleLuceneIndex(String indexDirPath)
Initializes or creates an index at the given location using a default search field named "default" and a StandardAnalyzer for index searching and creation. |
|
SimpleLuceneIndex(String indexDirPath,
org.apache.lucene.analysis.Analyzer analyzer)
Initializes or creates an index at the given location using a default search field named "default" and the given Analyzer. |
|
SimpleLuceneIndex(String indexDirPath,
String defaultField,
org.apache.lucene.analysis.Analyzer analyzer)
Initializes or creates an index at the given location using the default search field, additional stop words and analyzer indicated. |
Method Summary | |
---|---|
boolean |
addDoc(org.apache.lucene.document.Document doc)
Adds a Document to the index. |
boolean |
addDoc(org.apache.lucene.document.Document doc,
boolean block)
Adds a Document to the index. |
boolean |
addDocs(org.apache.lucene.document.Document[] docs)
Adds a group of Documents to the index. |
boolean |
addDocs(org.apache.lucene.document.Document[] docs,
boolean block)
Adds a group of Documents to the index. |
void |
close()
Closes the writers and performs clean-up |
void |
deleteAndReinititlize()
Deletes the index and re-initializes a new, empty one in its place. |
void |
doWithDocument(Callback cal,
String field,
String term)
Calls the callback function of cal for each document matching the term in the given field |
void |
doWithDocument(Callback cal,
String field,
String[] terms)
Calls the callback function of cal for each document matching the terms in the given field |
static String |
encodeToTerm(String s)
Encodes a String to an appropriate format that can be indexed as a single term using a StandardAnalyzer. |
static String |
encodeToTerm(String s,
boolean encodeWildCards)
Encodes a String to an appropriate format that can be indexed as a single term using a StandardAnalyzer. |
static String |
encodeToTerm(String s,
boolean encodeWildCards,
boolean encodeSpace)
Encodes a String to an appropriate format that can be indexed as a single term or terms using a StandardAnalyzer. |
static String |
escape(String term)
Escapes all Lucene QueryParser reserved characters with a preceeding \. |
static String |
escape(String term,
String preserveChars)
Escapes the Lucene QueryParser reserved characters with a preceeding \ except those included in preserveChars. |
protected void |
finalize()
Override finalize to ensure resources are released... |
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Gets the analyzer that has been configured for this index. |
Object |
getAttribute(String key)
Gets an attribute from this SimpleLuceneIndex. |
static String |
getDateStamp()
Gets a datestamp of the current time formatted for display with logs and output. |
String |
getDefaultSearchField()
Gets the name of the field that is searched by default if no field is indicated. |
org.apache.lucene.document.Document |
getDocument(int n)
Gets the nth document in the index. |
List |
getFields()
Gets a list of all fields in the index listed alphabetically. |
String |
getIndexLocation()
Gets the ablsolute path to the directory where the index resides. |
long |
getLastModifiedCount()
Gets the version number of the last time the index was modified by adding, deleting or changing a document. |
org.apache.lucene.queryParser.QueryParser.Operator |
getLuceneOperator()
Gets the Lucene boolean operator that is currently being used for searches. |
static org.apache.lucene.util.Version |
getLuceneVersion()
Gets /the version of Lucene. |
int |
getNumDocs()
Gets the total number of documents in the index. |
int |
getNumDocs(org.apache.lucene.search.Query query)
Gets the number of documents that match the given query. |
int |
getNumDocs(String query)
Gets the number of documents that match the given query. |
int |
getOperator()
Gets the boolean operator that is currently being used for searches. |
String |
getOperatorString()
Gets the boolean operator that is currently being used for searches as a String (AND or OR). |
org.apache.lucene.queryParser.QueryParser |
getQueryParser()
Gets a new instance of the QueryParser used by this
SimpleLuceneIndex that uses it's Analyzers, defaultField and boolean operator settings. |
org.apache.lucene.queryParser.QueryParser |
getQueryParser(String defaultSearchField)
Gets a new instance of the QueryParser used by this
SimpleLuceneIndex that uses it's Analyzers and boolean operator settings, allowing one to specify the
default search field. |
org.apache.lucene.index.IndexReader |
getReader()
Gets the IndexReader. |
Map |
getTermAndDocCounts(String[] fields)
Gets a Map of all terms that are in the index under the given fields. |
Map |
getTermCounts()
Gets a Map of all terms that are in the index. |
Map |
getTermCounts(String field)
Gets a Map of all terms that are in the index under the given field. |
Map |
getTermCounts(String[] fields)
Gets a Map of all terms that are in the index under the given fields. |
int |
getTermFrequency(String term)
Gets the termFrequency across all fields in the index |
int |
getTermFrequency(String field,
String term)
Gets the termFrequency of terms in the given field. |
Map |
getTermLists()
Gets a Map of Lists that contain the terms for each field in the index. |
List |
getTerms(String field)
Gets a list of all terms that are in the index under the given field name. |
boolean |
isIndexing()
Indicates whether the index is currently being updated or modified. |
List |
listDocs()
Gets a list of all Document s in the index. |
List |
listDocs(String field,
String term)
Gets a list of all Document s in the index that match the given term in
the given field. |
List |
listDocs(String field,
String[] terms)
Gets a list of all Document s in the index that match the given terms
in the given field. |
List |
listTerms()
Gets a list of all terms in the index. |
boolean |
removeDocs(String field,
String value)
Removes all Documents that match the given term within the given field. |
boolean |
removeDocs(String field,
String[] values)
Removes all documents that match the given terms within the given field. |
boolean |
removeDocs(String field,
String value,
boolean block)
See removeDocs(String,String) for description. |
ResultDocList |
searchDocs(org.apache.lucene.search.Query query)
Performs a search over the index using the qiven Query using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter)
Performs a search over the index using the qiven Query and Filter using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sortBy,
HashMap docReaderAttributes)
Performs a search over the index using the qiven Query Object and Filter using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(org.apache.lucene.search.Query query,
HashMap docReaderAttributes)
Performs a search over the index using the Query object, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query)
Performs a search over the index using the qiven query String, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
org.apache.lucene.analysis.Analyzer analyzer)
Performs a search over the index using the qiven query String and Analyzer, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
org.apache.lucene.search.Filter filter)
Performs a search over the index using the qiven query String and Filter using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
org.apache.lucene.search.Filter filter,
HashMap docReaderAttributes)
Performs a search over the index using the qiven query String and Filter using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sortBy,
HashMap docReaderAttributes,
org.apache.lucene.analysis.Analyzer analyzer)
Performs a search over the index using the qiven query String and Filter using the pre-defined default field, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
HashMap docReaderAttributes)
Performs a search over the index using the qiven query String, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
HashMap docReaderAttributes,
org.apache.lucene.analysis.Analyzer analyzer)
Performs a search over the index using the qiven query String, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
org.apache.lucene.search.Sort sortBy)
Performs a search over the index using the qiven query String, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
String defaultField)
Performs a search over the index using the qiven query String, returning an ordered array of matching ranked results. |
ResultDocList |
searchDocs(String query,
String defaultField,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sortBy)
Performs a search over the index using the qiven query String, default field and Filter, returning an ordered array of matching ranked results. |
void |
setAttribute(String key,
Object attribute)
Sets an attribute that will be available for access in search results by calling DocReader.getAttribute(String) or ResultDoc.getAttribute(String) . |
static void |
setDebug(boolean db)
Sets the debug attribute of the SimpleLuceneIndex object |
void |
setOperator(int operator)
Sets the boolean operator used during searches. |
void |
stopIndexing()
Instructs the indexer to stop processing updates. |
boolean |
update(String deleteField,
ArrayList deleteValues,
ArrayList addDocs)
Updates the index by first deleting the documents that match the value(s) indicated in deleteValues
in the field deleteField, then adding the documents in addDocs . |
boolean |
update(String deleteField,
ArrayList deleteValues,
ArrayList addDocs,
boolean block)
Updates the index by first deleting the documents that match the value(s) indicated in deleteValues
in the field deleteField, then adding the documents in addDocs . |
boolean |
update(String deleteField,
String[] deleteValues,
org.apache.lucene.document.Document[] addDocs)
Updates the index by first deleting the documents that match the value(s) indicated in deleteValues
in the field deleteField, then adding the documents in addDocs . |
boolean |
update(String deleteField,
String[] deleteValues,
org.apache.lucene.document.Document[] addDocs,
boolean block)
Updates the index by first deleting the documents that match the value(s) indicated in deleteValues
in the field deleteField, then adding the documents in addDocs . |
boolean |
update(String deleteField,
String deleteValue,
ArrayList addDocs,
boolean block)
See update(String, String[], Document[], boolean) for description. |
boolean |
update(String deleteField,
String deleteValue,
org.apache.lucene.document.Document[] addDocs,
boolean block)
See update(String, String[], Document[], boolean) for description. |
boolean |
update(String deleteField,
String deleteValue,
org.apache.lucene.document.Document addDoc,
boolean block)
See update(String, String[], Document[], boolean) for description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean BLOCK
public static final boolean NO_BLOCK
public static final int DEFAULT_OR
setOperator(int operator)
,
getOperator()
,
Constant Field Valuespublic static final int DEFAULT_AND
setOperator(int operator)
,
getOperator()
,
Constant Field ValuesConstructor Detail |
---|
public SimpleLuceneIndex(String indexDirPath)
indexDirPath
- The directory where the index is located or will be created.public SimpleLuceneIndex(String indexDirPath, org.apache.lucene.analysis.Analyzer analyzer)
indexDirPath
- The directory where the index is located or will be created.analyzer
- The default Analyzer to use for searching and index creationpublic SimpleLuceneIndex(String indexDirPath, String defaultField, org.apache.lucene.analysis.Analyzer analyzer)
indexDirPath
- The directory where the index is located or will be created.defaultField
- The name of the field used for default searching, for example "default".analyzer
- The default Analyzer to use for searching and index creationMethod Detail |
---|
public void deleteAndReinititlize()
public void setAttribute(String key, Object attribute)
DocReader.getAttribute(String)
or ResultDoc.getAttribute(String)
.
key
- The key used to reference the attribute.attribute
- Any Java Object.ResultDoc.getAttribute(String)
,
DocReader.getAttribute(String)
public Object getAttribute(String key)
DocReader.getAttribute(String)
or ResultDoc.getAttribute(String)
. The key 'thisIndex' returns this index.
key
- The key used to reference the attribute.
ResultDoc.getAttribute(String)
,
DocReader.getAttribute(String)
public String getIndexLocation()
public ResultDocList searchDocs(String query)
query
- The query to perform over the index.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, org.apache.lucene.search.Sort sortBy)
query
- The query to perform over the index.sortBy
- A Sort to apply to the results or null to use relevancy ranking
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, org.apache.lucene.analysis.Analyzer analyzer)
query
- The query to perform over the index.analyzer
- The Analyzer to use to determine the tokens in the query.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, HashMap docReaderAttributes)
query
- The query to perform over the index.docReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(org.apache.lucene.search.Query query, HashMap docReaderAttributes)
query
- The Query to search over the index.docReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, HashMap docReaderAttributes, org.apache.lucene.analysis.Analyzer analyzer)
query
- The query to perform over the index.docReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig.analyzer
- The analyzer to use, or null to use the default
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, String defaultField)
query
- The query to perform over the index.defaultField
- The default field to search in.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, String defaultField, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Sort sortBy)
query
- The query to perform over the index.defaultField
- The default field to search in, or null to use the pre-defined default field.filter
- A filter used for the search.sortBy
- A Sort to apply to the results or null to use relevancy ranking
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, org.apache.lucene.search.Filter filter)
query
- The query to perform over the index.filter
- A filter used for the search.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter)
query
- The Query to perform over the index.filter
- A filter used for the search.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(org.apache.lucene.search.Query query)
query
- The Query to perform over the index.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, org.apache.lucene.search.Filter filter, HashMap docReaderAttributes)
query
- The query to perform over the index.filter
- A filter used for the search.docReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig.
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Sort sortBy, HashMap docReaderAttributes)
query
- The Query to perform over the index.filter
- A filter used for the search.docReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig.sortBy
- A Sort to apply to the results or null to use relevancy ranking
setOperator(int operator)
,
getOperator()
public ResultDocList searchDocs(String query, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Sort sortBy, HashMap docReaderAttributes, org.apache.lucene.analysis.Analyzer analyzer)
query
- The query to perform over the index.filter
- A Filter used for the search or null for none.sortBy
- A Sort to apply to the results or null to use relevancy rankingdocReaderAttributes
- Attributes that are included for use in DocReaders via the ResultDocConfig or
null for noneanalyzer
- The analyzer to use, or null to use the default
setOperator(int operator)
,
getOperator()
public void setOperator(int operator)
operator
- The new boolean operator value.DEFAULT_OR
,
DEFAULT_AND
public int getOperator()
DEFAULT_OR
,
DEFAULT_AND
public org.apache.lucene.queryParser.QueryParser.Operator getLuceneOperator()
public final org.apache.lucene.queryParser.QueryParser getQueryParser()
QueryParser
used by this
SimpleLuceneIndex that uses it's Analyzers, defaultField and boolean operator settings.
public final org.apache.lucene.queryParser.QueryParser getQueryParser(String defaultSearchField)
QueryParser
used by this
SimpleLuceneIndex that uses it's Analyzers and boolean operator settings, allowing one to specify the
default search field.
defaultSearchField
- The search field used as default when none is specified in the query
public String getOperatorString()
DEFAULT_OR
,
DEFAULT_AND
public String getDefaultSearchField()
public org.apache.lucene.index.IndexReader getReader()
public int getNumDocs(String query)
query
- The query to perform over the index.
public int getNumDocs(org.apache.lucene.search.Query query)
query
- The query to perform over the index.
public int getNumDocs()
public List listDocs()
Document
s in the index. Note: This method loads all
Documents and requires a large amount of memory for large result sets (consider using search instead).
public List listDocs(String field, String term)
Document
s in the index that match the given term in
the given field. Note: This method loads all Documents and requires a large amount of memory for large
result sets (consider using search instead).
field
- The field searched.term
- The term to match.
public List listDocs(String field, String[] terms)
Document
s in the index that match the given terms
in the given field. Note: This method loads all Documents and requires a large amount of memory for large
result sets (consider using search instead).
field
- The field searched.terms
- The terms to match.
public void doWithDocument(Callback cal, String field, String[] terms)
cal
- field
- terms
- public void doWithDocument(Callback cal, String field, String term)
cal
- field
- term
- public List listTerms()
public List getFields()
public Map getTermLists()
public List getTerms(String field)
getLastModifiedCount()
to determe when to update the cache.
field
- The indexed field name.
public Map getTermCounts(String field)
Implementation note: this method is not efficient. If you need to use this method frequently, consider
caching the results and using getLastModifiedCount()
to determe when to update the cache.
field
- The indexed field name.
public Map getTermCounts()
Implementation note: this method is not efficient. If you need to use this method frequently, consider
caching the results and using getLastModifiedCount()
to determe when to update the cache.
public final Map getTermCounts(String[] fields)
Implementation note: this method is not efficient. If you need to use this method frequently, consider
caching the results and using getLastModifiedCount()
to determe when to update the cache.
fields
- The indexed field names.
public final Map getTermAndDocCounts(String[] fields)
TermDocCount
Objects, which contain the term
count, the total number of documents containing the term in one or more of the given field(s), and a list
of fields in which the term appears.
Implementation note: this method is not efficient. If you need to use this method frequently, consider
caching the results and using getLastModifiedCount()
to determe when to update the cache. Also,
this method is considerably slower when more than one field is requested. This is because an extry query
is required for each term that is found.
fields
- The indexed field names.
TermDocCount
Object for all terms in the index under the given
fields.TermDocCount
public int getTermFrequency(String term)
term
- The term.
public int getTermFrequency(String field, String term)
field
- The field.term
- The term.
public boolean addDoc(org.apache.lucene.document.Document doc)
doc
- The Document to add.
public boolean addDoc(org.apache.lucene.document.Document doc, boolean block)
doc
- The Document to add.block
- Indicates whether to block other updates until complete.
public boolean addDocs(org.apache.lucene.document.Document[] docs)
docs
- The Documents to add.
public boolean addDocs(org.apache.lucene.document.Document[] docs, boolean block)
docs
- The Documents to add.block
- Indicates whether to block other updates until complete.
public boolean removeDocs(String field, String value)
field
- The field that is searched.value
- The term that is matched for deletes.
public boolean removeDocs(String field, String value, boolean block)
removeDocs(String,String)
for description. Adds the ability to control whether blocking
occurs during the update.
field
- The field that is searched.value
- The term that is matched for deletes.block
- Indicates whether or not to block other update operations.
public boolean removeDocs(String field, String[] values)
field
- The field that is searched.values
- The terms that are matched for deletes.
public boolean update(String deleteField, String[] deleteValues, org.apache.lucene.document.Document[] addDocs, boolean block)
deleteValues
in the field deleteField,
then adding the documents in addDocs
. Assuming the
deleteField
contains a unique ID for the Document, the Document may be removed by indicating
the ID in the deleteValues
list. To replace an entry in the index for a single item, supply
the item's ID in the deleteValues
list and supply the new Document for the item in the
addDocs
list.
deleteField
- The field searched for deleteValues
.deleteValues
- The value matched in deleteField
to indicate which document(s) to
delete.addDocs
- An array of Documents to add to the indexblock
- Indicates whether or not to block other threads or JVMs from read/write from the
index during the delete/add operation.
public boolean update(String deleteField, String[] deleteValues, org.apache.lucene.document.Document[] addDocs)
deleteValues
in the field deleteField,
then adding the documents in addDocs
. See update(String, String[], Document[], boolean)
for description. Performs an update with blocking on.
deleteField
- The field searched for deleteValues
.deleteValues
- Array of Strings containing the value matched in deleteField
to
indicate which document(s) to deleteaddDocs
- Array containing Documents to add to the index
public boolean update(String deleteField, String deleteValue, org.apache.lucene.document.Document[] addDocs, boolean block)
update(String, String[], Document[], boolean)
for description.
deleteField
- The field searched for deleteValue
.deleteValue
- Matching docs are deleted.addDocs
- These Docs are added to the indexblock
- Block or run in background.
public boolean update(String deleteField, String deleteValue, org.apache.lucene.document.Document addDoc, boolean block)
update(String, String[], Document[], boolean)
for description.
deleteField
- The field searched for deleteValue
.deleteValue
- Matching docs are deleted.addDoc
- The Doc to be added to the indexblock
- Block or run in background.
public boolean update(String deleteField, String deleteValue, ArrayList addDocs, boolean block)
update(String, String[], Document[], boolean)
for description.
deleteField
- The field searched for deleteValue
.deleteValue
- Matching docs are deleted.addDocs
- These Docs are added to the indexblock
- Block or run in background.
public boolean update(String deleteField, ArrayList deleteValues, ArrayList addDocs, boolean block)
deleteValues
in the field deleteField,
then adding the documents in addDocs
. See update(String, String[], Document[], boolean)
for description.
deleteField
- The field searched for deleteValues
.deleteValues
- ArrayList of Strings containing the value matched in deleteField
to
indicate which document(s) to deleteaddDocs
- An ArrayList containing Documents to add to the indexblock
- Indicates whether or not to block other threads or JVMs from read/write from the
index during the delete/add operation.
public boolean update(String deleteField, ArrayList deleteValues, ArrayList addDocs)
deleteValues
in the field deleteField,
then adding the documents in addDocs
. See update(String, String[], Document[], boolean)
for description. Performs an update with blocking on.
deleteField
- The field searched for deleteValues
.deleteValues
- ArrayList of Strings containing the value matched in deleteField
to
indicate which document(s) to deleteaddDocs
- An ArrayList containing Documents to add to the index
public long getLastModifiedCount()
public org.apache.lucene.document.Document getDocument(int n)
n
- The document number
public boolean isIndexing()
stopIndexing()
public void stopIndexing()
isIndexing()
public final org.apache.lucene.analysis.Analyzer getAnalyzer()
public void close()
protected void finalize()
finalize
in class Object
public static final String escape(String term)
term
- The original String
QueryParser.escape(String)
public static final String escape(String term, String preserveChars)
term
- The original StringpreserveChars
- List of characters NOT to escape
QueryParser.escape(String)
public static final String encodeToTerm(String s)
Specifically: each letter or number character is left unchanded. All other characters are encoded as the letter 'x' followed by the integer value of the character, for example '@' is encoded as 'x64'.
s
- The string to encode.
public static final String encodeToTerm(String s, boolean encodeWildCards)
Specifically: each letter or number character is left unchanded. All other characters are encoded as the letter 'x' followed by the integer value of the character, for example '@' is encoded as 'x64'.
s
- The string to encode.encodeWildCards
- True to have the '*' char encoded, false to leave it un-encoded.
public static final String encodeToTerm(String s, boolean encodeWildCards, boolean encodeSpace)
Specifically: each letter or number character is left unchanded. All other characters are encoded as the letter 'x' followed by the integer value of the character, for example '@' is encoded as 'x64'.
s
- The string to encode.encodeWildCards
- True to have the '*' char encoded, false to leave it un-encoded.encodeSpace
- True to have the space ' ' char encoded, false to leave it un-encoded.
public static org.apache.lucene.util.Version getLuceneVersion()
public static final String getDateStamp()
public static void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |