1. A method, comprising: creating an inverted index for features of a set of data elements, wherein each of the data elements is represented by a vector of features, wherein the inverted index, when queried with a feature, outputs one or more data elements containing the feature; ranking the features of the set of data elements; and for each feature in the ranked list, issuing a query against the inverted index for data elements having the feature and not having any previously selected feature; and creating a cluster of the data elements based on results returned in response to the query.