tator icon indicating copy to clipboard operation
tator copied to clipboard

Fix implicit AND of attributes if mixing multiple localization types in a single query

Open bctcvai opened this issue 1 year ago • 0 comments

With the cast support added a couple of edge cases have crept into search we probably want to address.

If I have a 2 localization types with the same attribute name, results are unionized as one would expect e.g. find all the boxes named "Sam". Say a line type and a box type.

Problems arise in combinatorics. If the box type also has a height attribute I might want to find all media that has a localization named "Sam" that are greater than 5 feet, some ambiguities arise. As built, Because the height is only on the box type, the localization list for lines would always be none.

Via the UI, we only support AND queries at the moment, so it isn't particularly critical nor can it present itself in using the Tator UI.

The issue would present itself if someone tried to do a query like: "Name == Sam || height > 5 feet" and expected results from both types. If they only actually wanted Box Types back, then the as-built behavior would be desirable.

bctcvai avatar Sep 12 '23 19:09 bctcvai