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.

Serialization format<br />

content ::= version (stored)? tokens<br />

version ::= digit+ " "<br />

; stored field value - any "=" inside must be escaped!<br />

stored ::= "=" text "="<br />

tokens ::= (token ((" ") + token)*)*<br />

token ::= text ("," attrib)*<br />

attrib ::= name '=' value<br />

name ::= text<br />

value ::= text<br />

Special characters in "text" values can be escaped using the escape character \ . The following escape<br />

sequences are recognized:<br />

Escape<br />

Sequence<br />

Description<br />

"\ " literal space character<br />

"\,"<br />

literal , character<br />

"\="<br />

literal = character<br />

"\\"<br />

literal \ character<br />

"\n"<br />

newline<br />

"\r"<br />

carriage return<br />

"\t"<br />

horizontal tab<br />

Please note that Unicode sequences (e.g.<br />

Supported attribute names<br />

\u0001) are not supported.<br />

The following token attributes are supported, and identified with short symbolic names:<br />

Name Description Lucene attribute Value format<br />

i position increment PositionIncrementAttribute integer<br />

s start offset OffsetAttribute integer<br />

e end offset OffsetAttribute integer<br />

y lexical type TypeAttribute string<br />

f flags FlagsAttribute hexadecimal integer<br />

p payload PayloadAttribute bytes in hexadecimal format; whitespace is ignored<br />

Token positions are tracked and implicitly added to the token stream - the start and end offsets consider only the<br />

term text and whitespace, and exclude the space taken by token attributes.<br />

Example token streams<br />

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

64

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

Saved successfully!

Ooh no, something went wrong!