Subversion Repositories SmartDukaan

Rev

Rev 20592 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20592 Rev 20856
Line 38... Line 38...
38
    all = get_mongo_connection().Hotspot.HotspotEntity.find()
38
    all = get_mongo_connection().Hotspot.HotspotEntity.find()
39
    for a in all:
39
    for a in all:
40
        fileName = str(a['_id'])+"_irdata_solr.xml"
40
        fileName = str(a['_id'])+"_irdata_solr.xml"
41
        doc = parse(solrPath+fileName)
41
        doc = parse(solrPath+fileName)
42
        root = doc.find('doc')
42
        root = doc.find('doc')
43
        co = Element("field", name="H_00001")
43
        co = Element("field", name="P_120537")
44
        co.text="True"
44
        co.text="Yes"
45
        root.append(co)
45
        root.append(co)
46
        doc.write(solrPath+fileName)
46
        doc.write(solrPath+fileName)
47
    
47
    
48
def main():
48
def main():
49
    generate_auto_suggest()
49
    generate_auto_suggest()