PK ;}XjůK K 10-1.py
1
재해 복구 전략
PH PTR
HYUNDAE
false
1
Disaster recovery strategy describes the default desktop that is equipped IT systems for all the failures that can occur in modern IT society.
2015-06-30T03:03:00
PK ;}Xփ 10-2.py[
{
"id" : 2,
"product_name" : "CGI & 전자상거래 구축",
"product_seller" : "HancomPress",
"delivery_cp" : "HANJIN",
"product_soldout" : true,
"product_quantity" : 21,
"product_eng_description" : "It is described how to create a site shopping mall with pure CGI technology.",
"regdate" : "2015-06-30T03:29:00"
}
]
PK ;}X% % 10-3.pyid,product_name,product_seller,delivery_cp,product_soldout,product_quantity,product_eng_description,reg_date
3,"임백준의 소프트웨어 산책","Hanbit","Door2Door",true,0,"Find fun with this software via the software development seems to walk the walk distance.","2015-06-30T03:38:00"
PK ;}XO 10-4.py
PK ;}XBm_w w 10-5.py
*:*
./db-data-config.xml
PK ;}XeP;\ \ 10-6.py
PK ;}X:aU U 10-7.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)PK ;}X=w/ 10-8.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
search_obj = solr.search("CGI")
for record in search_obj:
# record에 대한 처리PK ;}XV 10-9.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
search_obj = solr.search("CGI")
if len(search_obj):
for record in search_obj:
# record에 대한 처리
else:
print("검색 엔진이 반환한 결과가 비어있습니다.")PK ;}Xa[/ / 10-10.pyimport pysolr
import datetime
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
document_ready = {'delivery_cp': 'KGB',
'id': 10,
'product_eng_description': 'This book will show you the New World.',
'product_name': 'Flask Web Programming',
'product_quantity': 1000,
'product_seller': 'JPUB',
'product_soldout': False,
'regdate': datetime.datetime.now()
}
solr.add([document_ready])PK ;}XҤ 10-11.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
search_obj = solr.search("CGI")
first_index_document = search_obj[0]
first_index_document["product_name"] = "Short Coding"
solr.add([first_index_document])PK ;}Xelf f 10-12.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
solr.delete(10)PK ;}XXm m 10-13.pyimport pysolr
solr = pysolr.Solr("http://localhost:8983/solr/jpub_kr", timeout=30)
solr.delete(q="id:10")PK ;}XjůK K 10-1.pyPK ;}Xփ p 10-2.pyPK ;}X% % ) 10-3.pyPK ;}XO s 10-4.pyPK ;}XBm_w w w 10-5.pyPK ;}XeP;\ \ 10-6.pyPK ;}X:aU U 10-7.pyPK ;}X=w/
10-8.pyPK ;}XV
10-9.pyPK ;}Xa[/ / # 10-10.pyPK ;}XҤ x 10-11.pyPK ;}Xelf f 10-12.pyPK ;}XXm m ! 10-13.pyPK