Support indexing by arbitrary sets