Solr6.0重要新特性解析
Posted SOLR中国
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Solr6.0重要新特性解析相关的知识,希望对你有一定的参考价值。
SOLR-8831: allow _version_ field to be retrievable via docValues
docValues看来是越来越成熟了,之前使用给性能造成不小的影响,这个有待测试;
继地理信息检索之后又一重大新特性,从描述上看是图数据结构检索。
SOLR-7543: Basic graph traversal query Example: {!graph from="node_id" to="edge_id"}id:doc_1
虽然join在分布式模式下不建议使用,但无法避免很多时候还是需要;
SOLR-7584: Adds Inner and LeftOuter Joins to the Streaming API and Streaming Expressions
SOLR-8188: Adds Hash and OuterHash Joins to the Streaming API and Streaming Expressions
增加jdbc驱动支持,增加多个sql特性,门槛越来越低了,也开始贴近大数据分析需求。
SOLR-7560: Parallel SQL Support
SOLR-7986: JDBC Driver for SQL Interface
SOLR-8038: Add the StatsStream to the Streaming API and wire it into the SQLHandler
SOLR-8086: Add support for SELECT DISTINCT queries to the SQL interface
SOLR-8479: Add JDBCStream to Streaming API and Streaming Expressions for integration with external data sources
SOLR-8002: Add column alias support to the Parallel SQL Interface
SOLR-8502: Improve Solr JDBC Driver to support SQL Clients like DBVisualizer
Properties props = new Properties();
props.put("aggregationMode", "map_reduce");
props.put("numWorkers", "10");
Connection con = DriverManager.getConnection("jdbc:solr://<zkhost:port>?collection=<collection>", props);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select a, sum(b) from tablex group by a having sum(b) > 100");
while(rs.next()) {
String a = rs.getString("a");
double sumB = rs.getDouble("sum(b)");
}
Properties props = new Properties();
props.put("aggregationMode", "facet");
Connection con = DriverManager.getConnection("jdbc:solr://<zkhost:port>?collection=<collection>", props);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select a, sum(b) from tablex group by a having sum(b) > 100");
while(rs.next()) {
String a = rs.getString("a");
double sumB = rs.getDouble("sum(b)");
}
以上是关于Solr6.0重要新特性解析的主要内容,如果未能解决你的问题,请参考以下文章