Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add public_search_enabled? method

  • Loading branch information...
commit 1f7f342360fde062402d8c2d8af16d253a425310 1 parent 498596e
Leandro Oniszczuk authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/indextank/index.rb
View
6 lib/indextank/index.rb
@@ -61,6 +61,12 @@ def exists?
refresh.status != 404
end
+ def public_search_enabled?
+ refresh
+ @metadata['public_search']
+ end
+
+
def batch_insert(documents)
resp = @conn.put do |req|
req.url "docs"
Please sign in to comment.
Something went wrong with that request. Please try again.