Esempio n. 1
0
    def __init__(self):
        ProcesserBase.__init__(self)
        self.db = pymongo.Connection("192.168.2.229", 2291).dcrawler_final

        self.solr = pysolr.Solr('http://192.168.2.233:1984/solr/', timeout=10)
        self.helper = PushIndexHelper()
        self.ipusher = pusher()
Esempio n. 2
0
 def __init__(self):
     ProcesserBase.__init__(self)
     self.rdb3 = redis.Redis(host='122.192.66.45', db=3)
     # 查询远程图片信息的thrift客户端
     self.remoteImagedb = imagedb()
     # 推送索引
     self.ipusher = pusher()
Esempio n. 3
0
    def __init__(self):
        ProcesserBase.__init__(self)
        self.db = pymongo.Connection("192.168.2.229", 2291).dcrawler_final

        self.solr = pysolr.Solr('http://192.168.2.233:1984/solr/', timeout=10)
        self.helper = PushIndexHelper()
        self.ipusher = pusher()
Esempio n. 4
0
 def __init__(self):
     ProcesserBase.__init__(self)
     self.rdb3 = redis.Redis(host='122.192.66.45', db=3)
     # 查询远程图片信息的thrift客户端
     self.remoteImagedb = imagedb()
     # 推送索引
     self.ipusher = pusher()