![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
solr
baicp3
这个作者很懒,什么都没留下…
展开
-
solr 返回的json数据
上图json为solr 返回的json数据一下代码都是在js中操作var property1Value = json.facet_counts.facet_fields["property1"]; 这里传入的是字符串property1 因而要用双引号,也可以传入property1 property2 property3 property4 property5 和type 这原创 2013-10-18 16:12:01 · 2075 阅读 · 0 评论 -
solr data-config.xml配置文件的见解mysql数据源
陆续完善:data-config.xml配置文件entity name="product" dataSource="chishang"query="select id,'艺术品' cat,artists,content 'introduction',DATE_FORMAT(last_modified,'%Y-%m-%d') last_modified,focus,price,原创 2013-10-16 15:41:17 · 3605 阅读 · 0 评论 -
tomcat7 集成 solr4.3.1
本例使用的是:tomcat :apache-tomcat-7.0.41 Solr : solr-4.3.1 步骤一:将下载下来的,solr-conf下的solr 文件拷贝到你机器的tomcat的webapps目录下 步骤二:Solr usesUTF-8 file encoding. That means that we n原创 2013-11-10 12:14:34 · 1384 阅读 · 0 评论 -
xml中1字节的UTF-8序列的字节1无效
这是自己遇到的,原来解决方案是这样的:把xml的encoding属性值UTF-8改为UTF8,很神奇,具体为什么也不清楚!原创 2013-12-04 18:12:40 · 4101 阅读 · 0 评论 -
Solr SchemaXml 一些解读
Solr SchemaXml 一些解读博客分类: Apache Solr The schema.xml file contains all of the details about which fields your documents can contain, and how those fields should be dealt with when add原创 2014-01-14 10:10:45 · 1970 阅读 · 0 评论 -
solr schema.xml配置文件的理解
data-config.xml中的 语句的理解 1.只有index=true 的字段才能做facet.field的字段,同时只有index=true该字段才能当做搜索的内容 当然store=true或者false没关系2.store=true的好处是,从页面获取的json数据,如果该字段设置store=true则可以通过json获取该字段 同时才会在solr界面上显示3.原创 2013-10-21 11:33:24 · 1200 阅读 · 0 评论 -
Securing Solr on Tomcat access using a user account
Open [Tomcat install dir]\tomcat-users.xml for editing.Add the following lines within the element and save the changes (using your own username and password):<user username="your_username"原创 2014-01-19 17:07:54 · 1424 阅读 · 0 评论 -
solr 取参数的 用法
直接上图看吧看我如何去year price brand tpye等json.response.numFound (总共多少个)json.response.docs.length (通过分页获取到多少个)json.facet_counts.facet_fields.p3json.facet_counts.facet_fields.type原创 2014-02-10 10:55:48 · 1032 阅读 · 0 评论 -
本人自己项目中应用solr并取得需要的值
java代码中拼装solr 搜索的url 例如:java代码拼装出这样的http://localhost:8080/s/cj/select?q=*%3A*&wt=xml&indent=true 然后通过$(function() { dosearch();});function dosearch() { var url = "${query}"; $原创 2014-07-04 17:26:57 · 1416 阅读 · 0 评论