Difference between revisions of "Indexing configuration"
(Created page with 'OpenKM 6.0 has more flexible indexing configuration, based in Apache Lucene. For example, depending on the lenguage used in the documents and properties, you have obtain better …') |
|||
Line 2: | Line 2: | ||
For example, depending on the lenguage used in the documents and properties, you have obtain better search results configuring a proper Lucene Analyzer. This can be done editing the '''OpenKM.cfg''' file and setting the '''hibernate.search.analyzer''' configuration property. | For example, depending on the lenguage used in the documents and properties, you have obtain better search results configuring a proper Lucene Analyzer. This can be done editing the '''OpenKM.cfg''' file and setting the '''hibernate.search.analyzer''' configuration property. | ||
+ | |||
+ | By default, OpenKM use the '''org.apache.lucene.analysis.standard.StandardAnalyzer''' which works fine with english and most languages, but you can get better search results configuring more specific analyzer for you language. Some of them are listed here: | ||
+ | |||
+ | * org.apache.lucene.analysis.en.EnglishAnalyzer | ||
+ | * org.apache.lucene.analysis.es.SpanishAnalyzer | ||
+ | * org.apache.lucene.analysis.fr.FrenchAnalyzer | ||
+ | * org.apache.lucene.analysis.it.ItalianAnalyzer | ||
+ | * org.apache.lucene.analysis.de.GermanAnalyzer | ||
+ | * org.apache.lucene.analysis.el.GreekAnalyzer | ||
+ | |||
+ | If you configure the search analyzer before the first time you start OpenKM, the Lucene indexed will be created using this analyzer. But if you want to change this configuration property after the OpenKM repository has been created you need to initialize the Lucene indexes. | ||
[[Category: Installation Guide]] | [[Category: Installation Guide]] | ||
[[Category: OKM Network]] | [[Category: OKM Network]] |
Revision as of 08:05, 28 June 2012
OpenKM 6.0 has more flexible indexing configuration, based in Apache Lucene.
For example, depending on the lenguage used in the documents and properties, you have obtain better search results configuring a proper Lucene Analyzer. This can be done editing the OpenKM.cfg file and setting the hibernate.search.analyzer configuration property.
By default, OpenKM use the org.apache.lucene.analysis.standard.StandardAnalyzer which works fine with english and most languages, but you can get better search results configuring more specific analyzer for you language. Some of them are listed here:
- org.apache.lucene.analysis.en.EnglishAnalyzer
- org.apache.lucene.analysis.es.SpanishAnalyzer
- org.apache.lucene.analysis.fr.FrenchAnalyzer
- org.apache.lucene.analysis.it.ItalianAnalyzer
- org.apache.lucene.analysis.de.GermanAnalyzer
- org.apache.lucene.analysis.el.GreekAnalyzer
If you configure the search analyzer before the first time you start OpenKM, the Lucene indexed will be created using this analyzer. But if you want to change this configuration property after the OpenKM repository has been created you need to initialize the Lucene indexes.