Model:
class Item
store :socket_store, accessors: [:sockets, :socket_count, :socket_link_count]
end
Mapping:
mapping do
indexes :id, key: "value", index: :not_analyzed
indexes :sockets, type: "object"
indexes :socket_count, type: "integer"
indexes :socket_link_count, type: "integer"
end
But here's what my actual index looks like:

socket_cout and the othe 2 attributes are not at the root of the mapping, as if they were completely ignored.
I know I could create methods with a different name and add them to the to_indexed_json, but I would have guessed it should work as is.
linked_socket_count!=socket_link_count