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.

Tokenizer to Filter: "four"(1), "score"(2), "and"(3), "Kuczewski"(4)<br />

Out: "four"(1), "FR"(1), "score"(2), "SKR"(2), "and"(3), "ANT"(3), "Kuczewski"(4), "KSSK"(4), "KXFS"(4)<br />

The phonetic tokens have a position increment of 0, which indicates that they are at the same position as the<br />

token they were derived from (immediately preceding). Note that "Kuczewski" has two encodings, which are<br />

added at the same position.<br />

Example:<br />

Discard original token ( inject="false" ).<br />

<br />

<br />

<br />

<br />

In: "four score and Kuczewski"<br />

Tokenizer to Filter: "four"(1), "score"(2), "and"(3), "Kuczewski"(4)<br />

Out: "FR"(1), "SKR"(2), "ANT"(3), "KSSK"(4), "KXFS"(4)<br />

Note that "Kuczewski" has two encodings, which are added at the same position.<br />

Edge N-Gram Filter<br />

This filter generates edge n-gram tokens of sizes within the given range.<br />

Factory class: solr.EdgeNGramFilterFactory<br />

Arguments:<br />

minGramSize: (integer, default 1) The minimum gram size.<br />

maxGramSize: (integer, default 1) The maximum gram size.<br />

Example:<br />

Default behavior.<br />

<br />

<br />

<br />

<br />

In: "four score and twenty"<br />

Tokenizer to Filter: "four", "score", "and", "twenty"<br />

Out: "f", "s", "a", "t"<br />

Example:<br />

A range of 1 to 4.<br />

<br />

<br />

<br />

<br />

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

121

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

Saved successfully!

Ooh no, something went wrong!