You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
Pass the keys of your map as arguments. Remember that my script works only for replacing values and not any other fancy stuff that is mentioned in the ES api documentation.
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?
0fd93ed
The text was updated successfully, but these errors were encountered: