Sha256: 8f1885492887ceb2eb163b2454a7e2fabb420538a5698791ac2f0d452f47781a
Contents?: true
Size: 438 Bytes
Versions: 28
Compression:
Stored size: 438 Bytes
Contents
module Scrivito module Backend module PathIndex extend Backend::Index def self.id "path" end def self.query(keys) [{ field: '_path', operator: :equals, value: keys }] end def self.extract_update_value_from_data(data) data["_path"] end def self.group_by_multiple(paths, obj_datas) paths.map do |path| obj_datas.select { |obj_data| obj_data.value_of("_path") == path } end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems