Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoderhawk committed Jan 17, 2020
1 parent bf3e23f commit 4629e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsdm_digg/search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def search(self, text, cites_text, top_n, paper_keywords=None):
# searched_paper_id = self.prf(query_terms, paper_list[:1], top_n)
for doc in paper_list:
searched_paper_id.append(doc['_id'])
# When query text is unusual , the ES search result will be less than three
# When query text is abnormal , the ES search result will be less than three
# then replace it with default value just to avoid submit error
if len(searched_paper_id) < 3:
searched_paper_id = self.default_result
Expand Down

0 comments on commit 4629e13

Please sign in to comment.