We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10fa22d commit 33d4a02Copy full SHA for 33d4a02
Search_Engine/backend.py
@@ -115,6 +115,14 @@ def find_documents(self, search_term):
115
return self._find_documents_with_idx(common_idx_of_docs)
116
117
def _find_documents_with_idx(self, idxs):
118
+ """
119
+ Returns - list[str]: the list of documents with the idxs
120
+ Input - list of idxs
121
+ ---------
122
+ - use the class-level connection object to retrieve the documents that
123
+ have the idx in the input list of idxs.
124
+ - retrieve and return these documents as a list
125
126
idxs = list(idxs)
127
cur = self.conn.cursor()
128
sql="SELECT document FROM IdToDoc WHERE id in ({seq})".format(
0 commit comments