Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > InfoDigger™ > Erlang Modules > infodigger
enable/1
Description
enable/1 is an Erlang function exported by "infodigger" module.
This function tries to enable the selected Index.
References
•open/4
Parameters
Name
Type
Index
atom()
Name used to handle an existing index already opened by the system for usage.
Result
Value or Type
{index_state,enabled} | {index_state,undefined}
Returns on of the following values:
•{index_state,enabled} when the Index is successfully enabled, or
•{index_state,undefined} when the operation failed for some reason.
Code Sample
> infodigger:enable(index_a).
{index_state,enabled}