Skip to content

Commit

Permalink
fix bug in PMID set construction with & symbol (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmillikin authored Aug 18, 2023
1 parent ec7a016 commit 2e1b315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexing/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def construct_abstract_set(self, term: str) -> set:
pmid_set.update(self._query_index(synonym))
elif logical_and in term:
terms = get_subterms(term)
pmid_set = self._query_index(terms[0])
pmid_set = set(self._query_index(terms[0]))
for t in terms[1:]:
pmid_set.intersection_update(self._query_index(t))
else:
Expand Down

0 comments on commit 2e1b315

Please sign in to comment.