create/2 is an Erlang function exported by "infodigger" module. This function create a new index infrastructure. On success returns the current index state. Before invoking the function requires the current Index to be registered and disabled: •in case the index is not registered, then an exception will be raised; •in case the index is registered but not disabled, then the return value will be simply {index_state, Mode}, where Mode is the current state mode of the Index. •in case the index is registered and disabled, then the function will try to create/recreate the index. During this process the state remains updating: oon success the function turns the state to enabled; oon failure the function preserves the state to disabled. |
|
|