Set document field as a mandatory


(Lukáš Vlček) #1

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


(Shay Banon) #2

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


(system) #3