11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

<br />

<br />

<br />

Polish<br />

<strong>Solr</strong> provides support for Polish stemming with the solr.StempelPolishStemFilterFactory, and solr.M<br />

orphologikFilterFactory for lemmatization, in the contrib/analysis-extras module. The solr.Ste<br />

mpelPolishStemFilterFactory component includes an algorithmic stemmer with tables for Polish. To use<br />

either of these filters, see solr/contrib/analysis-extras/README.txt for instructions on which jars you<br />

need to add to your solr_home/lib.<br />

Factory class: solr.StempelPolishStemFilterFactory and solr.MorfologikFilterFactory<br />

Arguments: None<br />

Example:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

In: ""studenta studenci"<br />

Tokenizer to Filter: "studenta", "studenci"<br />

Out: "student", "student"<br />

More information about the Stempel stemmer is available in the Lucene javadocs.<br />

The Morfologik dictionary-resource param value is a constant specifying which dictionary to choose.<br />

The dictionary resource must be named morfologik/dictionaries/{dictionaryResource}.dict and<br />

have an associated .info metadata file. See the Morfologik project for details.<br />

Portuguese<br />

<strong>Solr</strong> includes four stemmers for Portuguese: one in the solr.SnowballPorterFilterFactory, an<br />

alternative stemmer called solr.PortugueseStemFilterFactory, a lighter stemmer called solr.Portugu<br />

eseLightStemFilterFactory, and an even less aggressive stemmer called solr.PortugueseMinimalS<br />

temFilterFactory. Lucene includes an example stopword list.<br />

Factory classes: solr.PortugueseStemFilterFactory,<br />

solr.PortugueseLightStemFilterFactor<br />

y,<br />

solr.PortugueseMinimalStemFilterFactory<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!