spec/spec_helper.rb in search_flip-3.5.0 vs spec/spec_helper.rb in search_flip-3.6.0
- old
+ new
@@ -82,11 +82,11 @@
class CommentIndex
include SearchFlip::Index
def self.type_name
- "comments"
+ connection.version.to_i < 8 ? "comments" : "_doc"
end
def self.index_name
"comments"
end
@@ -132,11 +132,11 @@
{}
end
end
def self.type_name
- "products"
+ connection.version.to_i < 8 ? "products" : "_doc"
end
def self.index_name
"products"
end
@@ -173,10 +173,10 @@
}
}
end
def self.type_name
- "test"
+ connection.version.to_i < 8 ? "test" : "_doc"
end
def self.index_name
"test"
end