search.Reindexing
Model Info
Key |
Value |
---|---|
Model Name |
Reindexing |
Verbose Name |
reindexing |
Verbose Name Plural |
reindexings |
Docstring |
Reindexing(id, start_date, old_index, new_index, alias) |
Is Abstract |
False |
Is Proxy |
False |
Is Managed |
True |
Ordering |
[] |
Permissions |
[] |
Default Permissions |
(‘add’, ‘change’, ‘delete’, ‘view’) |
Indexes |
[] |
Constraints |
[] |
Database Table |
zadmin_reindexing |
Base Manager |
None |
Default Manager |
None |
File |
/data/olympia/src/olympia/search/models.py |
Starting Line Number |
39 |
Method Resolution Order |
(<class ‘olympia.search.models.Reindexing’>, <class ‘django.db.models.base.Model’>, <class ‘django.db.models.utils.AltersData’>, <class ‘object’>) |
Fields
Field Name |
Field Type |
Database Column |
Database Type |
Verbose Name |
---|---|---|---|---|
|
CharField |
alias |
varchar(255) |
alias |
|
AutoField |
id |
integer AUTO_INCREMENT |
ID |
|
CharField |
new_index |
varchar(255) |
new index |
|
CharField |
old_index |
varchar(255) |
old index |
|
DateTimeField |
start_date |
datetime(6) |
start date |
fields_reverse_relation=[]
Methods
Other Methods
Method Name |
Signature |
---|---|
|
|
|
|
Private Methods
Method Name |
Signature |
---|---|
|
|
Custom Managers
default
Class: ReindexingManager
Used to flag when an elasticsearch reindexing is occurring.
Custom Methods
flag_reindexing(self, new_index, old_index, alias)
Flag the database for a reindex
get_indices(self, index)
*Return the indices associated with an alias.
If we are reindexing, there should be two indices returned.*
is_reindexing(self)
Return True if a reindexing is occurring.
unflag_reindexing(self)
Unflag the database for a reindex.
objects
Class: ReindexingManager
Used to flag when an elasticsearch reindexing is occurring.
Custom Methods
flag_reindexing(self, new_index, old_index, alias)
Flag the database for a reindex
get_indices(self, index)
*Return the indices associated with an alias.
If we are reindexing, there should be two indices returned.*
is_reindexing(self)
Return True if a reindexing is occurring.
unflag_reindexing(self)
Unflag the database for a reindex.
!!! THIS DOCUMENT WAS AUTOGENERATED ON 2025-07-11 !!!