Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr template - queryForHighlightPage ignore RequestMethod parameter [DATASOLR-475] #593

spring-projects-issues opened this issue Jul 16, 2018 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Jul 16, 2018

vzak-profimedia opened DATASOLR-475 and commented

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. 

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


Affects: 3.0.8 (Kay SR8)

Referenced from: commits 0b79e81, 59a0034

Backported to: 3.0.10 (Kay SR10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants