@Test public void simpleQueryString() { SolrParams p = new SolrQuery("foo"); BlurQuery query = BlurQueryHelper.from(p); assertEquals("Should get our query string back.", "foo", query.getQuery().getQuery()); }
public static BlurQuery from(SolrParams p) { BlurQuery blurQuery = new BlurQuery(); Query query = new Query(); query.setRowQuery(false); maybeAddSelector(blurQuery, p); query.setQuery(p.get(CommonParams.Q)); blurQuery.setQuery(query); return blurQuery; }
BlurQueryHelper { public static BlurQuery from(SolrParams p) { BlurQuery blurQuery = new BlurQuery(); Query query = new Query(); query.setRowQuery(false); maybeAddSelector(blurQuery, p); query.setQuery(p.get(CommonParams.Q)); blurQuery.setQuery(query); return blurQuery; } }
BlurQueryHelper { public static BlurQuery from(SolrParams p) { BlurQuery blurQuery = new BlurQuery(); Query query = new Query(); query.setRowQuery(false); maybeAddSelector(blurQuery, p); query.setQuery(p.get(CommonParams.Q)); blurQuery.setQuery(query); return blurQuery; }  }
BlurQueryHelper { public static BlurQuery from(SolrParams p) { BlurQuery blurQuery = new BlurQuery(); Query query = new Query(); query.setRowQuery(false); maybeAddSelector(blurQuery, p); query.setQuery(p.get(CommonParams.Q)); blurQuery.setQuery(query); return blurQuery; }  static BlurQuery from(SolrParams p); }
BlurQueryHelper { public static BlurQuery from(SolrParams p) { BlurQuery blurQuery = new BlurQuery(); Query query = new Query(); query.setRowQuery(false); maybeAddSelector(blurQuery, p); query.setQuery(p.get(CommonParams.Q)); blurQuery.setQuery(query); return blurQuery; }  static BlurQuery from(SolrParams p);  }