11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

str Stored string value of a field. You can use at most one of str or bin.<br />

optional<br />

bin Stored binary value of a field. The binary value has to be Base64 encoded. optional<br />

tokens serialized token stream. This is a JSON list. optional<br />

Any other top-level key is silently ignored.<br />

Token stream serialization<br />

The token stream is expressed as a JSON list of JSON maps. The map for each token consists of the following<br />

keys and values:<br />

Key Description Lucene Attribute Value Required?<br />

t token CharTermAttribute UTF-8 string representing the current token required<br />

s start offset OffsetAttribute Non-negative integer optional<br />

e end offset OffsetAttribute Non-negative integer optional<br />

i<br />

position<br />

increment<br />

PositionIncrementAttribute Non-negative integer - default is 1 optional<br />

p payload PayloadAttribute Base64 encoded payload optional<br />

y lexical type TypeAttribute UTF-8 string optional<br />

f flags FlagsAttribute String representing an integer value in<br />

hexadecimal format<br />

optional<br />

Any other key is silently ignored.<br />

Example<br />

{<br />

}<br />

"v":"1",<br />

"str":"test ó",<br />

"tokens": [<br />

{"t":"one","s":123,"e":128,"i":22,"p":"DQ4KDQsODg8=","y":"word"},<br />

{"t":"two","s":5,"e":8,"i":1,"y":"word"},<br />

{"t":"three","s":20,"e":22,"i":1,"y":"foobar"}<br />

]<br />

SimplePreAnalyzedParser<br />

The fully qualified class name to use when specifying this format via the parserImpl configuration parameter is<br />

org.apache.solr.schema.SimplePreAnalyzedParser.<br />

Syntax<br />

The serialization format supported by this parser is as follows:<br />

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

63

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

Saved successfully!

Ooh no, something went wrong!