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

[Bingo-Elastic] Cannot create custom index in python bingo-elastic #1061

Closed
bodyangug opened this issue Mar 10, 2023 · 1 comment · Fixed by #1165
Closed

[Bingo-Elastic] Cannot create custom index in python bingo-elastic #1061

bodyangug opened this issue Mar 10, 2023 · 1 comment · Fixed by #1165

Comments

@bodyangug
Copy link
Collaborator

Description:
I want to create a custom index for bingo-Elastic without using IndexName to implement library logic for reference API.
The problems I have faced include:

  • In Python, we cannot enhance/extend Enum. Therefore, I used a workaround by using the aenum library to extend the IndexName enum with custom name logic;
  • The next problem is located at line 147 in the elastic.py file. In that case, I want to index a molecule with a custom index name, but I cannot do so because the index value should be directly from the IndexName enum (see attachments).

Indigo/Bingo version
bingo version: 1.9.0

Expected behavior
IndexName should be more flexible to have ability set custom value.

Actual behavior
We should set up Index name only from IndexName enum.

Attachments
image

@MysterionRise
Copy link
Collaborator

Thanks for reporting @bodyangug , will take a look into ti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants