Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-63

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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);
      

        Attachments

          Activity

            People

            • Assignee:
              cstrobl Christoph Strobl
              Reporter:
              pkainulainen Petri Kainulainen
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: