debug for app.py
Browse files
app.py
CHANGED
@@ -103,10 +103,12 @@ class SearchApplication:
|
|
103 |
# json_data = json.loads(result.raw)
|
104 |
docid = result.docid
|
105 |
doc = self.searcher.doc(docid)
|
|
|
106 |
print(doc)
|
107 |
-
print(doc.
|
108 |
-
#
|
109 |
-
json_data = doc.
|
|
|
110 |
json_search_results.append(json_data)
|
111 |
|
112 |
for json_data in sorted(
|
|
|
103 |
# json_data = json.loads(result.raw)
|
104 |
docid = result.docid
|
105 |
doc = self.searcher.doc(docid)
|
106 |
+
print(docid)
|
107 |
print(doc)
|
108 |
+
print(doc.raw())
|
109 |
+
# print(doc.get("contents"))
|
110 |
+
json_data = json.loads(doc.raw())
|
111 |
+
# json_data = doc.get("contents")
|
112 |
json_search_results.append(json_data)
|
113 |
|
114 |
for json_data in sorted(
|