- COPYRIGHT AND LICENSE
The name of the index.
By default, indices are not dynamic. That means that fields that are unknown to the ElasticSearch mapping will not be indexed and no dynamic mapping will be auto generated. Since the mapping is generated by this module, there is no need to have the dynamic mapping enabled. If you want to enable it anyway, set this attribute to
Types are loaded from this namespace if they are not explicitly defined using "types". The namespace defaults to the package name of the model.
This string defines the interval in which the index is refreshed and new documents are made available to the search. It defaults to
1s and can be set to
-1 to disable refreshing completely.
Indices can be refreshed manually by calling "refresh".
A HashRef where the key is an indentifier for the value, the ElasticSearchX::Model::Document meta object. This attribute is automatically built if it isn't provided. It uses "namespace" to look for ElasticSearchX::Model::Document classes. The name is derived from the class name by lowercasing the last name segment (i.e.
An ArrayRef of traits which are applied to the index object. This is useful if you want to alter the behaviour of methods like "deploy".
This attribute is set automatically by the model class when you add an index. It can be used to access the model through the index object.
Sets the number of shards and replicas. Both default to
Sets the refresh interval. Defaults to
The ElasticSearch object.
Returns an instance of ElasticSearchX::Model::Bulk.
Refresh index manually.
Delete an index from ElasticSearch.
This software is Copyright (c) 2018 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License