Redis
Redis , : Sorted Set = > . , , ZRANGEBYSCORE:
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
Sorted Set commands Redis, ( ) . , , , Set.
As for MongoDB, since you mentioned millions, if you cannot bend incremental queries to work on your problem, I would not expect a second answer.
As @nickdos Solr Relevancy mentioned is a pretty powerful feature, but the number of attributes will be a problem, since for each element you need to store all these attributes in memory. Although a dozen for each may not be so bad => just try and see.
source
share