nohm icon indicating copy to clipboard operation
nohm copied to clipboard

Searching for a unique while other searches would prevent finding that unique still results in unique

Open maritz opened this issue 10 years ago • 2 comments

When searching for a property that is indexed as a unique and that unique exists, it will always be returned - even if another search property would prevent it.

maritz avatar Aug 12 '15 11:08 maritz

What do you mean by "even if another search property would prevent it" ? In the doc there is no reference about preventing only unique result. "Unique is the fastest and if you look for a property that is unqiue all other search criterias are ignored.".

It could be improved by passing object to unique param name. I have used object for my regexp functionallity.

 find({"param_name":{value:'unique_value', optional:true}}, cb)

sam2x avatar May 21 '16 13:05 sam2x

Hope that clears it up. ;-)

maritz avatar May 21 '16 16:05 maritz