: > When I perform a range query of ['' TO *] to filter out docs where a : > particular field has a value, this does what I want, but I thought using the : > square brackets was inclusive, so empty-string values should actually be : > included? : : They should be. Are you saying that zero length values are not : included by the range query above?
Oh ... maybe i missread the question ... are you are saying that when you add a document you explicitly include the empty string as a field value, but later when yoy search for ['' TO *] those documents do not get returned? what exactly is the field type you are using, and what update processors do you have configured? If you are using a StrField (w/o any special processors) then the literal value "" should exist a a term -- but if you are using a TextField w/some analyzer then the analyzer may be throwing that input away. Likewise there are update processors that do this explicitly: https://lucene.apache.org/solr/5_5_0/solr-core/org/apache/solr/update/processor/RemoveBlankFieldUpdateProcessorFactory.html -Hoss http://www.lucidworks.com/