org.elasticsearch.common.lucene
Class Lucene
java.lang.Object
org.elasticsearch.common.lucene.Lucene
public class Lucene
- extends java.lang.Object
Method Summary |
static long |
count(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query,
float minScore)
|
static int |
docId(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
|
static org.elasticsearch.common.trove.TIntArrayList |
docIds(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term,
int expectedSize)
|
static org.apache.lucene.search.Explanation |
readExplanation(StreamInput in)
|
static java.lang.Object |
readFieldValue(StreamInput in)
|
static org.apache.lucene.search.TopDocs |
readTopDocs(StreamInput in)
|
static boolean |
safeClose(org.apache.lucene.index.IndexReader reader)
Closes the index reader, returning false if it failed to close. |
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 |
writeFieldValue(StreamOutput out,
java.lang.Object value)
|
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 org.apache.lucene.util.Version VERSION
ANALYZER_VERSION
public static org.apache.lucene.util.Version ANALYZER_VERSION
QUERYPARSER_VERSION
public static 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
count
public static long count(org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query,
float minScore)
throws java.io.IOException
- Throws:
java.io.IOException
docId
public static int docId(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
throws java.io.IOException
- Throws:
java.io.IOException
docIds
public static org.elasticsearch.common.trove.TIntArrayList docIds(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term,
int expectedSize)
throws java.io.IOException
- Throws:
java.io.IOException
safeClose
public static boolean safeClose(org.apache.lucene.index.IndexReader reader)
- Closes the index reader, returning false if it failed to close.
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 java.io.IOException
- Throws:
java.io.IOException
writeTopDocs
public static void writeTopDocs(StreamOutput out,
org.apache.lucene.search.TopDocs topDocs,
int from)
throws java.io.IOException
- Throws:
java.io.IOException
readExplanation
public static org.apache.lucene.search.Explanation readExplanation(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
writeExplanation
public static void writeExplanation(StreamOutput out,
org.apache.lucene.search.Explanation explanation)
throws java.io.IOException
- Throws:
java.io.IOException
readFieldValue
public static java.lang.Object readFieldValue(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
writeFieldValue
public static void writeFieldValue(StreamOutput out,
java.lang.Object value)
throws java.io.IOException
- Throws:
java.io.IOException