private static boolean badQueryTensorType(TensorType queryTensorType) {
            var queryDimensions = queryTensorType.dimensions();
            if (queryDimensions.size() != 1) {
                return true;
            }
            var dim = queryDimensions.get(0);
            return ! dim.isIndexed();
        }
Validates any NearestNeighborItem query items.

@author arnej
container-search/src/main/java/com/yahoo/search/searchers/ValidateNearestNeighborSearcher.java