Search:

Type: Posts; User: jelinden; Keyword(s):

Search: Search took 0.04 seconds.

  1. Really strange, made a simplified test to...

    Really strange, made a simplified test to reproduce this, but it worked correctly.

    As a last resort I added an index:
    mongoTemplate.ensureIndex("collection", new Index("clicks",...
  2. Yes, I've tried, the result is the same. For...

    Yes, I've tried, the result is the same.
    For some reason the sort with date is always the number one sort.

    Behauviour of these are exactly the same:
    query.sort().on("date",...
  3. spring-data mongodb and sorting with multiple fields

    I have two fields I want to sort with

    (order by clicks descending, date descending)

    query.sort().on("clicks", Order.DESCENDING);
    query.sort().on("date", Order.DESCENDING);

    With this it...
Results 1 to 3 of 3