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

Sort parameter passed to a query method is ignored when annotated query is used

    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

      When a Sort parameter is passed to a query method which uses annotated query, the Sort parameter is ignored when the executed query is created. In other words, the query executed by a query method returns correct documents but the query results are not sorted.

      Example:

      @Query("title:*?0* OR description:*?0*")
      public List<TodoDocument> findByQueryAnnotation(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: