Fork me on GitHub
Phraseanet Documentation

Fields type in Phraseanet

Using Phrasea engine involves typing the fields of the Phraseanet base format.

Four types are available:

STRING

It is the default type. There are no indexation by value(*). It neither allows searches with relational operators =, <, >... nor sorting.

TEXT

The fields contents are indexed by value, as they are. This type is best used for exact searches (“author=William Shakespeare”).

NUMBER

The content are interpreted as a number. This type allows searches with relational operators (width>1000) or sorting by numerical value (for example, by filesize).

DATE

The expected content is an iso date format, eventually incomplete (for example : 2009). This formatting allows comparisons on dates (“date>=2000 and date<2012/12/20”) or sorting by date. When a field has a DATE format, a calendar assists the typing of a date in edition form.