org.elasticsearch.common.lucene
Class Lucene
java.lang.Object
org.elasticsearch.common.lucene.Lucene
public class Lucene
- extends Object
Method Summary |
static long |
count(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query)
|
static int |
docId(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
|
static org.apache.lucene.index.SegmentInfo |
getSegmentInfo(org.apache.lucene.index.SegmentReader reader)
|
static org.apache.lucene.util.Version |
parseVersion(String version,
org.apache.lucene.util.Version defaultVersion,
ESLogger logger)
|
static org.apache.lucene.search.Explanation |
readExplanation(StreamInput in)
|
static org.apache.lucene.search.TopDocs |
readTopDocs(StreamInput in)
|
static boolean |
safeClose(org.apache.lucene.index.IndexWriter writer)
Closes the index writer, returning false if it failed to close. |
static void |
writeExplanation(StreamOutput out,
org.apache.lucene.search.Explanation explanation)
|
static void |
writeTopDocs(StreamOutput out,
org.apache.lucene.search.TopDocs topDocs,
int from)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final org.apache.lucene.util.Version VERSION
ANALYZER_VERSION
public static final org.apache.lucene.util.Version ANALYZER_VERSION
QUERYPARSER_VERSION
public static final org.apache.lucene.util.Version QUERYPARSER_VERSION
STANDARD_ANALYZER
public static final NamedAnalyzer STANDARD_ANALYZER
KEYWORD_ANALYZER
public static final NamedAnalyzer KEYWORD_ANALYZER
NO_DOC
public static final int NO_DOC
- See Also:
- Constant Field Values
EMPTY_SCORE_DOCS
public static org.apache.lucene.search.ScoreDoc[] EMPTY_SCORE_DOCS
BATCH_ENUM_DOCS
public static final int BATCH_ENUM_DOCS
- See Also:
- Constant Field Values
parseVersion
public static org.apache.lucene.util.Version parseVersion(@Nullable
String version,
org.apache.lucene.util.Version defaultVersion,
ESLogger logger)
count
public static long count(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query)
throws IOException
- Throws:
IOException
docId
public static int docId(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
throws IOException
- Throws:
IOException
safeClose
public static boolean safeClose(org.apache.lucene.index.IndexWriter writer)
- Closes the index writer, returning false if it failed to close.
readTopDocs
public static org.apache.lucene.search.TopDocs readTopDocs(StreamInput in)
throws IOException
- Throws:
IOException
writeTopDocs
public static void writeTopDocs(StreamOutput out,
org.apache.lucene.search.TopDocs topDocs,
int from)
throws IOException
- Throws:
IOException
readExplanation
public static org.apache.lucene.search.Explanation readExplanation(StreamInput in)
throws IOException
- Throws:
IOException
writeExplanation
public static void writeExplanation(StreamOutput out,
org.apache.lucene.search.Explanation explanation)
throws IOException
- Throws:
IOException
getSegmentInfo
public static org.apache.lucene.index.SegmentInfo getSegmentInfo(org.apache.lucene.index.SegmentReader reader)
Copyright © 2009-2012. All Rights Reserved.