View ordering with range

Hello,
I would like to create a view that is returned in a specific order (for example, by the doc id or a datetime field), but can be filtered by a key range. For example, suppose I had a lot of documents like this:

{
    "priority" : 0.1,
    "status": started,
    "submitted": "20140615"
}

These would have various priority levels, status values and submitted times. I would like to be able to get a list of all documents with the "started" status, with a priority between 0.4 and 0.6, but ordered by the doc.id or submitted time, and another query with priorities between 0.1 and 0.5, but also returned in the doc.id or submitted time order. Is there a way to do this?

Thanks,
Jason

0 Answers

No answers yet