Package-level declarations

Types

Link copied to clipboard
open class BinaryDocValuesField(name: String, value: BytesRef?) : Field

Field that stores a per-document BytesRef value.

Link copied to clipboard

An indexed binary field for fast range filters. If you also need to store the value, you should add a separate StoredField instance.

Link copied to clipboard
class BinaryRangeDocValues(in: BinaryDocValues, numDims: Int, numBytesPerDimension: Int) : BinaryDocValues

A binary representation of a range that wraps a BinaryDocValues field

Link copied to clipboard
abstract class BinaryRangeDocValuesField(val field: String, val packedValue: ByteArray, val numDims: Int, val numBytesPerDimension: Int) : BinaryDocValuesField
Link copied to clipboard
abstract class BinaryRangeFieldRangeQuery(field: String, queryPackedValue: ByteArray, numBytesPerDimension: Int, numDims: Int, queryType: RangeFieldQuery.QueryType) : Query
Link copied to clipboard
object DateTools

Provides support for converting dates to strings and vice-versa. The strings are structured so that lexicographic sorting orders them by date, which makes them suitable for use as field values and search terms.

Link copied to clipboard

Documents are the unit of indexing and search.

Link copied to clipboard

A StoredFieldVisitor that creates a Document from stored fields.

Link copied to clipboard

Syntactic sugar for encoding doubles as NumericDocValues via Double.doubleToRawLongBits.

Link copied to clipboard
class DoubleField(name: String, value: Double, stored: Field.Store) : Field

Field that stores a per-document double value for scoring, sorting or value retrieval and index the field for fast range filters. If you need more fine-grained control you can use DoublePoint, DoubleDocValuesField and StoredField.

Link copied to clipboard
class DoublePoint(name: String, point: Double) : Field

An indexed double field for fast range filters. If you also need to store the value, you should add a separate StoredField instance.

Link copied to clipboard
class DoubleRange(name: String, min: DoubleArray, max: DoubleArray) : Field

An indexed Double Range field.

Link copied to clipboard

DocValues field for DoubleRange. This is a single valued field i.e. can have only one value per document due to being an extension of BinaryDocValuesField.

Link copied to clipboard
class FeatureField(fieldName: String, featureName: String, featureValue: Float, storeTermVectors: Boolean = false) : Field

Field that can be used to store static scoring factors into documents. This is mostly inspired from the work from Nick Craswell, Stephen Robertson, Hugo Zaragoza and Michael Taylor. Relevance weighting for query independent evidence. Proceedings of the 28th annual international ACM SIGIR conference on Research and development in information retrieval. August 15-19, 2005, Salvador, Brazil.

Link copied to clipboard
open class Field : IndexableField

Expert: directly create a field for a document. Most users should use one of the sugar subclasses:

Link copied to clipboard

Describes the properties of a field.

Link copied to clipboard

Syntactic sugar for encoding floats as NumericDocValues via Float.floatToRawIntBits.

Link copied to clipboard
class FloatField(name: String, value: Float, stored: Field.Store) : Field

Field that stores a per-document float value for scoring, sorting or value retrieval and index the field for fast range filters. If you need more fine-grained control you can use FloatPoint, FloatDocValuesField and StoredField.

Link copied to clipboard
class FloatPoint(name: String, point: Float) : Field

An indexed float field for fast range filters. If you also need to store the value, you should add a separate StoredField instance.

Link copied to clipboard
class FloatRange(name: String, min: FloatArray, max: FloatArray) : Field

An indexed Float Range field.

Link copied to clipboard

DocValues field for FloatRange. This is a single valued field per document due to being an extension of BinaryDocValuesField.

Link copied to clipboard
class InetAddressPoint(name: String, point: InetAddress) : Field

An indexed 128-bit InetAddress field.

Link copied to clipboard

Create a new InetAddressRange from min/max value

Link copied to clipboard
class IntField(name: String, value: Int, stored: Field.Store) : Field

Field that stores a per-document int value for scoring, sorting or value retrieval and index the field for fast range filters. If you need more fine-grained control you can use IntPoint, NumericDocValuesField or SortedNumericDocValuesField, and StoredField.

Link copied to clipboard
class IntPoint(name: String, point: Int) : Field

An indexed int field for fast range filters. If you also need to store the value, you should add a separate StoredField instance.

Link copied to clipboard
class IntRange(name: String, min: IntArray, max: IntArray) : Field

An indexed Integer Range field.

Link copied to clipboard

DocValues field for IntRange. This is a single valued field per document due to being an extension of BinaryDocValuesField.

Link copied to clipboard

