Extend Stemming and Languages

From DBSight Full-Text Search Engine/Platform Wiki

Extending your own Analyzer

Analyzers are used to handle stemming and different languages.

All Analyzers extend "org.apache.lucene.analysis.Analyzer". Its documentation can be found at http://lucene.apache.org/java/docs/api/org/apache/lucene/analysis/Analyzer.html

You can extend the Analyzer class and implement your own algorithms. After that, just edit file


Find node <analyzers>, and add an entry for your own class, restart the server.

You can re-analyze the existing content. Then all set.