syncano-node
syncano-node copied to clipboard
Document which fields can be index'ed
Where we can add order_index, filter_index etc.
Part of this could be porting https://legacy-docs.syncano.io/docs/data-objects-filtering-ordering
Current state of core:
all_types = {'string', 'text', 'integer', 'float', 'boolean', 'datetime', 'file', 'reference', 'object', 'array', 'geopoint', 'relation'}
noindex_types = {'text', 'file', 'object'} # these cannot have any indexes at all
special cases:
reference - can have filter, unique but no order
array, geopoint and relation - only filter (no unique, no order)
@23doors so beside array, geopoint and relation all other can have unique? or text file and object also don't have unique?
text, file and object cannot have any index at all - be that order, filter or unique. So text, file, object, array, geopoint and relation all cannot be unique.