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

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

    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

      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);
      

        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: