codex 1.6.19__py3-none-any.whl → 1.7.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/db.py +119 -0
- codex/librarian/covers/purge.py +1 -1
- codex/librarian/importer/const.py +7 -1
- codex/librarian/importer/create_fks.py +5 -2
- codex/librarian/importer/importerd.py +17 -12
- codex/librarian/importer/moved.py +44 -13
- codex/librarian/importer/tasks.py +2 -0
- codex/librarian/janitor/cleanup.py +21 -8
- codex/librarian/janitor/integrity.py +369 -0
- codex/librarian/janitor/janitor.py +50 -15
- codex/librarian/janitor/latest_version.py +2 -1
- codex/librarian/janitor/status.py +5 -0
- codex/librarian/janitor/tasks.py +37 -0
- codex/librarian/janitor/update.py +1 -1
- codex/librarian/librariand.py +32 -24
- codex/librarian/search/optimize.py +43 -0
- codex/librarian/search/remove.py +18 -46
- codex/librarian/search/searchd.py +14 -17
- codex/librarian/search/status.py +2 -1
- codex/librarian/search/tasks.py +4 -9
- codex/librarian/search/update.py +223 -301
- codex/librarian/watchdog/observers.py +2 -1
- codex/migrations/0029_comicfts.py +58 -0
- codex/migrations/0030_nocase_collation_day_month_indexes_status_types.py +198 -0
- codex/models/admin.py +15 -6
- codex/models/base.py +9 -0
- codex/models/bookmark.py +3 -3
- codex/models/comic.py +68 -16
- codex/models/functions.py +59 -2
- codex/models/groups.py +6 -1
- codex/models/library.py +1 -3
- codex/models/paths.py +9 -3
- codex/serializers/browser/page.py +2 -0
- codex/settings/settings.py +16 -17
- codex/signals/django_signals.py +4 -10
- codex/startup.py +1 -35
- codex/static_root/assets/{VCheckbox-Cko1sQK-.170726b3b8a1.js → VCheckbox-CWiqcZ7a.3feebd47daab.js} +1 -1
- codex/static_root/assets/VCheckbox-CWiqcZ7a.3feebd47daab.js.br +0 -0
- codex/static_root/assets/VCheckbox-CWiqcZ7a.3feebd47daab.js.gz +0 -0
- codex/static_root/assets/{VCheckbox-Cko1sQK-.js → VCheckbox-CWiqcZ7a.js} +1 -1
- codex/static_root/assets/VCheckbox-CWiqcZ7a.js.br +0 -0
- codex/static_root/assets/VCheckbox-CWiqcZ7a.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js → VCheckboxBtn-Dk3iB62X.bc66d5351baa.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.bc66d5351baa.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.bc66d5351baa.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-CO3-aqQL.js → VCheckboxBtn-Dk3iB62X.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.js.gz +0 -0
- codex/static_root/assets/{VCombobox-Bjp6lffE.js → VCombobox-D1_KU27A.b1d30587a973.js} +1 -1
- codex/static_root/assets/VCombobox-D1_KU27A.b1d30587a973.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.b1d30587a973.js.gz +0 -0
- codex/static_root/assets/{VCombobox-Bjp6lffE.caf59fba486e.js → VCombobox-D1_KU27A.js} +1 -1
- codex/static_root/assets/VCombobox-D1_KU27A.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.js.gz +0 -0
- codex/static_root/assets/{VDialog-BkpVGB70.6eea3ca762a5.js → VDialog-GbxvFMMN.594fb3a39ced.js} +1 -1
- codex/static_root/assets/VDialog-GbxvFMMN.594fb3a39ced.js.br +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.594fb3a39ced.js.gz +0 -0
- codex/static_root/assets/{VDialog-BkpVGB70.js → VDialog-GbxvFMMN.js} +1 -1
- codex/static_root/assets/VDialog-GbxvFMMN.js.br +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js → VExpansionPanels-Cywv_bEj.a762e63858e5.js} +1 -1
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.a762e63858e5.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.a762e63858e5.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-Ci2-j8XX.js → VExpansionPanels-Cywv_bEj.js} +1 -1
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-D3Py5BfQ.a4f25edb86d3.js → VRadioGroup-C0etmxpZ.0eb3009a6300.js} +1 -1
- codex/static_root/assets/VRadioGroup-C0etmxpZ.0eb3009a6300.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.0eb3009a6300.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-D3Py5BfQ.js → VRadioGroup-C0etmxpZ.js} +1 -1
- codex/static_root/assets/VRadioGroup-C0etmxpZ.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.js.gz +0 -0
- codex/static_root/assets/{VSelect-DtvZsYZz.e98745d858eb.js → VSelect-txrnRiNJ.a5625760018c.js} +1 -1
- codex/static_root/assets/VSelect-txrnRiNJ.a5625760018c.js.br +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.a5625760018c.js.gz +0 -0
- codex/static_root/assets/{VSelect-DtvZsYZz.js → VSelect-txrnRiNJ.js} +1 -1
- codex/static_root/assets/VSelect-txrnRiNJ.js.br +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-D6kmykQW.1e1fda62ceba.js → VSelectionControl-CY6RmcvW.7e8824224f6c.js} +1 -1
- codex/static_root/assets/VSelectionControl-CY6RmcvW.7e8824224f6c.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.7e8824224f6c.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-D6kmykQW.js → VSelectionControl-CY6RmcvW.js} +1 -1
- codex/static_root/assets/VSelectionControl-CY6RmcvW.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-UGZWxpF5.360bdefcd215.js → VSlideGroup-DtEQMwY1.6c72325635ed.js} +1 -1
- codex/static_root/assets/VSlideGroup-DtEQMwY1.6c72325635ed.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.6c72325635ed.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-UGZWxpF5.js → VSlideGroup-DtEQMwY1.js} +1 -1
- codex/static_root/assets/VSlideGroup-DtEQMwY1.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.js.gz +0 -0
- codex/static_root/assets/{VTable-DXH_yQ0o.1149f56ad566.js → VTable-2af995xo.6c5bf36631b2.js} +1 -1
- codex/static_root/assets/VTable-2af995xo.6c5bf36631b2.js.br +0 -0
- codex/static_root/assets/VTable-2af995xo.6c5bf36631b2.js.gz +0 -0
- codex/static_root/assets/{VTable-DXH_yQ0o.js → VTable-2af995xo.js} +1 -1
- codex/static_root/assets/VTable-2af995xo.js.br +0 -0
- codex/static_root/assets/VTable-2af995xo.js.gz +0 -0
- codex/static_root/assets/{VTextField-Blqy56_L.26d8761e0155.js → VTextField-G6CMj7yO.657a130dd302.js} +1 -1
- codex/static_root/assets/VTextField-G6CMj7yO.657a130dd302.js.br +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.657a130dd302.js.gz +0 -0
- codex/static_root/assets/{VTextField-Blqy56_L.js → VTextField-G6CMj7yO.js} +1 -1
- codex/static_root/assets/VTextField-G6CMj7yO.js.br +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-C8_ovV7e.afbc08414765.js → VWindowItem-CzoGd6Ul.721e5da11ad4.js} +1 -1
- codex/static_root/assets/VWindowItem-CzoGd6Ul.721e5da11ad4.js.br +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.721e5da11ad4.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-C8_ovV7e.js → VWindowItem-CzoGd6Ul.js} +1 -1
- codex/static_root/assets/VWindowItem-CzoGd6Ul.js.br +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.js.gz +0 -0
- codex/static_root/assets/{admin-DTRn8bBs.d031ea42d8d0.js → admin-CsPAIQeG.5175467148a3.js} +1 -1
- codex/static_root/assets/admin-CsPAIQeG.5175467148a3.js.br +0 -0
- codex/static_root/assets/admin-CsPAIQeG.5175467148a3.js.gz +0 -0
- codex/static_root/assets/{admin-DTRn8bBs.js → admin-CsPAIQeG.js} +1 -1
- codex/static_root/assets/admin-CsPAIQeG.js.br +0 -0
- codex/static_root/assets/admin-CsPAIQeG.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-BaXFOcru.b1a44b05f482.js → admin-drawer-panel-BAT7GA64.73a064628c19.js} +11 -11
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.73a064628c19.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.73a064628c19.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-BaXFOcru.js → admin-drawer-panel-BAT7GA64.js} +11 -11
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.js.gz +0 -0
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js +1 -0
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js.br +0 -0
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js.gz +0 -0
- codex/static_root/assets/browser-C18l93yc.js +1 -0
- codex/static_root/assets/browser-C18l93yc.js.br +0 -0
- codex/static_root/assets/browser-C18l93yc.js.gz +0 -0
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css +1 -0
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css.br +0 -0
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css.gz +0 -0
- codex/static_root/assets/browser-DaAqlBYO.css +1 -0
- codex/static_root/assets/browser-DaAqlBYO.css.br +0 -0
- codex/static_root/assets/browser-DaAqlBYO.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js +1 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.js +1 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css +1 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css +1 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css.gz +0 -0
- codex/static_root/assets/{confirm-dialog-D3_s2DQy.9dde66036c72.js → confirm-dialog-CbW3hlOp.9dd39b443c31.js} +1 -1
- codex/static_root/assets/confirm-dialog-CbW3hlOp.9dd39b443c31.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CbW3hlOp.9dd39b443c31.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-D3_s2DQy.js → confirm-dialog-CbW3hlOp.js} +1 -1
- codex/static_root/assets/confirm-dialog-CbW3hlOp.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CbW3hlOp.js.gz +0 -0
- codex/static_root/assets/{datetime-column-BxC1Li9e.3dc314b3295d.js → datetime-column-uSqKZU37.b157b0743db5.js} +1 -1
- codex/static_root/assets/datetime-column-uSqKZU37.b157b0743db5.js.br +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.b157b0743db5.js.gz +0 -0
- codex/static_root/assets/{datetime-column-BxC1Li9e.js → datetime-column-uSqKZU37.js} +1 -1
- codex/static_root/assets/datetime-column-uSqKZU37.js.br +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.js.gz +0 -0
- codex/static_root/assets/{filter-Bzk7x841.d0c3b602e62d.js → filter-CBl5KEsB.845a81573c2e.js} +1 -1
- codex/static_root/assets/filter-CBl5KEsB.845a81573c2e.js.br +0 -0
- codex/static_root/assets/filter-CBl5KEsB.845a81573c2e.js.gz +0 -0
- codex/static_root/assets/{filter-Bzk7x841.js → filter-CBl5KEsB.js} +1 -1
- codex/static_root/assets/filter-CBl5KEsB.js.br +0 -0
- codex/static_root/assets/filter-CBl5KEsB.js.gz +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js +1 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js.br +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js.gz +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.js +1 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.js.br +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.js.gz +0 -0
- codex/static_root/assets/{group-tab-5esH4lwX.a81fdd258117.js → group-tab-BOW9kigw.7e5007596367.js} +1 -1
- codex/static_root/assets/group-tab-BOW9kigw.7e5007596367.js.br +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.7e5007596367.js.gz +0 -0
- codex/static_root/assets/{group-tab-5esH4lwX.js → group-tab-BOW9kigw.js} +1 -1
- codex/static_root/assets/group-tab-BOW9kigw.js.br +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.js.gz +0 -0
- codex/static_root/assets/{http-error-BTOBfcGY.52ced6f28420.js → http-error-C6yuLApo.45cf99eb7a70.js} +1 -1
- codex/static_root/assets/http-error-C6yuLApo.45cf99eb7a70.js.br +4 -0
- codex/static_root/assets/http-error-C6yuLApo.45cf99eb7a70.js.gz +0 -0
- codex/static_root/assets/{http-error-BTOBfcGY.js → http-error-C6yuLApo.js} +1 -1
- codex/static_root/assets/http-error-C6yuLApo.js.br +4 -0
- codex/static_root/assets/http-error-C6yuLApo.js.gz +0 -0
- codex/static_root/assets/{library-tab-DiPEdOF7.ece2d642a9dc.js → library-tab-D3WOtpE0.9af34e6e7235.js} +1 -1
- codex/static_root/assets/library-tab-D3WOtpE0.9af34e6e7235.js.br +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.9af34e6e7235.js.gz +0 -0
- codex/static_root/assets/{library-tab-DiPEdOF7.js → library-tab-D3WOtpE0.js} +1 -1
- codex/static_root/assets/library-tab-D3WOtpE0.js.br +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.js.gz +0 -0
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js +6 -0
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js.br +0 -0
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js.gz +0 -0
- codex/static_root/assets/main-CmjU2oTp.js +6 -0
- codex/static_root/assets/main-CmjU2oTp.js.br +0 -0
- codex/static_root/assets/main-CmjU2oTp.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js +1 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js +1 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-C45-onwe.4722195bb60b.css → pagination-toolbar-DGrxp2OD.css} +1 -1
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-C45-onwe.css → pagination-toolbar-DGrxp2OD.f960a624f04f.css} +1 -1
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-CkIzuyx1.00c354a82e6e.js → pagination-toolbar-JH3Kbffr.451171f7ac33.js} +1 -1
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.451171f7ac33.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.451171f7ac33.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-CkIzuyx1.js → pagination-toolbar-JH3Kbffr.js} +1 -1
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BjlRPuf4.0f056fa321b6.js → pdf-doc-BcRNpoaW.882f6e967869.js} +1 -1
- codex/static_root/assets/pdf-doc-BcRNpoaW.882f6e967869.js.br +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.882f6e967869.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BjlRPuf4.js → pdf-doc-BcRNpoaW.js} +1 -1
- codex/static_root/assets/pdf-doc-BcRNpoaW.js.br +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.js.gz +0 -0
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js +2 -0
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js.br +0 -0
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js.gz +0 -0
- codex/static_root/assets/reader-DIPRg2VB.js +2 -0
- codex/static_root/assets/reader-DIPRg2VB.js.br +0 -0
- codex/static_root/assets/reader-DIPRg2VB.js.gz +0 -0
- codex/static_root/assets/reader-DveZZr9x.7b21b9f8f628.css +1 -0
- codex/static_root/assets/reader-DveZZr9x.7b21b9f8f628.css.br +0 -0
- codex/static_root/assets/reader-DveZZr9x.7b21b9f8f628.css.gz +0 -0
- codex/static_root/assets/reader-DveZZr9x.css +1 -0
- codex/static_root/assets/reader-DveZZr9x.css.br +0 -0
- codex/static_root/assets/reader-DveZZr9x.css.gz +0 -0
- codex/static_root/assets/{relation-chips-CUSatZET.js → relation-chips-3tTlR5QH.71f18bc92adc.js} +1 -1
- codex/static_root/assets/relation-chips-3tTlR5QH.71f18bc92adc.js.br +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.71f18bc92adc.js.gz +0 -0
- codex/static_root/assets/{relation-chips-CUSatZET.a58031ff8141.js → relation-chips-3tTlR5QH.js} +1 -1
- codex/static_root/assets/relation-chips-3tTlR5QH.js.br +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BSHTAsJ9.js → settings-drawer-BdyFhA_r.151f4c3061ed.js} +2 -2
- codex/static_root/assets/settings-drawer-BdyFhA_r.151f4c3061ed.js.br +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.151f4c3061ed.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BSHTAsJ9.1d07ce084fc9.js → settings-drawer-BdyFhA_r.js} +2 -2
- codex/static_root/assets/settings-drawer-BdyFhA_r.js.br +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.js.gz +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js +1 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js.br +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js.gz +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.js +1 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.js.br +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.js.gz +0 -0
- codex/static_root/assets/{stats-tab-BXGisn5N.9b7a71e7fe28.css → stats-tab-DpfGsVX3.1cb66f2649a9.css} +1 -1
- codex/static_root/assets/stats-tab-DpfGsVX3.1cb66f2649a9.css.br +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.1cb66f2649a9.css.gz +0 -0
- codex/static_root/assets/{stats-tab-BXGisn5N.css → stats-tab-DpfGsVX3.css} +1 -1
- codex/static_root/assets/stats-tab-DpfGsVX3.css.br +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.css.gz +0 -0
- codex/static_root/assets/{task-tab-NORFAa9p.97e07e366ddd.js → task-tab-C8D0qRP_.d4ab174c69a3.js} +1 -1
- codex/static_root/assets/task-tab-C8D0qRP_.d4ab174c69a3.js.br +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.d4ab174c69a3.js.gz +0 -0
- codex/static_root/assets/{task-tab-NORFAa9p.js → task-tab-C8D0qRP_.js} +1 -1
- codex/static_root/assets/task-tab-C8D0qRP_.js.br +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.js.gz +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js +1 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js.br +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js.gz +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.js +1 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.js.br +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.js.gz +0 -0
- codex/static_root/assets/{unauthorized-muDsv-rC.css → unauthorized-BjhIc97q.728511c92cd0.css} +1 -1
- codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.br +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.gz +0 -0
- codex/static_root/assets/{unauthorized-muDsv-rC.2166ec8b3a32.css → unauthorized-BjhIc97q.css} +1 -1
- codex/static_root/assets/unauthorized-BjhIc97q.css.br +0 -0
- codex/static_root/assets/unauthorized-BjhIc97q.css.gz +0 -0
- codex/static_root/assets/{user-tab-CHbyN1EW.e7206db08680.js → user-tab-BU31Z92y.35613c713faf.js} +1 -1
- codex/static_root/assets/user-tab-BU31Z92y.35613c713faf.js.br +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.35613c713faf.js.gz +0 -0
- codex/static_root/assets/{user-tab-CHbyN1EW.js → user-tab-BU31Z92y.js} +1 -1
- codex/static_root/assets/user-tab-BU31Z92y.js.br +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.js.gz +0 -0
- codex/static_root/js/choices-admin.8aa64c911203.json +1 -0
- codex/static_root/js/choices-admin.8aa64c911203.json.br +0 -0
- codex/static_root/js/choices-admin.8aa64c911203.json.gz +0 -0
- codex/static_root/js/choices-admin.json +1 -1
- codex/static_root/js/choices-admin.json.br +0 -0
- codex/static_root/js/choices-admin.json.gz +0 -0
- codex/static_root/manifest.45cb46e19686.json +635 -0
- codex/static_root/manifest.45cb46e19686.json.br +0 -0
- codex/static_root/manifest.45cb46e19686.json.gz +0 -0
- codex/static_root/manifest.json +248 -248
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/status_controller.py +10 -4
- codex/views/admin/tasks.py +46 -40
- codex/views/auth.py +15 -4
- codex/views/browser/annotations.py +94 -51
- codex/views/browser/base.py +1 -2
- codex/views/browser/browser.py +52 -21
- codex/views/browser/cover.py +8 -4
- codex/views/browser/filters/annotations.py +28 -6
- codex/views/browser/filters/search/__init__.py +1 -0
- codex/views/browser/filters/search/aliases.py +81 -0
- codex/views/browser/filters/search/field/__init__.py +1 -0
- codex/views/browser/filters/search/field/column.py +53 -0
- codex/views/browser/filters/search/field/expression.py +177 -0
- codex/views/browser/filters/search/field/filter.py +70 -0
- codex/views/browser/filters/search/field/optimize.py +71 -0
- codex/views/browser/filters/search/field/parse.py +187 -0
- codex/views/browser/filters/search/fts.py +38 -0
- codex/views/browser/filters/search/parse.py +220 -0
- codex/views/browser/order_by.py +8 -2
- codex/views/browser/page_in_bounds.py +88 -0
- codex/views/browser/paginate.py +28 -113
- codex/views/const.py +0 -1
- codex/views/opds/v1/feed.py +2 -1
- codex/views/opds/v2/feed.py +2 -1
- codex/views/opds/v2/links.py +1 -1
- codex/views/reader/books.py +1 -1
- codex/views/reader/page.py +3 -3
- {codex-1.6.19.dist-info → codex-1.7.0a0.dist-info}/METADATA +18 -10
- {codex-1.6.19.dist-info → codex-1.7.0a0.dist-info}/RECORD +321 -372
- codex/_vendor/__init__.py +0 -0
- codex/_vendor/django_haystack-3.2.1.dist-info/AUTHORS +0 -127
- codex/_vendor/django_haystack-3.2.1.dist-info/INSTALLER +0 -1
- codex/_vendor/django_haystack-3.2.1.dist-info/LICENSE +0 -31
- codex/_vendor/django_haystack-3.2.1.dist-info/METADATA +0 -98
- codex/_vendor/django_haystack-3.2.1.dist-info/RECORD +0 -97
- codex/_vendor/django_haystack-3.2.1.dist-info/REQUESTED +0 -0
- codex/_vendor/django_haystack-3.2.1.dist-info/WHEEL +0 -5
- codex/_vendor/django_haystack-3.2.1.dist-info/top_level.txt +0 -1
- codex/_vendor/haystack/__init__.py +0 -80
- codex/_vendor/haystack/admin.py +0 -163
- codex/_vendor/haystack/apps.py +0 -31
- codex/_vendor/haystack/backends/__init__.py +0 -1109
- codex/_vendor/haystack/backends/elasticsearch2_backend.py +0 -390
- codex/_vendor/haystack/backends/elasticsearch5_backend.py +0 -483
- codex/_vendor/haystack/backends/elasticsearch7_backend.py +0 -586
- codex/_vendor/haystack/backends/elasticsearch_backend.py +0 -1141
- codex/_vendor/haystack/backends/simple_backend.py +0 -132
- codex/_vendor/haystack/backends/solr_backend.py +0 -991
- codex/_vendor/haystack/backends/whoosh_backend.py +0 -1104
- codex/_vendor/haystack/constants.py +0 -57
- codex/_vendor/haystack/exceptions.py +0 -57
- codex/_vendor/haystack/fields.py +0 -562
- codex/_vendor/haystack/forms.py +0 -135
- codex/_vendor/haystack/generic_views.py +0 -141
- codex/_vendor/haystack/indexes.py +0 -548
- codex/_vendor/haystack/inputs.py +0 -169
- codex/_vendor/haystack/management/__init__.py +0 -0
- codex/_vendor/haystack/management/commands/__init__.py +0 -0
- codex/_vendor/haystack/management/commands/build_solr_schema.py +0 -187
- codex/_vendor/haystack/management/commands/clear_index.py +0 -67
- codex/_vendor/haystack/management/commands/haystack_info.py +0 -22
- codex/_vendor/haystack/management/commands/rebuild_index.py +0 -65
- codex/_vendor/haystack/management/commands/update_index.py +0 -438
- codex/_vendor/haystack/manager.py +0 -105
- codex/_vendor/haystack/models.py +0 -257
- codex/_vendor/haystack/panels.py +0 -89
- codex/_vendor/haystack/query.py +0 -771
- codex/_vendor/haystack/routers.py +0 -14
- codex/_vendor/haystack/signals.py +0 -88
- codex/_vendor/haystack/templates/panels/haystack.html +0 -33
- codex/_vendor/haystack/templates/search_configuration/schema.xml +0 -1056
- codex/_vendor/haystack/templates/search_configuration/solrconfig.xml +0 -1446
- codex/_vendor/haystack/templatetags/__init__.py +0 -0
- codex/_vendor/haystack/templatetags/highlight.py +0 -131
- codex/_vendor/haystack/templatetags/more_like_this.py +0 -119
- codex/_vendor/haystack/urls.py +0 -5
- codex/_vendor/haystack/utils/__init__.py +0 -84
- codex/_vendor/haystack/utils/app_loading.py +0 -34
- codex/_vendor/haystack/utils/geo.py +0 -71
- codex/_vendor/haystack/utils/highlighting.py +0 -165
- codex/_vendor/haystack/utils/loading.py +0 -374
- codex/_vendor/haystack/utils/log.py +0 -21
- codex/_vendor/haystack/version.py +0 -16
- codex/_vendor/haystack/views.py +0 -253
- codex/integrity.py +0 -492
- codex/librarian/search/merge.py +0 -86
- codex/librarian/search/version.py +0 -63
- codex/search/__init__.py +0 -1
- codex/search/backend.py +0 -524
- codex/search/backend_search.py +0 -229
- codex/search/engine.py +0 -33
- codex/search/indexes.py +0 -79
- codex/search/query.py +0 -67
- codex/search/writing.py +0 -180
- codex/static_root/assets/VCheckbox-Cko1sQK-.170726b3b8a1.js.br +0 -0
- codex/static_root/assets/VCheckbox-Cko1sQK-.170726b3b8a1.js.gz +0 -0
- codex/static_root/assets/VCheckbox-Cko1sQK-.js.br +0 -0
- codex/static_root/assets/VCheckbox-Cko1sQK-.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CO3-aqQL.c9b8062fd66f.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-CO3-aqQL.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CO3-aqQL.js.gz +0 -0
- codex/static_root/assets/VCombobox-Bjp6lffE.caf59fba486e.js.br +0 -0
- codex/static_root/assets/VCombobox-Bjp6lffE.caf59fba486e.js.gz +0 -0
- codex/static_root/assets/VCombobox-Bjp6lffE.js.br +0 -0
- codex/static_root/assets/VCombobox-Bjp6lffE.js.gz +0 -0
- codex/static_root/assets/VDialog-BkpVGB70.6eea3ca762a5.js.br +0 -0
- codex/static_root/assets/VDialog-BkpVGB70.6eea3ca762a5.js.gz +0 -0
- codex/static_root/assets/VDialog-BkpVGB70.js.br +0 -0
- codex/static_root/assets/VDialog-BkpVGB70.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Ci2-j8XX.9c55db4ef49e.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Ci2-j8XX.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Ci2-j8XX.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-D3Py5BfQ.a4f25edb86d3.js.br +0 -0
- codex/static_root/assets/VRadioGroup-D3Py5BfQ.a4f25edb86d3.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-D3Py5BfQ.js.br +0 -0
- codex/static_root/assets/VRadioGroup-D3Py5BfQ.js.gz +0 -0
- codex/static_root/assets/VSelect-DtvZsYZz.e98745d858eb.js.br +0 -0
- codex/static_root/assets/VSelect-DtvZsYZz.e98745d858eb.js.gz +0 -0
- codex/static_root/assets/VSelect-DtvZsYZz.js.br +0 -0
- codex/static_root/assets/VSelect-DtvZsYZz.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-D6kmykQW.1e1fda62ceba.js.br +0 -0
- codex/static_root/assets/VSelectionControl-D6kmykQW.1e1fda62ceba.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-D6kmykQW.js.br +0 -0
- codex/static_root/assets/VSelectionControl-D6kmykQW.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-UGZWxpF5.360bdefcd215.js.br +0 -0
- codex/static_root/assets/VSlideGroup-UGZWxpF5.360bdefcd215.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-UGZWxpF5.js.br +0 -0
- codex/static_root/assets/VSlideGroup-UGZWxpF5.js.gz +0 -0
- codex/static_root/assets/VTable-DXH_yQ0o.1149f56ad566.js.br +0 -0
- codex/static_root/assets/VTable-DXH_yQ0o.1149f56ad566.js.gz +0 -0
- codex/static_root/assets/VTable-DXH_yQ0o.js.br +0 -0
- codex/static_root/assets/VTable-DXH_yQ0o.js.gz +0 -0
- codex/static_root/assets/VTextField-Blqy56_L.26d8761e0155.js.br +0 -0
- codex/static_root/assets/VTextField-Blqy56_L.26d8761e0155.js.gz +0 -0
- codex/static_root/assets/VTextField-Blqy56_L.js.br +0 -0
- codex/static_root/assets/VTextField-Blqy56_L.js.gz +0 -0
- codex/static_root/assets/VWindowItem-C8_ovV7e.afbc08414765.js.br +0 -0
- codex/static_root/assets/VWindowItem-C8_ovV7e.afbc08414765.js.gz +0 -0
- codex/static_root/assets/VWindowItem-C8_ovV7e.js.br +0 -0
- codex/static_root/assets/VWindowItem-C8_ovV7e.js.gz +0 -0
- codex/static_root/assets/admin-DTRn8bBs.d031ea42d8d0.js.br +0 -0
- codex/static_root/assets/admin-DTRn8bBs.d031ea42d8d0.js.gz +0 -0
- codex/static_root/assets/admin-DTRn8bBs.js.br +0 -0
- codex/static_root/assets/admin-DTRn8bBs.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BaXFOcru.b1a44b05f482.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BaXFOcru.b1a44b05f482.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BaXFOcru.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BaXFOcru.js.gz +0 -0
- codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js +0 -1
- codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js.br +0 -0
- codex/static_root/assets/browser-BBpUyGmz.c1cb9e2d463b.js.gz +0 -0
- codex/static_root/assets/browser-BBpUyGmz.js +0 -1
- codex/static_root/assets/browser-BBpUyGmz.js.br +0 -0
- codex/static_root/assets/browser-BBpUyGmz.js.gz +0 -0
- codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css +0 -1
- codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.br +0 -0
- codex/static_root/assets/browser-Binc3n9H.313722d27ca3.css.gz +0 -0
- codex/static_root/assets/browser-Binc3n9H.css +0 -1
- codex/static_root/assets/browser-Binc3n9H.css.br +0 -0
- codex/static_root/assets/browser-Binc3n9H.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css +0 -1
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.aff2975e31f8.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.css +0 -1
- codex/static_root/assets/change-password-dialog-Cebek1-c.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Cebek1-c.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js +0 -1
- codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DlHoLhDF.76ab4a29bb9b.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DlHoLhDF.js +0 -1
- codex/static_root/assets/change-password-dialog-DlHoLhDF.js.br +0 -0
- codex/static_root/assets/change-password-dialog-DlHoLhDF.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-D3_s2DQy.9dde66036c72.js.br +0 -0
- codex/static_root/assets/confirm-dialog-D3_s2DQy.9dde66036c72.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-D3_s2DQy.js.br +0 -0
- codex/static_root/assets/confirm-dialog-D3_s2DQy.js.gz +0 -0
- codex/static_root/assets/datetime-column-BxC1Li9e.3dc314b3295d.js.br +0 -0
- codex/static_root/assets/datetime-column-BxC1Li9e.3dc314b3295d.js.gz +0 -0
- codex/static_root/assets/datetime-column-BxC1Li9e.js.br +0 -0
- codex/static_root/assets/datetime-column-BxC1Li9e.js.gz +0 -0
- codex/static_root/assets/filter-Bzk7x841.d0c3b602e62d.js.br +0 -0
- codex/static_root/assets/filter-Bzk7x841.d0c3b602e62d.js.gz +0 -0
- codex/static_root/assets/filter-Bzk7x841.js.br +0 -0
- codex/static_root/assets/filter-Bzk7x841.js.gz +0 -0
- codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js +0 -1
- codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js.br +0 -0
- codex/static_root/assets/flag-tab-C2bI5zq3.8f8c297600a6.js.gz +0 -0
- codex/static_root/assets/flag-tab-C2bI5zq3.js +0 -1
- codex/static_root/assets/flag-tab-C2bI5zq3.js.br +0 -0
- codex/static_root/assets/flag-tab-C2bI5zq3.js.gz +0 -0
- codex/static_root/assets/group-tab-5esH4lwX.a81fdd258117.js.br +0 -0
- codex/static_root/assets/group-tab-5esH4lwX.a81fdd258117.js.gz +0 -0
- codex/static_root/assets/group-tab-5esH4lwX.js.br +0 -0
- codex/static_root/assets/group-tab-5esH4lwX.js.gz +0 -0
- codex/static_root/assets/http-error-BTOBfcGY.52ced6f28420.js.br +0 -0
- codex/static_root/assets/http-error-BTOBfcGY.52ced6f28420.js.gz +0 -0
- codex/static_root/assets/http-error-BTOBfcGY.js.br +0 -0
- codex/static_root/assets/http-error-BTOBfcGY.js.gz +0 -0
- codex/static_root/assets/library-tab-DiPEdOF7.ece2d642a9dc.js.br +0 -0
- codex/static_root/assets/library-tab-DiPEdOF7.ece2d642a9dc.js.gz +0 -0
- codex/static_root/assets/library-tab-DiPEdOF7.js.br +0 -0
- codex/static_root/assets/library-tab-DiPEdOF7.js.gz +0 -0
- codex/static_root/assets/main-BPIPjzsc.66def8991e38.js +0 -6
- codex/static_root/assets/main-BPIPjzsc.66def8991e38.js.br +0 -0
- codex/static_root/assets/main-BPIPjzsc.66def8991e38.js.gz +0 -0
- codex/static_root/assets/main-BPIPjzsc.js +0 -6
- codex/static_root/assets/main-BPIPjzsc.js.br +0 -0
- codex/static_root/assets/main-BPIPjzsc.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js +0 -1
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.278b9978f36f.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.js +0 -1
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-CiyC6Al9.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-C45-onwe.4722195bb60b.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-C45-onwe.4722195bb60b.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-C45-onwe.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-C45-onwe.css.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CkIzuyx1.00c354a82e6e.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CkIzuyx1.00c354a82e6e.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CkIzuyx1.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CkIzuyx1.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BjlRPuf4.0f056fa321b6.js.br +0 -0
- codex/static_root/assets/pdf-doc-BjlRPuf4.0f056fa321b6.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BjlRPuf4.js.br +0 -0
- codex/static_root/assets/pdf-doc-BjlRPuf4.js.gz +0 -0
- codex/static_root/assets/reader-_stAWL-4.5089e9144795.css +0 -1
- codex/static_root/assets/reader-_stAWL-4.5089e9144795.css.br +0 -0
- codex/static_root/assets/reader-_stAWL-4.5089e9144795.css.gz +0 -0
- codex/static_root/assets/reader-_stAWL-4.css +0 -1
- codex/static_root/assets/reader-_stAWL-4.css.br +0 -0
- codex/static_root/assets/reader-_stAWL-4.css.gz +0 -0
- codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js +0 -2
- codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js.br +0 -0
- codex/static_root/assets/reader-ucxnLi2K.d0fbce0f03c1.js.gz +0 -0
- codex/static_root/assets/reader-ucxnLi2K.js +0 -2
- codex/static_root/assets/reader-ucxnLi2K.js.br +0 -0
- codex/static_root/assets/reader-ucxnLi2K.js.gz +0 -0
- codex/static_root/assets/relation-chips-CUSatZET.a58031ff8141.js.br +0 -0
- codex/static_root/assets/relation-chips-CUSatZET.a58031ff8141.js.gz +0 -0
- codex/static_root/assets/relation-chips-CUSatZET.js.br +0 -0
- codex/static_root/assets/relation-chips-CUSatZET.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BSHTAsJ9.1d07ce084fc9.js.br +0 -0
- codex/static_root/assets/settings-drawer-BSHTAsJ9.1d07ce084fc9.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BSHTAsJ9.js.br +0 -0
- codex/static_root/assets/settings-drawer-BSHTAsJ9.js.gz +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.br +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.9b7a71e7fe28.css.gz +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.css.br +0 -0
- codex/static_root/assets/stats-tab-BXGisn5N.css.gz +0 -0
- codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js +0 -1
- codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js.br +0 -0
- codex/static_root/assets/stats-tab-DKXVB2Cc.0a3de58bf5ee.js.gz +0 -0
- codex/static_root/assets/stats-tab-DKXVB2Cc.js +0 -1
- codex/static_root/assets/stats-tab-DKXVB2Cc.js.br +0 -0
- codex/static_root/assets/stats-tab-DKXVB2Cc.js.gz +0 -0
- codex/static_root/assets/task-tab-NORFAa9p.97e07e366ddd.js.br +0 -0
- codex/static_root/assets/task-tab-NORFAa9p.97e07e366ddd.js.gz +0 -0
- codex/static_root/assets/task-tab-NORFAa9p.js.br +0 -0
- codex/static_root/assets/task-tab-NORFAa9p.js.gz +0 -0
- codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js +0 -1
- codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js.br +0 -0
- codex/static_root/assets/unauthorized-RHaQZRfr.a234e9403f60.js.gz +0 -0
- codex/static_root/assets/unauthorized-RHaQZRfr.js +0 -1
- codex/static_root/assets/unauthorized-RHaQZRfr.js.br +0 -0
- codex/static_root/assets/unauthorized-RHaQZRfr.js.gz +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.br +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.2166ec8b3a32.css.gz +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.css.br +0 -0
- codex/static_root/assets/unauthorized-muDsv-rC.css.gz +0 -0
- codex/static_root/assets/user-tab-CHbyN1EW.e7206db08680.js.br +0 -0
- codex/static_root/assets/user-tab-CHbyN1EW.e7206db08680.js.gz +0 -0
- codex/static_root/assets/user-tab-CHbyN1EW.js.br +0 -0
- codex/static_root/assets/user-tab-CHbyN1EW.js.gz +0 -0
- codex/static_root/js/choices-admin.1a20a5648f20.json +0 -1
- codex/static_root/js/choices-admin.1a20a5648f20.json.br +0 -0
- codex/static_root/js/choices-admin.1a20a5648f20.json.gz +0 -0
- codex/static_root/manifest.0fe31a6cb99f.json +0 -635
- codex/static_root/manifest.0fe31a6cb99f.json.br +0 -0
- codex/static_root/manifest.0fe31a6cb99f.json.gz +0 -0
- codex/templates/search/indexes/codex/comic_text.txt +0 -47
- codex/views/browser/filters/search.py +0 -196
- {codex-1.6.19.dist-info → codex-1.7.0a0.dist-info}/LICENSE +0 -0
- {codex-1.6.19.dist-info → codex-1.7.0a0.dist-info}/WHEEL +0 -0
- {codex-1.6.19.dist-info → codex-1.7.0a0.dist-info}/entry_points.txt +0 -0
codex/_vendor/haystack/inputs.py
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
import warnings
|
|
3
|
-
|
|
4
|
-
from django.utils.encoding import force_str
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class BaseInput:
|
|
8
|
-
"""
|
|
9
|
-
The base input type. Doesn't do much. You want ``Raw`` instead.
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
input_type_name = "base"
|
|
13
|
-
post_process = True
|
|
14
|
-
|
|
15
|
-
def __init__(self, query_string, **kwargs):
|
|
16
|
-
self.query_string = query_string
|
|
17
|
-
self.kwargs = kwargs
|
|
18
|
-
|
|
19
|
-
def __repr__(self):
|
|
20
|
-
return "<%s '%s'>" % (self.__class__.__name__, self)
|
|
21
|
-
|
|
22
|
-
def __str__(self):
|
|
23
|
-
return force_str(self.query_string)
|
|
24
|
-
|
|
25
|
-
def prepare(self, query_obj):
|
|
26
|
-
return self.query_string
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class Raw(BaseInput):
|
|
30
|
-
"""
|
|
31
|
-
An input type for passing a query directly to the backend.
|
|
32
|
-
|
|
33
|
-
Prone to not being very portable.
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
input_type_name = "raw"
|
|
37
|
-
post_process = False
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
class PythonData(BaseInput):
|
|
41
|
-
"""
|
|
42
|
-
Represents a bare Python non-string type.
|
|
43
|
-
|
|
44
|
-
Largely only for internal use.
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
|
-
input_type_name = "python_data"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class Clean(BaseInput):
|
|
51
|
-
"""
|
|
52
|
-
An input type for sanitizing user/untrusted input.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
input_type_name = "clean"
|
|
56
|
-
|
|
57
|
-
def prepare(self, query_obj):
|
|
58
|
-
query_string = super().prepare(query_obj)
|
|
59
|
-
return query_obj.clean(query_string)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class Exact(BaseInput):
|
|
63
|
-
"""
|
|
64
|
-
An input type for making exact matches.
|
|
65
|
-
"""
|
|
66
|
-
|
|
67
|
-
input_type_name = "exact"
|
|
68
|
-
|
|
69
|
-
def prepare(self, query_obj):
|
|
70
|
-
query_string = super().prepare(query_obj)
|
|
71
|
-
|
|
72
|
-
if self.kwargs.get("clean", False):
|
|
73
|
-
# We need to clean each part of the exact match.
|
|
74
|
-
exact_bits = [
|
|
75
|
-
Clean(bit).prepare(query_obj) for bit in query_string.split(" ") if bit
|
|
76
|
-
]
|
|
77
|
-
query_string = " ".join(exact_bits)
|
|
78
|
-
|
|
79
|
-
return query_obj.build_exact_query(query_string)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class Not(Clean):
|
|
83
|
-
"""
|
|
84
|
-
An input type for negating a query.
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
input_type_name = "not"
|
|
88
|
-
|
|
89
|
-
def prepare(self, query_obj):
|
|
90
|
-
query_string = super().prepare(query_obj)
|
|
91
|
-
return query_obj.build_not_query(query_string)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class AutoQuery(BaseInput):
|
|
95
|
-
"""
|
|
96
|
-
A convenience class that handles common user queries.
|
|
97
|
-
|
|
98
|
-
In addition to cleaning all tokens, it handles double quote bits as
|
|
99
|
-
exact matches & terms with '-' in front as NOT queries.
|
|
100
|
-
"""
|
|
101
|
-
|
|
102
|
-
input_type_name = "auto_query"
|
|
103
|
-
post_process = False
|
|
104
|
-
exact_match_re = re.compile(r'"(?P<phrase>.*?)"')
|
|
105
|
-
|
|
106
|
-
def prepare(self, query_obj):
|
|
107
|
-
query_string = super().prepare(query_obj)
|
|
108
|
-
exacts = self.exact_match_re.findall(query_string)
|
|
109
|
-
tokens = []
|
|
110
|
-
query_bits = []
|
|
111
|
-
|
|
112
|
-
for rough_token in self.exact_match_re.split(query_string):
|
|
113
|
-
if not rough_token:
|
|
114
|
-
continue
|
|
115
|
-
elif rough_token not in exacts:
|
|
116
|
-
# We have something that's not an exact match but may have more
|
|
117
|
-
# than on word in it.
|
|
118
|
-
tokens.extend(rough_token.split(" "))
|
|
119
|
-
else:
|
|
120
|
-
tokens.append(rough_token)
|
|
121
|
-
|
|
122
|
-
for token in tokens:
|
|
123
|
-
if not token:
|
|
124
|
-
continue
|
|
125
|
-
if token in exacts:
|
|
126
|
-
query_bits.append(Exact(token, clean=True).prepare(query_obj))
|
|
127
|
-
elif token.startswith("-") and len(token) > 1:
|
|
128
|
-
# This might break Xapian. Check on this.
|
|
129
|
-
query_bits.append(Not(token[1:]).prepare(query_obj))
|
|
130
|
-
else:
|
|
131
|
-
query_bits.append(Clean(token).prepare(query_obj))
|
|
132
|
-
|
|
133
|
-
return " ".join(query_bits)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
class AltParser(BaseInput):
|
|
137
|
-
"""
|
|
138
|
-
If the engine supports it, this input type allows for submitting a query
|
|
139
|
-
that uses a different parser.
|
|
140
|
-
"""
|
|
141
|
-
|
|
142
|
-
input_type_name = "alt_parser"
|
|
143
|
-
post_process = False
|
|
144
|
-
use_parens = False
|
|
145
|
-
|
|
146
|
-
def __init__(self, parser_name, query_string="", **kwargs):
|
|
147
|
-
self.parser_name = parser_name
|
|
148
|
-
self.query_string = query_string
|
|
149
|
-
self.kwargs = kwargs
|
|
150
|
-
|
|
151
|
-
def __repr__(self):
|
|
152
|
-
return "<%s '%s' '%s' '%s'>" % (
|
|
153
|
-
self.__class__.__name__,
|
|
154
|
-
self.parser_name,
|
|
155
|
-
self.query_string,
|
|
156
|
-
self.kwargs,
|
|
157
|
-
)
|
|
158
|
-
|
|
159
|
-
def prepare(self, query_obj):
|
|
160
|
-
if not hasattr(query_obj, "build_alt_parser_query"):
|
|
161
|
-
warnings.warn(
|
|
162
|
-
"Use of 'AltParser' input type is being ignored, as the '%s' backend doesn't support them."
|
|
163
|
-
% query_obj
|
|
164
|
-
)
|
|
165
|
-
return ""
|
|
166
|
-
|
|
167
|
-
return query_obj.build_alt_parser_query(
|
|
168
|
-
self.parser_name, self.query_string, **self.kwargs
|
|
169
|
-
)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
3
|
-
import requests
|
|
4
|
-
from django.conf import settings
|
|
5
|
-
from django.core.exceptions import ImproperlyConfigured
|
|
6
|
-
from django.core.management.base import BaseCommand, CommandError
|
|
7
|
-
from django.template import loader
|
|
8
|
-
|
|
9
|
-
from ....haystack import connections, constants
|
|
10
|
-
from ....haystack.backends.solr_backend import SolrSearchBackend
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Command(BaseCommand):
|
|
14
|
-
help = ( # noqa A003
|
|
15
|
-
"Generates a Solr schema that reflects the indexes using templates "
|
|
16
|
-
" under a django template dir 'search_configuration/*.xml'. If none are "
|
|
17
|
-
" found, then provides defaults suitable to Solr 6.4"
|
|
18
|
-
)
|
|
19
|
-
schema_template_loc = "search_configuration/schema.xml"
|
|
20
|
-
solrcfg_template_loc = "search_configuration/solrconfig.xml"
|
|
21
|
-
|
|
22
|
-
def add_arguments(self, parser):
|
|
23
|
-
parser.add_argument(
|
|
24
|
-
"-f",
|
|
25
|
-
"--filename",
|
|
26
|
-
help="Generate schema.xml directly into a file instead of stdout."
|
|
27
|
-
" Does not render solrconfig.xml",
|
|
28
|
-
)
|
|
29
|
-
parser.add_argument(
|
|
30
|
-
"-u",
|
|
31
|
-
"--using",
|
|
32
|
-
default=constants.DEFAULT_ALIAS,
|
|
33
|
-
help="Select a specific Solr connection to work with.",
|
|
34
|
-
)
|
|
35
|
-
parser.add_argument(
|
|
36
|
-
"-c",
|
|
37
|
-
"--configure-directory",
|
|
38
|
-
help="Attempt to configure a core located in the given directory"
|
|
39
|
-
" by removing the managed-schema.xml(renaming) if it "
|
|
40
|
-
" exists, configuring the core by rendering the schema.xml and "
|
|
41
|
-
" solrconfig.xml templates provided in the django project's "
|
|
42
|
-
" TEMPLATE_DIR/search_configuration directories",
|
|
43
|
-
)
|
|
44
|
-
parser.add_argument(
|
|
45
|
-
"-r",
|
|
46
|
-
"--reload-core",
|
|
47
|
-
help="If provided, attempts to automatically reload the solr core"
|
|
48
|
-
' via the urls in the "URL" and "ADMIN_URL" settings of the SOLR'
|
|
49
|
-
" HAYSTACK_CONNECTIONS entry. Both MUST be set.",
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
def handle(self, **options):
|
|
53
|
-
"""Generates a Solr schema that reflects the indexes."""
|
|
54
|
-
using = options.get("using")
|
|
55
|
-
if not isinstance(connections[using].get_backend(), SolrSearchBackend):
|
|
56
|
-
raise ImproperlyConfigured("'%s' isn't configured as a SolrEngine" % using)
|
|
57
|
-
|
|
58
|
-
schema_xml = self.build_template(
|
|
59
|
-
using=using, template_filename=Command.schema_template_loc
|
|
60
|
-
)
|
|
61
|
-
solrcfg_xml = self.build_template(
|
|
62
|
-
using=using, template_filename=Command.solrcfg_template_loc
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
filename = options.get("filename")
|
|
66
|
-
configure_directory = options.get("configure_directory")
|
|
67
|
-
reload_core = options.get("reload_core")
|
|
68
|
-
|
|
69
|
-
if filename:
|
|
70
|
-
self.stdout.write(
|
|
71
|
-
"Trying to write schema file located at {}".format(filename)
|
|
72
|
-
)
|
|
73
|
-
self.write_file(filename, schema_xml)
|
|
74
|
-
|
|
75
|
-
if reload_core:
|
|
76
|
-
connections[using].get_backend().reload()
|
|
77
|
-
|
|
78
|
-
if configure_directory:
|
|
79
|
-
self.stdout.write(
|
|
80
|
-
"Trying to configure core located at {}".format(configure_directory)
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
managed_schema_path = os.path.join(configure_directory, "managed-schema")
|
|
84
|
-
|
|
85
|
-
if os.path.isfile(managed_schema_path):
|
|
86
|
-
try:
|
|
87
|
-
os.rename(managed_schema_path, "%s.old" % managed_schema_path)
|
|
88
|
-
except OSError as exc:
|
|
89
|
-
raise CommandError(
|
|
90
|
-
"Could not rename old managed schema file {}: {}".format(
|
|
91
|
-
managed_schema_path, exc
|
|
92
|
-
)
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
schema_xml_path = os.path.join(configure_directory, "schema.xml")
|
|
96
|
-
|
|
97
|
-
try:
|
|
98
|
-
self.write_file(schema_xml_path, schema_xml)
|
|
99
|
-
except EnvironmentError as exc:
|
|
100
|
-
raise CommandError(
|
|
101
|
-
"Could not configure {}: {}".format(schema_xml_path, exc)
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
solrconfig_path = os.path.join(configure_directory, "solrconfig.xml")
|
|
105
|
-
|
|
106
|
-
try:
|
|
107
|
-
self.write_file(solrconfig_path, solrcfg_xml)
|
|
108
|
-
except EnvironmentError as exc:
|
|
109
|
-
raise CommandError(
|
|
110
|
-
"Could not write {}: {}".format(solrconfig_path, exc)
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
if reload_core:
|
|
114
|
-
core = settings.HAYSTACK_CONNECTIONS[using]["URL"].rsplit("/", 1)[-1]
|
|
115
|
-
|
|
116
|
-
if "ADMIN_URL" not in settings.HAYSTACK_CONNECTIONS[using]:
|
|
117
|
-
raise ImproperlyConfigured(
|
|
118
|
-
"'ADMIN_URL' must be specified in the HAYSTACK_CONNECTIONS"
|
|
119
|
-
" for the %s backend" % using
|
|
120
|
-
)
|
|
121
|
-
if "URL" not in settings.HAYSTACK_CONNECTIONS[using]:
|
|
122
|
-
raise ImproperlyConfigured(
|
|
123
|
-
"'URL' must be specified in the HAYSTACK_CONNECTIONS"
|
|
124
|
-
" for the %s backend" % using
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
try:
|
|
128
|
-
self.stdout.write("Trying to reload core named {}".format(core))
|
|
129
|
-
resp = requests.get(
|
|
130
|
-
settings.HAYSTACK_CONNECTIONS[using]["ADMIN_URL"],
|
|
131
|
-
params={"action": "RELOAD", "core": core},
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
if not resp.ok:
|
|
135
|
-
raise CommandError(
|
|
136
|
-
"Failed to reload core – Solr error: {}".format(resp)
|
|
137
|
-
)
|
|
138
|
-
except CommandError:
|
|
139
|
-
raise
|
|
140
|
-
except Exception as exc:
|
|
141
|
-
raise CommandError("Failed to reload core {}: {}".format(core, exc))
|
|
142
|
-
|
|
143
|
-
if not filename and not configure_directory and not reload_core:
|
|
144
|
-
self.print_stdout(schema_xml)
|
|
145
|
-
|
|
146
|
-
def build_context(self, using):
|
|
147
|
-
backend = connections[using].get_backend()
|
|
148
|
-
|
|
149
|
-
if not isinstance(backend, SolrSearchBackend):
|
|
150
|
-
raise ImproperlyConfigured(
|
|
151
|
-
"'%s' isn't configured as a SolrEngine" % backend.connection_alias
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
content_field_name, fields = backend.build_schema(
|
|
155
|
-
connections[using].get_unified_index().all_searchfields()
|
|
156
|
-
)
|
|
157
|
-
return {
|
|
158
|
-
"content_field_name": content_field_name,
|
|
159
|
-
"fields": fields,
|
|
160
|
-
"default_operator": constants.DEFAULT_OPERATOR,
|
|
161
|
-
"ID": constants.ID,
|
|
162
|
-
"DJANGO_CT": constants.DJANGO_CT,
|
|
163
|
-
"DJANGO_ID": constants.DJANGO_ID,
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
def build_template(self, using, template_filename=schema_template_loc):
|
|
167
|
-
t = loader.get_template(template_filename)
|
|
168
|
-
c = self.build_context(using=using)
|
|
169
|
-
return t.render(c)
|
|
170
|
-
|
|
171
|
-
def print_stdout(self, schema_xml):
|
|
172
|
-
self.stderr.write("\n")
|
|
173
|
-
self.stderr.write("\n")
|
|
174
|
-
self.stderr.write("\n")
|
|
175
|
-
self.stderr.write(
|
|
176
|
-
"Save the following output to 'schema.xml' and place it in your Solr configuration directory.\n"
|
|
177
|
-
)
|
|
178
|
-
self.stderr.write(
|
|
179
|
-
"--------------------------------------------------------------------------------------------\n"
|
|
180
|
-
)
|
|
181
|
-
self.stderr.write("\n")
|
|
182
|
-
self.stdout.write(schema_xml)
|
|
183
|
-
|
|
184
|
-
def write_file(self, filename, schema_xml):
|
|
185
|
-
with open(filename, "w") as schema_file:
|
|
186
|
-
schema_file.write(schema_xml)
|
|
187
|
-
os.fsync(schema_file.fileno())
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
from django.core.management.base import BaseCommand
|
|
2
|
-
|
|
3
|
-
from ....haystack import connections
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class Command(BaseCommand):
|
|
7
|
-
help = "Clears out the search index completely." # noqa A003
|
|
8
|
-
|
|
9
|
-
def add_arguments(self, parser):
|
|
10
|
-
parser.add_argument(
|
|
11
|
-
"--noinput",
|
|
12
|
-
action="store_false",
|
|
13
|
-
dest="interactive",
|
|
14
|
-
default=True,
|
|
15
|
-
help="If provided, no prompts will be issued to the user and the data will be wiped out.",
|
|
16
|
-
)
|
|
17
|
-
parser.add_argument(
|
|
18
|
-
"-u",
|
|
19
|
-
"--using",
|
|
20
|
-
action="append",
|
|
21
|
-
default=[],
|
|
22
|
-
help="Update only the named backend (can be used multiple times). "
|
|
23
|
-
"By default all backends will be updated.",
|
|
24
|
-
)
|
|
25
|
-
parser.add_argument(
|
|
26
|
-
"--nocommit",
|
|
27
|
-
action="store_false",
|
|
28
|
-
dest="commit",
|
|
29
|
-
default=True,
|
|
30
|
-
help="Will pass commit=False to the backend.",
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
def handle(self, **options):
|
|
34
|
-
"""Clears out the search index completely."""
|
|
35
|
-
self.verbosity = int(options.get("verbosity", 1))
|
|
36
|
-
self.commit = options.get("commit", True)
|
|
37
|
-
|
|
38
|
-
using = options.get("using")
|
|
39
|
-
if not using:
|
|
40
|
-
using = connections.connections_info.keys()
|
|
41
|
-
|
|
42
|
-
if options.get("interactive", True):
|
|
43
|
-
self.stdout.write(
|
|
44
|
-
"WARNING: This will irreparably remove EVERYTHING from your search index in connection '%s'."
|
|
45
|
-
% "', '".join(using)
|
|
46
|
-
)
|
|
47
|
-
self.stdout.write(
|
|
48
|
-
"Your choices after this are to restore from backups or rebuild via the `rebuild_index` command."
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
yes_or_no = input("Are you sure you wish to continue? [y/N] ")
|
|
52
|
-
|
|
53
|
-
if not yes_or_no.lower().startswith("y"):
|
|
54
|
-
self.stdout.write("No action taken.")
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
if self.verbosity >= 1:
|
|
58
|
-
self.stdout.write(
|
|
59
|
-
"Removing all documents from your index because you said so."
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
for backend_name in using:
|
|
63
|
-
backend = connections[backend_name].get_backend()
|
|
64
|
-
backend.clear(commit=self.commit)
|
|
65
|
-
|
|
66
|
-
if self.verbosity >= 1:
|
|
67
|
-
self.stdout.write("All documents removed.")
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
from django.core.management.base import BaseCommand
|
|
2
|
-
|
|
3
|
-
from ....haystack import connections
|
|
4
|
-
from ....haystack.constants import DEFAULT_ALIAS
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Command(BaseCommand):
|
|
8
|
-
help = "Provides feedback about the current Haystack setup." # noqa A003
|
|
9
|
-
|
|
10
|
-
def handle(self, **options):
|
|
11
|
-
"""Provides feedback about the current Haystack setup."""
|
|
12
|
-
|
|
13
|
-
unified_index = connections[DEFAULT_ALIAS].get_unified_index()
|
|
14
|
-
indexed = unified_index.get_indexed_models()
|
|
15
|
-
index_count = len(indexed)
|
|
16
|
-
self.stdout.write("Number of handled %s index(es)." % index_count)
|
|
17
|
-
|
|
18
|
-
for index in indexed:
|
|
19
|
-
self.stdout.write(
|
|
20
|
-
" - Model: %s by Index: %s"
|
|
21
|
-
% (index.__name__, unified_index.get_indexes()[index])
|
|
22
|
-
)
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
from django.core.management import call_command
|
|
2
|
-
from django.core.management.base import BaseCommand
|
|
3
|
-
|
|
4
|
-
from .update_index import DEFAULT_MAX_RETRIES
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Command(BaseCommand):
|
|
8
|
-
help = "Completely rebuilds the search index by removing the old data and then updating." # noqa A003
|
|
9
|
-
|
|
10
|
-
def add_arguments(self, parser):
|
|
11
|
-
parser.add_argument(
|
|
12
|
-
"--noinput",
|
|
13
|
-
action="store_false",
|
|
14
|
-
dest="interactive",
|
|
15
|
-
default=True,
|
|
16
|
-
help="If provided, no prompts will be issued to the user and the data will be wiped out.",
|
|
17
|
-
)
|
|
18
|
-
parser.add_argument(
|
|
19
|
-
"-u",
|
|
20
|
-
"--using",
|
|
21
|
-
action="append",
|
|
22
|
-
default=[],
|
|
23
|
-
help="Update only the named backend (can be used multiple times). "
|
|
24
|
-
"By default all backends will be updated.",
|
|
25
|
-
)
|
|
26
|
-
parser.add_argument(
|
|
27
|
-
"-k",
|
|
28
|
-
"--workers",
|
|
29
|
-
default=0,
|
|
30
|
-
type=int,
|
|
31
|
-
help="Allows for the use multiple workers to parallelize indexing. Requires multiprocessing.",
|
|
32
|
-
)
|
|
33
|
-
parser.add_argument(
|
|
34
|
-
"--nocommit",
|
|
35
|
-
action="store_false",
|
|
36
|
-
dest="commit",
|
|
37
|
-
default=True,
|
|
38
|
-
help="Will pass commit=False to the backend.",
|
|
39
|
-
)
|
|
40
|
-
parser.add_argument(
|
|
41
|
-
"-b",
|
|
42
|
-
"--batch-size",
|
|
43
|
-
dest="batchsize",
|
|
44
|
-
type=int,
|
|
45
|
-
help="Number of items to index at once.",
|
|
46
|
-
)
|
|
47
|
-
parser.add_argument(
|
|
48
|
-
"-t",
|
|
49
|
-
"--max-retries",
|
|
50
|
-
action="store",
|
|
51
|
-
dest="max_retries",
|
|
52
|
-
type=int,
|
|
53
|
-
default=DEFAULT_MAX_RETRIES,
|
|
54
|
-
help="Maximum number of attempts to write to the backend when an error occurs.",
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
def handle(self, **options):
|
|
58
|
-
clear_options = options.copy()
|
|
59
|
-
update_options = options.copy()
|
|
60
|
-
for key in ("batchsize", "workers", "max_retries"):
|
|
61
|
-
del clear_options[key]
|
|
62
|
-
for key in ("interactive",):
|
|
63
|
-
del update_options[key]
|
|
64
|
-
call_command("clear_index", **clear_options)
|
|
65
|
-
call_command("update_index", **update_options)
|