Modifier and Type | Field and Description |
---|---|
static double |
NO_NORMALIZING |
Constructor and Description |
---|
LuceneIterable(org.apache.lucene.index.IndexReader reader,
String idField,
String field,
TermInfo terminfo,
Weight weight) |
LuceneIterable(org.apache.lucene.index.IndexReader indexReader,
String idField,
String field,
TermInfo terminfo,
Weight weight,
double normPower) |
LuceneIterable(org.apache.lucene.index.IndexReader indexReader,
String idField,
String field,
TermInfo terminfo,
Weight weight,
double normPower,
double maxPercentErrorDocs)
Produce a LuceneIterable that can create the Vector plus normalize it.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Vector> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final double NO_NORMALIZING
public LuceneIterable(org.apache.lucene.index.IndexReader reader, String idField, String field, TermInfo terminfo, Weight weight)
public LuceneIterable(org.apache.lucene.index.IndexReader indexReader, String idField, String field, TermInfo terminfo, Weight weight, double normPower)
public LuceneIterable(org.apache.lucene.index.IndexReader indexReader, String idField, String field, TermInfo terminfo, Weight weight, double normPower, double maxPercentErrorDocs)
indexReader
- IndexReader
to read the documents from.idField
- field containing the id. May be null.field
- field to use for the VectornormPower
- the normalization value. Must be nonnegative, or NO_NORMALIZING
maxPercentErrorDocs
- the percentage of documents in the lucene index that can have a null term vectorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.