taishi-i commited on
Commit
6cfc625
1 Parent(s): 2b88e44

debug for app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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.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(
 
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(