-
Notifications
You must be signed in to change notification settings - Fork 103
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
Conversation
- decrease version of elastic
…61_custom_index_name # Conflicts: # bingo/bingo-elastic/java/pom.xml # bingo/bingo-elastic/java/src/main/java/com/epam/indigo/elastic/ElasticRepository.java
…61_custom_index_name
@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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
reopen, cause one isuue was found while trying to search at elastic with custom index was recieved error: "Unkown index".
Issue