Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexed Fields Customization #67

Open
geoffturk opened this issue Jun 25, 2024 · 0 comments
Open

Indexed Fields Customization #67

geoffturk opened this issue Jun 25, 2024 · 0 comments
Milestone

Comments

@geoffturk
Copy link
Member

geoffturk commented Jun 25, 2024

The 12 fields that are currently indexed in an index are defined directly in the code:
https://github.com/MurmurationsNetwork/MurmurationsServices/blob/main/services/index/internal/model/profile.go#L23-L35
https://github.com/MurmurationsNetwork/MurmurationsServices/blob/main/services/index/pkg/index/envvar.go#L32-L44

Aside from last_updated and status which are created and used by the index itself, and linked_schemas, profile_url and expires which are required by the protocol, the remaining 7 fields (name, primary_url, tags, geolocation, locality, region and country) are fields defined in specific schemas like the Organizations schema.

To make the index more customizable, an index operator should be able to specify which fields to index. These 7 could be default options defined in a configuration file, but an index operator could add others and/or remove one or more of these 7. Only the 5 fields required by the index or protocol need to be fixed.

Enabling this functionality means index operators could specify which fields they choose to index, and multiple index operators could index different fields for a complex schema that has a large dataset.

@geoffturk geoffturk added this to the July2024 milestone Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant