I'm new to script query and I'm facing the following problem :
While using it to define if a doc is matching or not, I need to get some field value from the previous doc (because my docs are sorted in a specific way), I couldn't find a way to do that.
My first guess was to set some sort of global variable I could access from my script but I couldn't do it (and I couldn't find any topic related on the web ) . So I wanted to try to use streams (file, socket...whatever works) but any stream mechanisms I've tried so far led me to the same issue : AccessControlException even after changing my security policy with what I thought was ok.
Can someone help me with that please ?