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

Solr template - queryForHighlightPage ignore RequestMethod parameter

    Details

    • Sprint:
      Lovelace RC1

      Description

      Hi there,

      We are using Spring Boot App with Data SOLR to searching on the SOLR engine. Sometimes we search with too many parameters.

      Therefore we use method queryForHighlightPage with RequestMethod param, to send request via POST method. But if I check implementation, then I see that there this param is ignored. 

      SolrTemplate.java
      @Override
      public <T> HighlightPage<T> queryForHighlightPage(String collection, HighlightQuery query, Class<T> clazz, RequestMethod method) {
        Assert.notNull(query, "Query must not be 'null'.");
        Assert.notNull(clazz, "Target class must not be 'null'.");
      
        NamedObjectsHighlightQuery namedObjectsQuery = new NamedObjectsHighlightQuery(query);
        QueryResponse response = querySolr(collection, namedObjectsQuery, clazz, getDefaultRequestMethod());
      
        return createSolrResultPage(query, clazz, response, namedObjectsQuery.getNamesAssociation());
      }
      

       

        Attachments

          Activity

            People

            • Assignee:
              cstrobl Christoph Strobl
              Reporter:
              vzak-profimedia vzak-profimedia
              Last updater:
              Oliver Drotbohm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified