Search indexer
Last updated
Last updated
The job utilizes Neo4j transactions to index the metadata of objects into three different Elasticsearch indexes:
Composite search index: This index is used to store metadata related to objects, making it easier to search and retrieve specific information efficiently.
DIAL code index: This index is specifically designed to store data related to DIAL codes, allowing for quick retrieval and analysis of DIAL code-related information.
DIAL code metrics index: This index is used to store metrics related to DIAL codes, facilitating the tracking and analysis of metrics associated with DIAL codes.
By leveraging Neo4j transactions, the job ensures that the indexing process is reliable and consistent. The indexed data is then stored in the respective Elasticsearch indexes, enabling efficient searching, querying, and analysis of the object metadata, DIAL codes, and associated metrics.
During the deployment process, the configuration for all knowledge-platform-jobs is sourced from the sunbird-learning-platform repository. On the other hand, for local setups, the configuration is taken from the respective job folders within the knowledge-platform-jobs repository.
Kafka Topic:
Job configuration variables:
Sample Kafka event:
Variable | Purpose |
---|---|
compositesearch.index.name
Used to specify index name of composite search in ElasticSearch. Default value: "compositesearch"
dialcode.index.name
Used to specify index name of DIAL code in ElasticSearch. Default value: "dialcode"
dailcodemetrics.index.name
Used to specify index name of DIAL code metrics in ElasticSearch. Default value: "dialcodemetrics"
restrict.metadata.objectTypes
NOT USED
nested.fields
Used to specify the list of object properties that are of object types with nested attributes which are necessary for indexing in ElasticSearch. Default value: [""]
schema.definition_cache.expiry
NOT USED
restrict.objectTypes
Used to specify list of object Types for which transaction event output tags are to be restricted/skipped. Default value: [""]
ignored.fields
Used to specify the list of object properties that are to be ingored while indexing an object document. Default value: ["responseDeclaration", "body"]