* Do not show objects in status "pending" on the UI #784 * Fix peeringdb.js bug introduced in #784 * 500 Error during login for 2FA enabled accounts with unverified email address #996 * Django-Admin: adding a network with existing asn fails with internal error #1035 * Some command-line-tool executions are not logged #1119 * Ops: API throttling of repeated requests #1126 * Ops: response header X-Auth-ID to augment logging #1120 * Allow rate-limiting of melissa enabled api functionality. #1124 * State / Province normalization #1079 * Log melissa requests #1122 * remove debug messages * bump django-handleref to 1.0.2 * Need consolidated app logs #845 * pin django peeringdb to 2.13 and relock poetry * pin django-restframework-apikey to 2.1.0 * linting * migrations * docs regenerate * docs * linting Co-authored-by: David Poarch <dpoarch@20c.com> Co-authored-by: Stefan Pratter <stefan@20c.com>
3.7 KiB
Generated from search_indexes.py on 2022-04-12 16:41:02.631987
peeringdb_server.search_indexes
Defines django-haystack search indexes.
Classes
EntityIndex
EntityIndex(haystack.indexes.SearchIndex)
Search index for org, net, ix and fac entities.
Methods
build_queryset
def build_queryset(self, using=None, start_date=None, end_date=None)
Get the default QuerySet to index when doing an index update.
Subclasses can override this method to take into account related model modification times.
The default is to use SearchIndex.index_queryset and filter
based on SearchIndex.get_updated_field
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
get_updated_field
def get_updated_field(self)
Use this field to determine object age. This is required for the --age parameter to function in the update_index command.
prepare
def prepare(self, obj)
Fetches and adds/alters data before indexing.
FacilityIndex
FacilityIndex(peeringdb_server.search_indexes.MainEntity, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
IXLanPrefixIndex
IXLanPrefixIndex(peeringdb_server.search_indexes.EntityIndex, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
InternetExchangeIndex
InternetExchangeIndex(peeringdb_server.search_indexes.MainEntity, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
MainEntity
MainEntity(peeringdb_server.search_indexes.EntityIndex)
Search index for org, net, ix and fac entities.
Methods
prepare
def prepare(self, obj)
Fetches and adds/alters data before indexing.
NetworkIXLanIndex
NetworkIXLanIndex(peeringdb_server.search_indexes.EntityIndex, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
NetworkIndex
NetworkIndex(peeringdb_server.search_indexes.MainEntity, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.
OrganizationIndex
OrganizationIndex(peeringdb_server.search_indexes.MainEntity, haystack.constants.Indexable)
Search index for org, net, ix and fac entities.
Methods
get_model
def get_model(self)
Should return the Model class (not an instance) that the rest of the
SearchIndex should use.
This method is required & you must override it to return the correct class.