List of usage examples for org.springframework.data.solr.core.query Query setDefType
void setDefType(String defType);
From source file:org.springframework.data.solr.core.query.SimpleQueryTests.java
@Test public void testCloneWithDefType() { Query source = new SimpleQuery(new Criteria("field_1").is("value_1")); source.setDefType("defType"); Query destination = SimpleQuery.fromQuery(source); Assert.assertEquals(source.getDefType(), destination.getDefType()); }