By default, TREX indexes properties of type String as Text properties. However, you can also specify that TREX is to index these properties as Strings.
The benefits of storing properties in TREX as strings are that they require less space and the search performance is better. Another benefit of indexed String properties is that you can perform operations such as is larger than and is smaller than.
However, you cannot perform a linguistic search for String properties.
Index Property as String
To ensure that TREX indexes a property of type String as a String property, you must add the entry IndexAsString to the Additional Metadata parameter.
Index Property as Text and as String
To additionally index a property as a string that TREX indexes as text, proceed as follows:
Parameter | Description |
---|---|
Namespace Alias |
Must be identical to the namespace of the first property |
Property ID |
Property ID of the first property with the suffix _asString Example: Property ID of the first property: contenttype Property ID of the second property: contenttype_asString |
Additional Metadata |
Add the entry IndexAsString. |