1. A method of retrieving documents, comprising: performing processing associated with coding, with a processor, a plurality of stored documents as respective document feature vectors in a bit-attribute matrix, each feature vector comprising at least one attribute or class; performing processing associated with generating, with the processor, a query vector based on a query document; performing processing associated with performing, with the processor, one or more logical operations between the query vector and the respective document feature vectors in the bit-attribute matrix to obtain respective similarity measures; and performing processing associated with assigning, with the processor, an attribute or class to the query document based on the attribute or classes of one or more of the feature vectors.