关于 Solr 你懂的
先上 data-config.xml 内容
---------
----------------------
主要我想问下 solr 支持多列表查询吗? 我说的是 这个 entity 之间没有关联的列表, 例如我这里,上面的是用户表,下面的是信息表, 它们是单独的查询, 在用户页面里访问用户entity, 在信息页面里访问信息entity。 如果可以, 那么我在 http://127.0.0.1:8080/solr/collection1/select?q=*%3A*&wt=json&indent=true 这个查询时,怎么指定 entity 是哪个? 我现在查询只能查到一个表的。 当然有 .net 的例子最好了, 我用的是 SolrNet 库
---------
<?xml version="1.0" encoding="utf-8"?>
<dataConfig>
<dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/test"
user="root"
password="root"/>
<document name="cms">
<entity name="view_blog" pk="id" query="select id,title,content from infos"
deltaQuery="select id,title,content from infos where last_modified > '${dataimporter.last_index_time}'" >
<field column="id" name="id" />
<field column="title" name="title" />
<field column="content" name="content" />
</entity>
<entity name="view_user" pk="uid" query="select uid,name,address from users where uid > 1"
deltaQuery="select uid,name,address from users where uid > 1 and last_modified > '${dataimporter.last_index_time}'" >
<field column="uid" name="uid_a" />
<field column="name" name="name_a" />
<field column="address" name="address_a" />
</entity>
</document>
</dataConfig>
----------------------
主要我想问下 solr 支持多列表查询吗? 我说的是 这个 entity 之间没有关联的列表, 例如我这里,上面的是用户表,下面的是信息表, 它们是单独的查询, 在用户页面里访问用户entity, 在信息页面里访问信息entity。 如果可以, 那么我在 http://127.0.0.1:8080/solr/collection1/select?q=*%3A*&wt=json&indent=true 这个查询时,怎么指定 entity 是哪个? 我现在查询只能查到一个表的。 当然有 .net 的例子最好了, 我用的是 SolrNet 库
...全文
相关推荐
solr从入门到精通教程
我做资讯系统经理时,为了更好地理解企业级搜索技术,更好的组织和指导团队工作,这本书给了我很大帮助,我愿把本书共享给各位,希望能帮到各位开发及做企业级资讯中心的项目经理。
ssm整合solr
spring整合 solr部署到Tomcat,spring整合 solr部署到Tomcat
Solr项目源码及solr资源包
使用springdatasolr编写的操作solr的项目,导入eclipse即可运行,里面包含solr的资源安装包
solr在java中使用总结
这是我使用的经验文档,希望能帮助到大家
Solr需要的jar
java对solr操作需要的jar包,本人亲测版本统一,可以使用


其他

