IndexTemplate
- This repository contains MetaSearch index template definitions and util methods as shared resources.
- It also provides an index creation script to manually create index tempalte for Twitter and Discord search (TODO: integrate index template creation as part of OpenSearch CDK deployement)
To create index template
- Enter your OpenSearch URI, username and password in index_configs.py
- Run "python3 setup.py install --user && python3 src/create_templates.py"
To modify index field definitions
- In "field_definitions.py", identify if it's a shared field or any verticial specific field, and modify the corresponding variables
To obtain the list of index fields for a specific index in downstream indexer code
- Import this repository using Git Submodule
- Import the necessary index config
from index_configs import twitter_index_config - Use the get fields method
get_fields_by_index(discord_index_config).keys()
To obtain the index to be updated or other index metadata
- Import "twitter_index_config" or "discord_index_config" and look for the associated attributes
- The index name to be updated to can be found at "twitter_index_config.index_name" and "discord_index_config.index_name"
Notes on re-indexing
- For lightweight re-indexing after template change, follow https://opensearch.org/docs/latest/opensearch/reindex-data/
TODO
- Test the util in indexing lambda using submodules to ensure indexer can be kept in sync with index template, and index based on the template accordingly
Metadata
Release files for index-template 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| index_template-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for index_template-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| index_template-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for index_template-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / index_template-0.1.0.tar.gz
| Download URL | index_template-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8be7ac704e379b4903fb23009c882877fa6d71a3c3df16011dd8629d425e5edb
|
|
BLAKE2b-256 checksum How to use checksums |
ab4999170845c099b28df4d90e431aacaac8925408b1dcf62c2974b0a126b45f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.9.14 Darwin/21.6.0
|
Release files / index_template-0.1.0-py3-none-any.whl
| Download URL | index_template-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb71dd28a7d2dfde698ff6530da48356b9a6a8cda22aae2bdf613c32b121b924
|
|
BLAKE2b-256 checksum How to use checksums |
7314c621699072336cf11ef9e4d806006585e6de226a8d976b2ac77d71d22bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.9.14 Darwin/21.6.0
|
Security for index-template 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.