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