예제 #1
0
 def __init__(self, **kwargs):
     LuceneHelper.__init__(self,analyzer=WhitespaceAnalyzer(Version.LUCENE_CURRENT), searchAnalyzer=WhitespaceAnalyzer(Version.LUCENE_CURRENT),**kwargs)
     storeAndIndex={'store':True, 'index':True}
     storeAndIndexAndTokenize={'store':True, 'index':True, 'tokenize':True}
     self.setFields(id_=storeAndIndex, name=storeAndIndexAndTokenize, price=storeAndIndex,
     imgurl=storeAndIndex, author=storeAndIndex, category=storeAndIndex, detail=storeAndIndex, url=storeAndIndex, rawname=storeAndIndex)
예제 #2
0
 def __del__(self):
     LuceneHelper.__del__(self)