We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
old code
def is_jfm(hit) -> bool: try: return hit["_source"]["database"] == "JFM" except KeyError: return False def append_set_info(hit, parent, doc): classification = collect_info_for_hit(hit, "classification") sets = {""} for v in str(classification).split(";"): sets.add(v.strip()[0:2]) sets.remove("") if is_jfm(hit): sets.add("JFM") # sorted is required for integration tests for s in sorted(sets): node = doc.createElement("setSpec") node.appendChild(doc.createTextNode(s)) parent.appendChild(node)
The text was updated successfully, but these errors were encountered:
Implement set logic for documents
260bf68
Ref #103
physikerwelt
No branches or pull requests
old code
The text was updated successfully, but these errors were encountered: