ravendbravendb-studio

Selecting documents with empty strings in RavenDB Studio


This ought to be simple enough, but I can't get a select statement going in RavenDB Studio where I say "give me all documents where field NAME_x is empty". The usual suspects don't yield anything:

NAME_5:[[EMPTY_STRING]]

NOT NAME_5:[[EMPTY_STRING]] (just to see if the logic was backwards somehow)

NAME_5: [[NULL_VALUE]]

The index DOES include all fields (NAME_0 through NAME_5) and there ARE plenty of records that have this

(...)
"NAME_5": "",
(...)

so my quesion is - why don't they show up ? I guess the query's syntax is wrong, but I don't know where/how. Thanks for a hint !


Solution

  • This should just work. See: http://live-test.ravendb.net/studio/index.html#databases/query/index/recentquery--187795092?&database=44438301 enter image description here

    Here is what I get when I try.