@Test public void basicFullTextQuery() throws Exception { String table = "basicFullTextQuery"; SolrServer server = TestTableCreator.newTable(table) .withRowCount(1).withRecordsPerRow(2) .withRecordColumns("fam.value", "fam.mvf", "fam.mvf").create(); SolrQuery query = new SolrQuery("value0-0"); QueryResponse response = server.query(query); assertEquals("We should get our doc back.", 1l, response.getResults().getNumFound()); SolrDocument docResult = response.getResults().get(0); assertEquals("0", docResult.getFieldValue("recordid")); assertEquals("value0-0", docResult.getFieldValue("fam.value")); Collection<Object> mvfVals = docResult.getFieldValues("fam.mvf"); assertTrue("We should get all our values back[" + mvfVals + "]", CollectionUtils.isEqualCollection(mvfVals, Lists.newArrayList("value0-0", "value0-0"))); removeTable(table); }
@Override public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException { throw new RuntimeException("Not Implemented."); }
SolrLookingBlurServer extends SolrServer { @Override public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException { throw new RuntimeException("Not Implemented."); } }
SolrLookingBlurServer extends SolrServer { @Override public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException { throw new RuntimeException("Not Implemented."); } SolrLookingBlurServer(String controllerConnectionStr, String table); }
SolrLookingBlurServer extends SolrServer { @Override public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException { throw new RuntimeException("Not Implemented."); } SolrLookingBlurServer(String controllerConnectionStr, String table); @Override NamedList<Object> request(SolrRequest arg0); @Override void shutdown(); @Override UpdateResponse add(Collection<SolrInputDocument> docs, int commitWithinMs); @Override UpdateResponse add(final Collection<SolrInputDocument> docs); @Override UpdateResponse add(SolrInputDocument doc, int commitWithinMs); @Override UpdateResponse add(SolrInputDocument doc); @Override UpdateResponse addBean(Object obj, int commitWithinMs); @Override UpdateResponse addBean(Object obj); @Override UpdateResponse addBeans(Collection<?> arg0, int arg1); @Override UpdateResponse addBeans(Collection<?> beans); @Override UpdateResponse commit(); @Override UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit); @Override UpdateResponse commit(boolean waitFlush, boolean waitSearcher); @Override UpdateResponse deleteById(List<String> ids, int commitWithinMs); @Override UpdateResponse deleteById(final List<String> ids); @Override UpdateResponse deleteById(String id, int commitWithinMs); @Override UpdateResponse deleteById(String id); @Override UpdateResponse deleteByQuery(String query, int commitWithinMs); @Override UpdateResponse deleteByQuery(String query); @Override DocumentObjectBinder getBinder(); @Override UpdateResponse optimize(); @Override UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, final int maxSegments); @Override UpdateResponse optimize(boolean waitFlush, boolean waitSearcher); @Override SolrPingResponse ping(); @Override QueryResponse query(SolrParams params, METHOD method); @Override QueryResponse query(SolrParams params); @Override QueryResponse queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback); @Override UpdateResponse rollback(); }
SolrLookingBlurServer extends SolrServer { @Override public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException { throw new RuntimeException("Not Implemented."); } SolrLookingBlurServer(String controllerConnectionStr, String table); @Override NamedList<Object> request(SolrRequest arg0); @Override void shutdown(); @Override UpdateResponse add(Collection<SolrInputDocument> docs, int commitWithinMs); @Override UpdateResponse add(final Collection<SolrInputDocument> docs); @Override UpdateResponse add(SolrInputDocument doc, int commitWithinMs); @Override UpdateResponse add(SolrInputDocument doc); @Override UpdateResponse addBean(Object obj, int commitWithinMs); @Override UpdateResponse addBean(Object obj); @Override UpdateResponse addBeans(Collection<?> arg0, int arg1); @Override UpdateResponse addBeans(Collection<?> beans); @Override UpdateResponse commit(); @Override UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit); @Override UpdateResponse commit(boolean waitFlush, boolean waitSearcher); @Override UpdateResponse deleteById(List<String> ids, int commitWithinMs); @Override UpdateResponse deleteById(final List<String> ids); @Override UpdateResponse deleteById(String id, int commitWithinMs); @Override UpdateResponse deleteById(String id); @Override UpdateResponse deleteByQuery(String query, int commitWithinMs); @Override UpdateResponse deleteByQuery(String query); @Override DocumentObjectBinder getBinder(); @Override UpdateResponse optimize(); @Override UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, final int maxSegments); @Override UpdateResponse optimize(boolean waitFlush, boolean waitSearcher); @Override SolrPingResponse ping(); @Override QueryResponse query(SolrParams params, METHOD method); @Override QueryResponse query(SolrParams params); @Override QueryResponse queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback); @Override UpdateResponse rollback();  }