Inconsistent Query Behavior with Negate Button Ignoring Blank Fields

Another non-intuitive query behavior I have discovered, only today, (and I’m not sure if this is intentional or a bug) is that querying with the negate button active and then querying again with the negate button inactive does not return all possible records - it ignores all records where that field is totally blank even though a blank field necessarily satisfies the ‘negate’ condition.

For example if I query records where field number contains “SMP” I get 977 results. When I query records where field number does NOT contain “SMP” I get 1511 results. Looks like I have only 2488 records - but there are another 3541 records with blank field number that didn’t appear in either search. This has caused me a lot of confusion and probably reporting wrong numbers to granting agencies in progress reports. I propose that the “negate” operation should include records where the queried field is empty since they logically fall under that category. Or at least make this behavior more explicit in the interface somehow.

1 Like

Update: This only seems to be true for Specify7 - Specify6 includes empty results when you query for ‘NOT’ values.

1 Like

Hi @Plarson,

I’ve written up an issue on the Specify 7 repository so that we can revisit this behavior in the future:

Thanks for your comment!

1 Like