Sha256: c7ad33adefda7cfb8300fa7fbe1e7ade3e9c26beff1225fc029538e3cd599d14

Contents?: true

Size: 438 Bytes

Versions: 80

Compression:

Stored size: 438 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 extract_update_value_from_data(data)
    data["_path"]
  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

80 entries across 80 versions & 1 rubygems

Version Path
scrivito_sdk-1.0.0.rc2 lib/scrivito/backend/path_index.rb
scrivito_sdk-1.0.0.rc1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.90.0 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.90.0.rc3 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.90.0.rc2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.90.0.rc1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.71.2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.71.1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.71.0 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.71.0.rc2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.71.0.rc1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.0 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.0.rc3 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.0.rc2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.70.0.rc1 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.66.0 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.66.0.rc2 lib/scrivito/backend/path_index.rb
scrivito_sdk-0.66.0.rc1 lib/scrivito/backend/path_index.rb