debug for app.py
Browse files
app.py
CHANGED
@@ -98,10 +98,15 @@ class SearchApplication:
|
|
98 |
json_search_results = []
|
99 |
for result in search_results:
|
100 |
# print(result.lucene_document.getValues())
|
101 |
-
print(result.lucene_document())
|
102 |
-
print(result.lucene_document.toString())
|
103 |
# json_data = json.loads(result.raw)
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
105 |
json_search_results.append(json_data)
|
106 |
|
107 |
for json_data in sorted(
|
|
|
98 |
json_search_results = []
|
99 |
for result in search_results:
|
100 |
# print(result.lucene_document.getValues())
|
101 |
+
# print(result.lucene_document())
|
102 |
+
# print(result.lucene_document.toString())
|
103 |
# json_data = json.loads(result.raw)
|
104 |
+
docid = result.docid
|
105 |
+
doc = self.searcher.doc(docid)
|
106 |
+
print(doc)
|
107 |
+
print(doc.get("contents"))
|
108 |
+
# json_data = json.loads(result.lucene_document.toString())
|
109 |
+
json_data = doc.get("contents")
|
110 |
json_search_results.append(json_data)
|
111 |
|
112 |
for json_data in sorted(
|