lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject forbid empty field names?
Date Fri, 12 May 2006 21:37:14 GMT

This produces a "term out of order" exception:

doc.add(new Field("", "", Field.Store.YES, Field.Index.UN_TOKENIZED));

As the exception is quite confusing we should probably catch it earlier, 
providing a better message. But would it be okay to disallow all empty 
field names? If not, I'd at least like to throw an exception if both field 
name and value are empty (null values do already produce a helpful 
exception)

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message