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.

couch,sofa,divan<br />

teh => the<br />

huge,ginormous,humungous => large<br />

small => tiny,teeny,weeny<br />

Example:<br />

<br />

<br />

<br />

<br />

In: "teh small couch"<br />

Tokenizer to Filter: "teh"(1), "small"(2), "couch"(3)<br />

Out: "the"(1), "tiny"(2), "teeny"(2), "weeny"(2), "couch"(3), "sofa"(3), "divan"(3)<br />

Example:<br />

<br />

<br />

<br />

<br />

In: "teh ginormous, humungous sofa"<br />

Tokenizer to Filter: "teh"(1), "ginormous"(2), "humungous"(3), "sofa"(4)<br />

Out: "the"(1), "large"(2), "large"(3), "couch"(4), "sofa"(4), "divan"(4)<br />

Token Offset Payload Filter<br />

This filter adds the numeric character offsets of the token as a payload value for that token.<br />

Factory class: solr.TokenOffsetPayloadTokenFilterFactory<br />

Arguments: None<br />

Example:<br />

<br />

<br />

<br />

<br />

In: "bing bang boom"<br />

Tokenizer to Filter: "bing", "bang", "boom"<br />

Out: "bing"[0,4], "bang"[5,9], "boom"[10,14]<br />

Trim Filter<br />

This filter trims leading and/or trailing whitespace from tokens. Most tokenizers break tokens at whitespace, so<br />

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

139

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

Saved successfully!

Ooh no, something went wrong!