solr
大石榴哥哥
这个作者很懒,什么都没留下…
展开
-
solr 通过URL的方式删除索引数据以及结构
1.删除索引数据Solr 删除全部索引:http://localhost:8080/solr/update/?stream.body=<delete><query>*:*</query></delete>&stream.contentType=text/xml;charset=utf-8&commit=truesolr 删...原创 2014-12-25 10:27:19 · 157 阅读 · 0 评论 -
用子查询解决solr评分计算的问题
思路是用子查询得出分数,然后用solr的自有的函数进行计算 http://127.0.0.1:8983/solr/collection1/select?q=text:思源科技研发事业部toon基础平台李&wt=json&indent=true&fl=*,scorehttp://127.0.0.1:8983/solr/collection1/select?q=...原创 2016-04-12 14:28:32 · 317 阅读 · 0 评论 -
ivy 异常记录
下载 solr-5.3.0 源码:然后用 ant eclipse 命令下载源码。默认的是从repo1.maven.org下载,有的jar包下载不到就报错。 解决方案: 将jar包手工下载下来 ,然后手动放到C:\Users\用户自定义\.ivy2\cache\ 这个目录下面。...原创 2016-01-15 11:57:33 · 175 阅读 · 0 评论 -
solr face语法示例
http://local:8080/solr/demand_shard1_replica3/select?q=secondCategorySeg%3A%E8%88%9E&sort=price+desc&rows=0&wt=json&indent=true&facet=true&facet.field=secondCategory&facet...原创 2015-12-31 15:47:53 · 128 阅读 · 0 评论 -
solr 属性值为null的doc排序靠后
解决方案:<field>标签添加一个属性:sortMissingLast="true"例子:<field name="price" type="tdouble" indexed="true" stored="true" sortMissingLast="true"/> 不管是 :sort= price asc 还是原创 2015-12-23 15:54:53 · 471 阅读 · 0 评论 -
solr-cloud添加新的副本示例
添加副本:http://172.28.4.84:11060/solr/admin/cores?action=CREATE&name=sceneApplication_sceneApplication_shard3_replica2&instanceDir=sceneApplication_sceneApplication_shard3_replica2&dataDi...原创 2016-11-23 18:53:02 · 467 阅读 · 0 评论 -
solr 中的group使用说明
参数说明 参数名参数值说明grouptrue/falseif true, turn on result grouping(如果为true,结果分组)group.field[fieldname]Group based on the unique values o...原创 2015-12-07 18:30:06 · 537 阅读 · 0 评论 -
solr构建suggest命令
http://localhost:8080/solr/suggest?suggest=true&suggest.reloadAll=true&suggest.buildAll=true原创 2015-11-13 09:53:25 · 129 阅读 · 0 评论 -
can not use FieldCache on a field which is neither indexed nor has doc
can not use FieldCache on a field which is neither indexed nor has doc:null 问题原因:搜索参数不能为空原创 2015-11-09 15:48:00 · 340 阅读 · 0 评论 -
solr 的 ReversedWildcardFilterFactory 调研
1.使用方法<fieldType name="text_rvswc" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory&qu原创 2015-11-06 18:27:36 · 320 阅读 · 0 评论 -
solr查询某个字段为空和不为空的语法
content为空:q=-(content:*)不为空:content:*原创 2015-10-30 15:04:03 · 5792 阅读 · 2 评论 -
solr查询域为空值的方法
solr查询域为空值的方法标签:例,我想查找内容字段content为空值的文档,看看文档有多少?执行如下查询.http://127.0.0.1:11100/solr/province/select?q=-(content:*)&wt=json&indent=true...原创 2015-09-03 09:57:47 · 244 阅读 · 0 评论 -
solr中一些重要概念
评分=条目出现的次数 * 词的稀有程度的平方 * 权重 权重=字段^配置的权重 solr三大配置文件:solr.xml 定义属性来管理,日志,分片和solrCoudsolrconfig.xml 为一个特定的solr core 定义主要配置schema.xml 定义你的索引结构,包括值域和值域类型 solr性能优化:1.caching2.l...原创 2015-07-02 18:32:49 · 132 阅读 · 0 评论 -
solr原子更新
solr原子更新的时候,这条记录字段为store="true"的时候可以保存原来索引, 如果store="false"的时候原来索引丢失原创 2015-03-07 15:20:25 · 84 阅读 · 0 评论 -
solr通过 url创建collection
http://localhost:8983/solr/admin/collections?action=CREATE&name=collection action=DELETE 是删除action=RELOAD 是重新加载 创建core http://localhost:8983/solr/admin/cores?action=create...原创 2018-03-30 10:55:31 · 334 阅读 · 0 评论