Skip to content

index updateasync #48

Open
Open
@lhammond

Description

@lhammond

Hi Folks,
I'm a bit confused on how to update an indexed document.
It appears that I need to make a Map of the updated fields, but am unclear as to what the updateScript needs to be. Any tips?

 Map<String, Object> map = new HashMap<String,Object>();
 map.put("name", o.getName());
 map.put("description", o.getDescription());       
 map.put("tags", o.getTags());
 MyIndexClass a = new MyIndexClass(b);
 a.updateAsync(map, null);

0fd93ed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions