Package com.github.seratch.scalikesolr.request.query

Examples of com.github.seratch.scalikesolr.request.query.Query


        client = Solr.httpServer(new URL("http://localhost:8983/solr")).getNewClient();
    }

    @Test
    public void doQuery() throws Exception {
        QueryRequest request = new QueryRequest(new Query("author:Rick"));
        QueryResponse response = client.doQuery(request);
        assertThat(response.getResponseHeader(), is(notNullValue()));
        assertThat(response.getResponse(), is(notNullValue()));
        assertThat(response.getHighlightings(), is(notNullValue()));
        assertThat(response.getMoreLikeThis(), is(notNullValue()));
View Full Code Here


        }
    }

    @Test
    public void doQuery_MultiByteChars() throws Exception {
        QueryRequest request = new QueryRequest(new Query("author:日本人"));
        request.set("mlt", "true");
        request.set("mlt.fl", "author");
        QueryResponse response = client.doQuery(request);
        assertThat(response.getResponseHeader(), is(notNullValue()));
        assertThat(response.getResponse(), is(notNullValue()));
View Full Code Here

TOP

Related Classes of com.github.seratch.scalikesolr.request.query.Query

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.