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

#1191 search molecule using custom index name #1190

Merged
merged 12 commits into from
Jul 21, 2023

Conversation

bodyangug
Copy link
Collaborator

@bodyangug bodyangug commented Jul 19, 2023

reopen, cause one isuue was found while trying to search at elastic with custom index was recieved error: "Unkown index".
Issue

@MysterionRise
Copy link
Collaborator

@bodyangug how we would distinguish between “supported” index and any other random index?

if index == IndexName.BINGO_REACTION.value:
return IndigoRecordReaction(elastic_response=response)
raise AttributeError(f"Unknown index {index}")
return IndigoRecordMolecule(elastic_response=response)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we raise error if index isn’t really exists?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's really hard to track "our" index and other random values because "our" index can be any value that was set up as library-name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have provided some solution, check please.

Copy link
Collaborator

@MysterionRise MysterionRise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bodyangug bodyangug changed the title Issue/1061 custom index name Issue/1191 search molecule using custom index name Jul 20, 2023
@AlexanderSavelyev AlexanderSavelyev linked an issue Jul 21, 2023 that may be closed by this pull request
@AlexanderSavelyev AlexanderSavelyev changed the title Issue/1191 search molecule using custom index name #1191 search molecule using custom index name Jul 21, 2023
@AlexanderSavelyev AlexanderSavelyev merged commit ce9836a into master Jul 21, 2023
@AlexanderSavelyev AlexanderSavelyev deleted the issue/1061_custom_index_name branch July 21, 2023 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bingo-elastic] Cannot search at elastic using custom-index
3 participants