Set document field as a mandatory

Hi,

is it possible to set document field as a mandatory? So something like
opposite of "null_value" mapping. If the document does not have that field
or it is null, do not index it and fire error.
I think this can be useful integrity constrain.

Regards,
Lukas

No, there isn't an option to do so.

On Tuesday, March 13, 2012 at 3:18 PM, Lukáš Vlček wrote:

Hi,

is it possible to set document field as a mandatory? So something like opposite of "null_value" mapping. If the document does not have that field or it is null, do not index it and fire error.
I think this can be useful integrity constrain.

Regards,
Lukas