Permalink
Browse files

Add default constructor for custom similarity.

  • Loading branch information...
1 parent 1611d81 commit 263f64596c91372f47f0346cd5877cf3c3153abe @onyxfish onyxfish committed Oct 26, 2011
View
@@ -14,7 +14,7 @@
env.path = '/home/%(user)s/src/%(project_name)s' % env
env.log_path = '/home/%(user)s/logs/%(project_name)s' % env
env.env_path = '/home/%(user)s/.virtualenvs/%(project_name)s' % env
-env.solr_path = '/opt/solr/panda/solr'
+env.solr_path = '/opt/solr'
env.repo_path = '%(path)s' % env
env.python = 'python2.7'
env.repository_url = 'git://github.com/pandaproject/panda.git'
@@ -171,10 +171,10 @@ def reset_solr():
with settings(warn_only=True):
sudo('service solr stop')
- sudo('cp %(repo_path)s/setup_panda/solr.xml %(solr_path)s/solr.xml' % env)
- sudo('cp %(repo_path)s/setup_panda/panda.jar %(solr_path)s/lib/panda.jar' % env)
- sudo('cp %(repo_path)s/setup_panda/schema.xml %(solr_path)s/pandadata/conf/schema.xml' % env)
- sudo('cp %(repo_path)s/setup_panda/solrconfig.xml %(solr_path)s/pandadata/conf/solrconfig.xml' % env)
+ sudo('cp %(repo_path)s/setup_panda/panda.jar %(solr_path)s/panda/lib/panda.jar' % env)
+ sudo('cp %(repo_path)s/setup_panda/solr.xml %(solr_path)s/panda/solr/solr.xml' % env)
+ sudo('cp %(repo_path)s/setup_panda/schema.xml %(solr_path)s/panda/solr/pandadata/conf/schema.xml' % env)
+ sudo('cp %(repo_path)s/setup_panda/solrconfig.xml %(solr_path)s/panda/solr/pandadata/conf/solrconfig.xml' % env)
sudo('rm -rf %(solr_path)s/pandadata/data' % env)
sudo('service solr start')
View
Binary file not shown.
Binary file not shown.
@@ -3,6 +3,8 @@
public class CustomSimilarity extends DefaultSimilarity {
+ public CustomSimilarity() {
+ }
public float tf(float freq) {
return 1;
}

0 comments on commit 263f645

Please sign in to comment.