(Quick Reference)
unindex
Purpose
Remove specific domain instances from the ElasticSearch indices.
Internally, the plugin uses the Bulk API of ElasticSearch to perform the delete requests.
Only domains that are root-mapped have this method injected.
Examples
// Unindex all instances of the MyDomain domain class
MyDomain.unindex()// Unindex a specific domain instance
MyDomain md = MyDomain.get(1)
md.unindex()// Index a collection of domain instances
def ds = MyDomain.findAllByValue('that')
MyDomain.unindex(ds)
Description
unindex
signatures:
// Unindex a specific domain instance
def unindex()
// Unindex ALL instances of a domain class
static unindex()
// Unindex a Collection of domain instances
static unindex(Collection<Domain> domains)
// Same with an ellipsis
static unindex(Domain… domain)
Parameters
Collection<Domain>
domains - A Collection
of domain instances to unindex.
Domain...
domain - Same as Collection<Domain>
, but with an ellipsis.