lucene - Pylucene - Stemming and stop words -


i have ir system using pylucene.

lucene.initvm() # analyzer analyzer = standardanalyzer()   #directory path = paths.get('index1') directory = simplefsdirectory(path) reader = directoryreader.open(directory) searcher = indexsearcher(reader) queryparser = queryparser("disease", analyzer) query = queryparser.parse(queryparser.escape("i have headache")) hits = searcher.search(query, 10) 

i understand lucene can used stem , remove stop words , query required fields string. how can stemming , removal of stop words in pylucene?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -