solr查询如何支持多个fq
多个fq的url为:
q=*:*&fq=a:[1 TO *]&fq=b:[2 TO *]
ModifiableSolrParams params = new ModifiableSolrParams();params.set("fq", "a:[1 TO *]");params.set("fq", "b:[2 TO *]");
ModifiableSolrParams params = new ModifiableSolrParams();SolrQuery filterQuery = new SolrQuery();filterQuery.addFilterQuery("a:[1 TO *]");filterQuery.addFilterQuery("b:[2 TO *]");params.add(filterQuery);