How contrib for solr memcache query cache
Hi all: I want to contrib memcache implement solr cache (only test query result cache) patch for solr 1.3 http://code.google.com/p/solr-side/issues/detail?id=1can=1 solr-memcache.zip http://solr-side.googlecode.com/files/solr-memcache.zip =readme.txt= MemcachedCache instead of solr queryresultCache (default LRUCache) config in solrconfig.xml to use solr-memcache add newSearcher and firstSearcher Listener, such as: listener event=newSearcher class=solr.MemcachedCache / listener event=firstSearcher class=solr.MemcachedCache / use listener only for get index version, to create memcached key indexVersion is static long field of MemcachedCache.java. //originalKey is QueryResultKey memcached key = keyPrefix+indexVersion+-+originalKey.hashCode() !-- MemcachedCache params: memcachedHosts (required), , split. name (optional) no default. expTime (optional) default 1800 s (= 30 minute) defaultPort (optional) default 11211 keyPrefix (optional) default -- queryResultCache class=solr.MemcachedCache memcachedHosts=192.168.0.100,192.168.0.101:1234,192.168.0.103 expTime=21600 defaultPort=11511 keyPrefix=shard-1-/ dep jar: memcached-2.2.jar spy-2.4.jar solr-memcache.patch for solr 1.3 if download and unzip to d:/apache-solr-1.3.0 copy patch-build.xml and solr-memcache.patch to (d:/apache-solr-1.3.0) D:\apache-solr-1.3.0ant -f patch-build.xml -Dpatch.file=solr-memcache.patch Buildfile: patch-build.xml apply-patch: [patch] patching file src/java/org/apache/solr/search/DocSet.java BUILD SUCCESSFUL Total time: 0 seconds if exist d:/apache-solr-1.3.0/contrib/solr-memcache, if no exist you can unzip solr-memcache.zip to that dir and dist D:\apache-solr-1.3.0ant dist ... look D:\apache-solr-1.3.0\dist\apache-solr-memcache-1.3.0.jar ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/
Re: How contrib for solr memcache query cache
please raise this as an issue in Jira https://issues.apache.org/jira/browse/SOLR let us see what others think about this On Wed, Jun 3, 2009 at 1:14 PM, chenl...@yahoo.com.cn wrote: Hi all: I want to contrib memcache implement solr cache (only test query result cache) patch for solr 1.3 http://code.google.com/p/solr-side/issues/detail?id=1can=1 solr-memcache.zip http://solr-side.googlecode.com/files/solr-memcache.zip =readme.txt= MemcachedCache instead of solr queryresultCache (default LRUCache) config in solrconfig.xml to use solr-memcache add newSearcher and firstSearcher Listener, such as: listener event=newSearcher class=solr.MemcachedCache / listener event=firstSearcher class=solr.MemcachedCache / use listener only for get index version, to create memcached key indexVersion is static long field of MemcachedCache.java. //originalKey is QueryResultKey memcached key = keyPrefix+indexVersion+-+originalKey.hashCode() !-- MemcachedCache params: memcachedHosts (required), , split. name (optional) no default. expTime (optional) default 1800 s (= 30 minute) defaultPort (optional) default 11211 keyPrefix (optional) default -- queryResultCache class=solr.MemcachedCache memcachedHosts=192.168.0.100,192.168.0.101:1234,192.168.0.103 expTime=21600 defaultPort=11511 keyPrefix=shard-1-/ dep jar: memcached-2.2.jar spy-2.4.jar solr-memcache.patch for solr 1.3 if download and unzip to d:/apache-solr-1.3.0 copy patch-build.xml and solr-memcache.patch to (d:/apache-solr-1.3.0) D:\apache-solr-1.3.0ant -f patch-build.xml -Dpatch.file=solr-memcache.patch Buildfile: patch-build.xml apply-patch: [patch] patching file src/java/org/apache/solr/search/DocSet.java BUILD SUCCESSFUL Total time: 0 seconds if exist d:/apache-solr-1.3.0/contrib/solr-memcache, if no exist you can unzip solr-memcache.zip to that dir and dist D:\apache-solr-1.3.0ant dist ... look D:\apache-solr-1.3.0\dist\apache-solr-memcache-1.3.0.jar ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ -- - Noble Paul | Principal Engineer| AOL | http://aol.com
Re: How contrib for solr memcache query cache
https://issues.apache.org/jira/browse/SOLR-1197 --- 09年6月3日,周三, chenl...@yahoo.com.cn chenl...@yahoo.com.cn 写道: 发件人: chenl...@yahoo.com.cn chenl...@yahoo.com.cn 主题: How contrib for solr memcache query cache 收件人: solr-user@lucene.apache.org 日期: 2009年6月3日,周三,下午3:44 Hi all: I want to contrib memcache implement solr cache (only test query result cache) patch for solr 1.3 http://code.google.com/p/solr-side/issues/detail?id=1can=1 solr-memcache.zip http://solr-side.googlecode.com/files/solr-memcache.zip =readme.txt= MemcachedCache instead of solr queryresultCache (default LRUCache) config in solrconfig.xml to use solr-memcache add newSearcher and firstSearcher Listener, such as: listener event=newSearcher class=solr.MemcachedCache / listener event=firstSearcher class=solr.MemcachedCache / use listener only for get index version, to create memcached key indexVersion is static long field of MemcachedCache.java. //originalKey is QueryResultKey memcached key = keyPrefix+indexVersion+-+originalKey.hashCode() !-- MemcachedCache params: memcachedHosts (required), , split. name (optional) no default. expTime (optional) default 1800 s (= 30 minute) defaultPort (optional) default 11211 keyPrefix (optional) default -- queryResultCache class=solr.MemcachedCache memcachedHosts=192.168.0.100,192.168.0.101:1234,192.168.0.103 expTime=21600 defaultPort=11511 keyPrefix=shard-1-/ dep jar: memcached-2.2.jar spy-2.4.jar solr-memcache.patch for solr 1.3 if download and unzip to d:/apache-solr-1.3.0 copy patch-build.xml and solr-memcache.patch to (d:/apache-solr-1.3.0) D:\apache-solr-1.3.0ant -f patch-build.xml -Dpatch.file=solr-memcache.patch Buildfile: patch-build.xml apply-patch: [patch] patching file src/java/org/apache/solr/search/DocSet.java BUILD SUCCESSFUL Total time: 0 seconds if exist d:/apache-solr-1.3.0/contrib/solr-memcache, if no exist you can unzip solr-memcache.zip to that dir and dist D:\apache-solr-1.3.0ant dist ... look D:\apache-solr-1.3.0\dist\apache-solr-memcache-1.3.0.jar ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/