← Back to carmenta.com
Carmenta Engine SDK Documentation
×

RaveGeoDataSet.SearchableCondition Property

Gets or sets a condition that determines which features will be included in the search index for the dataset.

Thread safety: This property is not thread-safe. Show

Syntax

C#
public Condition SearchableCondition { get; set; }

Property Value

Type: Condition
Default: null
A condition that determines which features to include in the search index. All features are included if a condition is not specified.

This property can only be modified before the dataset has been initialized. Attempting to modify it after initialization will cause an exception to be thrown.

Remarks

This property can be used if you only want to include a subset of all features in a dataset in the associated search index.

For example, VMAP data will typically contain the string UNK to signal that something like the name of a city or built-up area is unknown. To skip these features when building the search index we can set the SearchableCondition to (provided the name attribute is called nam):

nam != "UNK"

Platforms

Windows, Linux

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept