Sha256: e7f7fc6ca80d35c4fe8a6c52efa689ed2720b32922a3ffc4e55267a0c82d9c2b
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
module Scrivito module Backend module PathIndex class << self include Backend::Index def id "path" end def query(keys) [{:field => "_path", :operator => :equals, :value => keys}] end def 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 end
Version data entries
5 entries across 5 versions & 1 rubygems