Do you know if it is possible to make this comparison with scripted field ?
Or am I trying to do something that this tool is not made for? In that case, if you had any ideas
Actually I did a couple of things with the help of the tutorials on the site (Great Tutorial here), but I have to admit that I don't go very far :
Scripted fields work on a single record and can only use the data in that record.
It sounds like you are trying to compare two different records which wouldn't be possible due to the reason above.
If you are going to hard code that hash in the scripted field like you did in your example then this should be possible. But it sounds like your use case you wouldn't want to do that.
In my case I want to compare theses two record.
So if I want to make a comparison between two records, how can I do it with or without scripted fields ?
If I understand the concept well, in fact as an incoming document I have my new document (the second data in my previous post) with my new hash.
And in the source index, I have my old index with my hash (the first data in my post), and as target index I have my index which is used for display and my dashboard ?
So I have to create an empty index to gather this new dataset isn't it ?
Did I get it right?
Maybe with the enrich processor, I can juxtapose my old data (the reference hash) next to my new data (the new hash), then with a scripted field make a comparison and return a boolean in case of modification for this document ?
I'm probably diverting the original use of the tool by doing this, and there's a simpler alternative.
I'm going to dig into all this, and take a look to logstash
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.