13.05.2014 Views

apache-solr-ref-guide-4.6.pdf

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

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

DoubleField<br />

Double (64-bit IEEE floating point).<br />

ExternalFileField Pulls values from a file on disk. See the section Working with External Files and Processes.<br />

EnumField<br />

FloatField<br />

Allows defining an enumerated set of values which may not be easily sorted by either alphabetic or<br />

numeric order (such as a list of severities, for example). This field type takes a configuration file, which<br />

lists the proper order of the field values. See the section Working with Enum Fields for more<br />

information.<br />

Floating point (32-bit IEEE floating point).<br />

ICUCollationField Supports Unicode collation for sorting and range queries. See the section Unicode Collation.<br />

IntField<br />

LatLonType<br />

LongField<br />

PointType<br />

PreAnalyzedField<br />

RandomSortField<br />

ShortField<br />

Integer (32-bit signed integer).<br />

Spatial Search: a latitude/longitude coordinate pair. The latitude is specified first in the pair.<br />

Long integer (64-bit signed integer).<br />

Spatial Search: An arbitrary n-dimensional point, useful for searching sources such as blueprints or<br />

CAD drawings.<br />

Provides a way to send to Solr serialized token streams, optionally with independent stored values of a<br />

field, and have this information stored and indexed without any additional text processing. Useful if you<br />

want to submit field content that was already processed by some existing external text processing<br />

pipeline (e.g. tokenized, annotated, stemmed, inserted synonyms, etc.), while using all the rich<br />

attributes that Lucene's TokenStream provides via token attributes.<br />

Does not contain a value. Queries that sort on this field type will return results in random order. Use a<br />

dynamic field to use this feature.<br />

Short integer. deprecated, use TrieIntField instead<br />

SortableDoubleField The Sortable fields provide correct numeric sorting. If you use the plain types ( DoubleField,<br />

IntField, and so on) sorting will be lexicographical instead of numeric.<br />

SortableFloatField<br />

SortableIntField<br />

SortableLongField<br />

Numerically sorted floating point.<br />

Numerically sorted integer.<br />

Numerically sorted long integer.<br />

SpatialRecursiveP<strong>ref</strong>ixTreeFieldType (RPT for short) Spatial Search: Accepts latitude comma longitude strings or other shapes in WKT<br />

format.<br />

StrField<br />

TextField<br />

TrieDateField<br />

TrieDoubleField<br />

TrieField<br />

TrieFloatField<br />

TrieIntField<br />

TrieLongField<br />

UUIDField<br />

String (UTF-8 encoded string or Unicode).<br />

Text, usually multiple words or tokens.<br />

Date field accessible for Lucene TrieRange processing.<br />

Double field accessible Lucene TrieRange processing.<br />

If this type is used, a "type" attribute must also be specified, with a value of either: integer, long, float,<br />

double, date. Using this field is the same as using any of the Trie fields.<br />

Floating point field accessible Lucene TrieRange processing.<br />

Int field accessible Lucene TrieRange processing.<br />

Long field accessible Lucene TrieRange processing.<br />

Universally Unique Identifier (UUID). Pass in a value of "NEW" and Solr will create a new UUID.<br />

The MultiTermAwareComponent has been added to relevant <strong>solr</strong>.TextField entries in schema.xml (e.g., wildcards, regex, p<strong>ref</strong>ix, range,<br />

etc.) to allow automatic lowercasing for multi-term queries.<br />

Further, you can now optionally specify analyzerType="multiterm" in schema.xml; if you don't, analyzer will process the fields according<br />

to their specific attributes.<br />

Working with Currencies and Exchange Rates<br />

The currency FieldType provides support for monetary values to Solr/Lucene with query-time currency conversion and exchange rates. The<br />

following features are supported:<br />

Apache Solr Reference Guide 4.6<br />

32

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

Saved successfully!

Ooh no, something went wrong!