django-opensearch-dsl

django-opensearch-dsl

May 25, 2024 | seedling, permanent

tags :

Django App to index Django Model in OpenSearch #

Supported Data Types #

github code ref

DODField #

“““Field allowing to retrieve a value from a `Model` instance.”””

ObjectField #

“““Allow indexing of `OneToOneRel`, `OneToOneField` or `ForeignKey`.”””

ListField #

“““Wrap a field so that its value is iterated over.”””

BooleanField #

“““Allow indexing of `bool`.”””

ByteField #

“““Allow indexing of byte.

Should be used for integer with a minimum value of -128 and a maximum value of 127. "””

CompletionField #

“““Used for auto-complete suggestions.”””

DateField #

“““Allow indexing of date and timestamp.”””

DoubleField #

“““Allow indexing of double.

Should be used for double-precision 64-bit IEEE 754 floating point number, restricted to finite values. "””

FloatField #

“““Allow indexing of float.

Should be used for single-precision 32-bit IEEE 754 floating point number, restricted to finite values. "””

ScaledFloatField #

“““Allow indexing of scaled float.

Should be used for floating point number that is backed by a long, scaled by a fixed double scaling factor. . "””

GeoPointField #

“““Allow indexing of latitude and longitude points.”””

GeoShapeField #

“““Allow indexing of complex shapes, such as polygons.”””

IntegerField #

“““Allow indexing of integer.

Should be used for integer with a minimum value of -2^31 and a maximum value of 2^31 - 1. "””

IpField #

“““Allow indexing of IPv4 and IPv6 addresses.”””

LongField #

“““Allow indexing of long.

Should be used for integer with a minimum value of -2^63 and a maximum value of 2^63 - 1. "””

NestedField #

“““Allow indexing of ManyToOneRel, ManyToManyField or ManyToManyRel.”””

ShortField #

“““Allow indexing or long.

Should be used for integer with a minimum value of -32768 and a maximum value of 32767. "””

KeywordField #

“““Allow indexing of structured text (ID, zip codes, tags, …).”””

TextField #

“““Allow indexing of unstructured text.”””

SearchAsYouTypeField #

“““Allow indexing of text-like type for as-you-type completion.”””

FileFieldMixin #

“““Mixin allowing the indexing of Django `FileField`.”””

FileField #

“““Index the URL associated with a Django `FileField`.”””

Code #

github code


Links to this note

Go to random page

Previous Next