Package com.basho.riak.client.core.operations

Examples of com.basho.riak.client.core.operations.SearchOperation


        cluster.execute(op);
        op.get();
       
        prepSearch(bucketType, bucketName);
       
        SearchOperation searchOp = new SearchOperation.Builder(bucketName, "Alice*").build();
       
        cluster.execute(searchOp);
        SearchOperation.Response result = searchOp.get();
       
        assertEquals(result.numResults(), 2);
        for (Map<String, List<String>> map : result.getAllResults())
        {
            assertFalse(map.isEmpty());
View Full Code Here


       
        prepSearch(yokozunaBucketType, searchBucket);
       
        Thread.sleep(5000);
       
        SearchOperation searchOp = new SearchOperation.Builder(BinaryValue.create("test_index"), "multi_ss:t*").build();
       
        cluster.execute(searchOp);
        searchOp.await();
        assertTrue(searchOp.isSuccess());
        SearchOperation.Response result = searchOp.get();       
        for (Map<String, List<String>> map : result.getAllResults())
        {
            assertFalse(map.isEmpty());
            assertEquals(7, map.size()); // [_yz_rk, _yz_rb, multi_ss, content_s, _yz_rt, score, _yz_id]
            assertTrue(map.containsKey("multi_ss"));
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.operations.SearchOperation

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.