Yes I have. I have my code in a doPrivileged block but it's not changing anything.
public int analyzeSentiment(String text){
return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
public Integer run(){
StringByValue str = new StringByValue();
str.setP(text);
str.setN(text.length());
return gs.ClassifySentiment(str);
}
});
}
PS: I think the ES docs for plugins (for authors) have to be a lot more expansive than they are. There is barely any documentation for it apart from the page you linked and the 4 examples linked in it.