@Test public void testMultiFieldQuery() { mfq.addQueryOption(null, "blah de", query); assertEquals("q=(a_t:\"blah+de\"~10+OR+b_s:\"blah+de\"+OR+c_ss_lower:\"blah+de\")", query.toString()); }
public MultiFieldQuery(Set<String> fields) { this.searchFields = new ArrayList<String>(fields.size()); for(String field : fields) { searchFields.add(String.format("%s:%s", field, prepareValue(field, "%1$s"))); } }
MultiFieldQuery extends BaseQueryOption { public MultiFieldQuery(Set<String> fields) { this.searchFields = new ArrayList<String>(fields.size()); for(String field : fields) { searchFields.add(String.format("%s:%s", field, prepareValue(field, "%1$s"))); } } }
MultiFieldQuery extends BaseQueryOption { public MultiFieldQuery(Set<String> fields) { this.searchFields = new ArrayList<String>(fields.size()); for(String field : fields) { searchFields.add(String.format("%s:%s", field, prepareValue(field, "%1$s"))); } } MultiFieldQuery(Set<String> fields); }
MultiFieldQuery extends BaseQueryOption { public MultiFieldQuery(Set<String> fields) { this.searchFields = new ArrayList<String>(fields.size()); for(String field : fields) { searchFields.add(String.format("%s:%s", field, prepareValue(field, "%1$s"))); } } MultiFieldQuery(Set<String> fields); @Override void addQueryOption(String key, String value, SolrQuery query); }
MultiFieldQuery extends BaseQueryOption { public MultiFieldQuery(Set<String> fields) { this.searchFields = new ArrayList<String>(fields.size()); for(String field : fields) { searchFields.add(String.format("%s:%s", field, prepareValue(field, "%1$s"))); } } MultiFieldQuery(Set<String> fields); @Override void addQueryOption(String key, String value, SolrQuery query);  }