Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

change search index

  • Loading branch information...
commit d278bdeb2297b7d9b378a9a15a1107d4049d3332 1 parent d7dc64d
Scott Chacon schacon authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 config/initializers/elasticsearch.rb
6 config/initializers/elasticsearch.rb
... ... @@ -1,10 +1,10 @@
1 1 require 'elasticsearch'
2 2
3   -if ENV['BONSAI_INDEX_URL']
4   - uri = URI.parse(ENV['BONSAI_INDEX_URL'])
  3 +if ENV['SEARCH_INDEX_URL']
  4 + uri = URI.parse(ENV['SEARCH_INDEX_URL'])
5 5 ELASTICSEARCH = {
6 6 url: "#{uri.scheme}://#{uri.host}",
7   - index_name: uri.path.gsub('/', '')
  7 + index_name: 'gitscm'
8 8 }
9 9 BONSAI = ElasticSearch::Index.new ELASTICSEARCH[:index_name], ELASTICSEARCH[:url]
10 10 end

0 comments on commit d278bde

Please sign in to comment.
Something went wrong with that request. Please try again.