taishi-i commited on
Commit
981430b
1 Parent(s): e282a77

delete debug codes

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -97,18 +97,9 @@ class SearchApplication:
97
  if num_search_results > 0:
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(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(
 
97
  if num_search_results > 0:
98
  json_search_results = []
99
  for result in search_results:
 
 
 
 
100
  docid = result.docid
101
  doc = self.searcher.doc(docid)
 
 
 
 
102
  json_data = json.loads(doc.raw())
 
103
  json_search_results.append(json_data)
104
 
105
  for json_data in sorted(