Spring Data Solr
  1. Spring Data Solr
  2. DATASOLR-63

Sort parameter passed to a query method is ignored when query method uses named query

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 RC1
    • Fix Version/s: 1.0 GA
    • Component/s: None
    • Labels:
      None

      Description

      The sort parameter passed to a query method which uses named query is ignored when the executed query is created. The query returns correct documents but the query results are not sorted.

      Example:

      @Query(name = "TodoDocument.findByNamedQuery")
      public List<TodoDocument> findByNamedQuery(String searchTerm, Sort sort);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Christoph Strobl
            Reporter:
            Petri Kainulainen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: