Searchable Id
Summary
Used to map the searchable class's identifier.
Syntax
static searchable = {
id options
}Description
Maps the searchable id with the given
options.
Parameters
Options
- @name@ - The name of the searchable id field in the index. Default is
id@. This allows you to target the id field in a query, eg, if you decided to name your id @"__the_id__" you could query it with @"__the_id__:10"@.
- @accessor@ - How the property is accessed. One of
"field" or @"property"@. Default is @"property"@
- @converter@ - The name of a configured converter to use to convert the property value to/from text
Examples
// Obscure the name of the id property
id name: "__the_id__"