Describes how an IndexableField should be inverted for indexing terms and postings.

Link copied to clipboard

Field that indexes a per-document String or BytesRef into an inverted index for fast filtering, stores values in a columnar fashion using DocValuesType.SORTED_SET doc values for sorting and faceting, and optionally stores values as stored fields for top-hits retrieval. This field does not support scoring: queries produce constant scores. If you need more fine-grained control you can use StringField, SortedDocValuesField or [ ], and StoredField.

Link copied to clipboard

A field that contains a single byte numeric vector (or none) for each document. Vectors are dense

Link copied to clipboard

A field that contains a single floating-point numeric vector (or none) for each document. Vectors are dense - that is, every dimension of a vector contains an explicit value, stored packed into an array (of type float[]) whose length is the vector dimension. Values can be retrieved using FloatVectorValues, which is a forward-only docID-based iterator and also offers random-access by dense ordinal (not docId). VectorSimilarityFunction may be used to compare vectors at query time (for example as part of result ranking). A [ ] may be associated with a search similarity function defining the metric used for nearest-neighbor search among vectors of that field.

Link copied to clipboard
class LatLonDocValuesField(name: String, latitude: Double, longitude: Double) : Field

An per-document location field.

Link copied to clipboard
class LatLonPoint(name: String, latitude: Double, longitude: Double) : Field

An indexed location field.

Link copied to clipboard

A geo shape utility class for indexing and searching GIS geometries whose vertices are latitude, longitude values (in decimal degrees).

Link copied to clipboard

A concrete implementation of ShapeDocValues for storing binary doc value representation of LatLonShape geometries in a LatLonShapeDocValuesField.

Link copied to clipboard

Concrete implementation of a ShapeDocValuesField for geographic geometries.

Link copied to clipboard
class LongField(name: String, value: Long, stored: Field.Store) : Field

Field that stores a per-document long value for scoring, sorting or value retrieval and index the field for fast range filters. If you need more fine-grained control you can use LongPoint, NumericDocValuesField or SortedNumericDocValuesField, and StoredField.

Link copied to clipboard
class LongPoint(name: String, point: Long) : Field

An indexed long field for fast range filters. If you also need to store the value, you should add a separate StoredField instance.

Link copied to clipboard
class LongRange(name: String, min: LongArray, max: LongArray) : Field

An indexed Long Range field.

Link copied to clipboard

DocValues field for LongRange. This is a single valued field per document due to being an extension of BinaryDocValuesField.

Link copied to clipboard
open class NumericDocValuesField(name: String, value: Long?, fieldType: FieldType) : Field

Field that stores a per-document long value for scoring, sorting or value retrieval. Here's an example usage:

Link copied to clipboard
abstract class RangeFieldQuery : Query

Query class for searching RangeField types by a defined Relation.

Link copied to clipboard
abstract class ShapeDocValues

A binary doc values format representation for LatLonShape and XYShape.

Link copied to clipboard
abstract class ShapeDocValuesField(name: String, shapeDocValues: ShapeDocValues) : Field

A doc values field for LatLonShape and XYShape that uses ShapeDocValues as the underlying binary doc value format.

Link copied to clipboard
object ShapeField

A base shape utility class used for both LatLon (spherical) and XY (cartesian) shape fields.

Link copied to clipboard

Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:

Link copied to clipboard

Field that stores a per-document long values for scoring, sorting or value retrieval. Here's an example usage:

Link copied to clipboard

Field that stores a set of per-document BytesRef values, indexed for faceting,grouping,joining. Here's an example usage:

Link copied to clipboard

A field whose value is stored so that IndexSearcher.storedFields and IndexReader.storedFields will return the field and its value.

Link copied to clipboard

Abstraction around a stored value.

Link copied to clipboard

A field that is indexed but not tokenized, indexing the entire string as a single token. This is a simplified port of Lucene's StringField.

Link copied to clipboard

A field that is indexed and tokenized, without term vectors. For example this would be used on a 'body' field, that contains the bulk of a document's text.

Link copied to clipboard
class XYDocValuesField(name: String, x: Float, y: Float) : Field

An per-document location field.

Link copied to clipboard
Link copied to clipboard
class XYPointField(name: String, x: Float, y: Float) : Field

An indexed XY position field.

Link copied to clipboard
object XYShape

A cartesian shape utility class for indexing and searching geometries whose vertices are unitless x, y values.

Link copied to clipboard

A concrete implementation of ShapeDocValues for storing binary doc value representation of XYShape geometries in a XYShapeDocValuesField

Link copied to clipboard

Concrete implementation of a ShapeDocValuesField for cartesian geometries.