文章分类 -  Solr

Solr Spatial Search
摘要:三种fieldType:LatLonTypeSpatialRecursivePrefixTreeFieldType(RPT)BBoxFieldSpatial Filters:geofilt&q=*:*&fq={!geofilt sfield=store}&pt=45.15,-93.85&d=5all... 阅读全文

posted @ 2014-12-30 11:33 ukouryou 阅读(654) 评论(0) 推荐(0)

suggest
摘要:suggest org.apache.solr.spelling.suggest.Suggester org.apache.solr.spelling.suggest.tst.TSTLookup otherSchools 0.005 true suggesti... 阅读全文

posted @ 2014-08-14 16:11 ukouryou 阅读(149) 评论(0) 推荐(0)

spellcheck
摘要:https://cwiki.apache.org/confluence/display/solr/Spell+Checking string default otherSchools solr.DirectSolrSpellChecker i... 阅读全文

posted @ 2014-08-14 15:26 ukouryou 阅读(172) 评论(0) 推荐(0)

Solr Configuration Best Practices and Troubleshooting Tips
摘要:https://support.datastax.com/entries/38367716-Solr-Configuration-Best-Practices-and-Troubleshooting-TipsConfiguration Best Practices(Straying from the... 阅读全文

posted @ 2014-05-30 16:41 ukouryou 阅读(615) 评论(0) 推荐(0)

upgrade steps
摘要:3 solr instance :solr1/solr2/solr32 collection:collection_company/collection_useroriginal config[ATALINA_OPTS="-verbose:gc -Xms1024m -Xmx2048m -XX:+PrintGCDetails -Xloggc:logs/gc -DzkHost=192.168.3.30:2181,192.168.3.30:2281,192.168.3.30:2381 -DhostPort=8800 -DnumShards=1"]1. upload new cof 阅读全文

posted @ 2014-01-09 15:40 ukouryou 阅读(251) 评论(0) 推荐(0)

Solr 4.6 | Setting Up an External ZooKeeper Ensemble | upgrade solr to Solr4.6
摘要:4.1----->4.6Solr从4.1到4.6还是有不少改变的。。。一、solr.xml在4.3版本开始Solr维护这两套不同格式的solr.xml,旧的遗留格式和自动发现模式,5.0以后会废除遗留格式而只支持自动发现;简单的说自动发现就是把原有格式里对core的定义放到了core.properties里在4.5版本开始Solr支持把solr.xml交给ZooKeeper维护关于solr.xml以及core.properties的格式参照https://cwiki.apache.org/confluence/display/solr/Solr+Cores+and+solr.xmlhtt 阅读全文

posted @ 2014-01-09 15:39 ukouryou 阅读(338) 评论(0) 推荐(0)

solr fieldType
摘要:1 2 3 4 7 8 9 10 阅读全文

posted @ 2013-08-13 12:23 ukouryou 阅读(91) 评论(0) 推荐(0)

replacing solr index when you modified solr configuration in solr4.1
摘要:you can not restart solrCloud in the production environment , so if you want to replace the index when the configuration has been changed,HOW to do it?1.prepare the new collection data,example : new_collection;upload new configurations2.add core new_collection3.swap old collection with the new_colle 阅读全文

posted @ 2013-03-14 11:28 ukouryou 阅读(145) 评论(0) 推荐(0)

Solr 4.0: Partial documents update
摘要:http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/SolrInputDocument doc = new SolrInputDocument();Map partialUpdate = new HashMap();partialUpdate.put("set", "foo");doc.addField("id", "test_123");doc.addField("description", partialUpdate) 阅读全文

posted @ 2013-02-27 18:15 ukouryou 阅读(431) 评论(0) 推荐(0)

Solr缓存
摘要:我们都知道Solr配置文件有三种缓存分别是 filterCache,queryResultCache,documentCache 但Solr是在什么时候,什么情况下会用到这些缓存呢,通过看Solr的源码,下面对Solr三种缓存做说明filterCache 缓存filterCache:当搜索请求参数中带有参数"ids"时,Solr会去filterCache里查,filterCache里Key是query,值是DocSet,,也就是无序的Document id,如果有多个ids里包含多个id,则用分隔符“,”分开。如果filterCache中没有对应的值,则通过reader都查 阅读全文

posted @ 2012-12-20 17:36 ukouryou 阅读(546) 评论(0) 推荐(0)

Solr与Mysql集成指南
摘要:在《企业级搜索引擎Solr使用入门指南》及《企业级搜索引擎Solr交流》中对Solr的使用做了简单介绍。在数据库驱动的应用中,当时采用的方案是应用层面有数据的增删改操作时候,由应用通过调用solr的xml接口来完成solr索引的增删改操作,对批量操作采用提交csv报文的方案。但此种方案不足之处在于:需要应用在增删改业务逻辑中来调用solr接口,业务逻辑与搜索引擎建索引的逻辑混在一起,在需要对搜索引擎的策略进行调整,可能需要对每一次业务应用涉及搜索的逻辑进行修改。在处理批量导入、增量操作时候也很不方便。 从Solr 1.3开始,Solr提供DataImportHandler工具完成对mysql数 阅读全文

posted @ 2012-12-06 16:51 ukouryou 阅读(247) 评论(0) 推荐(0)

integrating solr4.0 and zookeeper
摘要:1.download the corresponding software from apache,my software verion as followsenvironmentsoftwareversionsolr apache-solr-4.0.0-BETAzookeeperzookeeper-3.3.52.set up zookeeper cluster environment I have set up three zookeeper server as followsserver Noip:port1192.168.0.103:21812192.168.0.200:2182319. 阅读全文

posted @ 2012-09-14 12:30 ukouryou 阅读(248) 评论(0) 推荐(0)

导航