Example usage for org.springframework.data.solr.core.query SimpleQuery setRequestHandler

List of usage examples for org.springframework.data.solr.core.query SimpleQuery setRequestHandler

Introduction

In this page you can find the example usage for org.springframework.data.solr.core.query SimpleQuery setRequestHandler.

Prototype

void setRequestHandler(String requestHandler);

Source Link

Document

Sets the request handler.

Usage

From source file:org.springframework.data.solr.core.DefaultQueryParserTests.java

@Test
public void testWithFooRequestHandler() {
    SimpleQuery query = new SimpleQuery(new SimpleStringCriteria("field_1:value_1"));
    query.setRequestHandler("/foo");
    SolrQuery solrQuery = queryParser.constructSolrQuery(query);
    Assert.assertNotNull(solrQuery.get("qt"));
}