Re: Empty fields - dynamic

2008-03-16 Thread Chris Hostetter
: Is there a way to specify that a dynamic field cannot have an empty string? : With static fields, you can enforce this with 'required="true" : default="-1"'. Uh... are you sure about that? required="true" just says there must be a value supplied, the empty string is still a value. (i just ver

Empty fields - dynamic

2008-03-12 Thread Lance Norskog
Is there a way to specify that a dynamic field cannot have an empty string? With static fields, you can enforce this with 'required="true" default="-1"'. Is there any way to do enforce this in the shipped Solr 1.2? One could write a new custom analyzer that requires input. But is there anything