0
我们可以使用Solr的范围查询,如: http://localhost:8983/solr/select?q=queryStr&fq=x:[10 TO 100]和Y:20〜300] 或: http://localhost:8983/solr/select?q=queryStr&fq=x:[10 TO 100] & FQ = Y:20〜300]关于SolrJ范围查询的问题?
如何使这个范围通过使用solrJ查询?
我们可以使用Solr的范围查询,如: http://localhost:8983/solr/select?q=queryStr&fq=x:[10 TO 100]和Y:20〜300] 或: http://localhost:8983/solr/select?q=queryStr&fq=x:[10 TO 100] & FQ = Y:20〜300]关于SolrJ范围查询的问题?
如何使这个范围通过使用solrJ查询?
您可以在SolrQuery类使用addFilterQuery() method。只需按原样传递过滤器查询(“x:[10 TO 100] AND y:[20 TO 300]
”)