Find best matching object

0
Hey guys,    i am working right now on a project to find the best matching object.    type in e.g. 6 parameters only integer compare those 6 parameters to my set of data find the best match within maybe a 5% diff based on how many parameters are within the 5% range, give a matching rate like 90% = good fit I need your help guys 
asked
2 answers
2

Hey Steven,

You can create a microflow to write your own custom java code after after applying filter concept. I have attached a link for blog on filter to meet your requirement.

https://medium.com/@rishabh.shandilya/create-your-own-way-of-filter-by-npe-non-persistant-entity-and-microflow-4ffd11e52fb0

First apply this filter and then use your custom java code for the same to achieve the implementation you want

Let me know if you have anything around to know.

answered
1

This one is real hard because there are a lot of parameters. For example lets use an easy set of numbers:
3 4 5 6 7 8. Should then 3 4 5 6 7 10 being better then 2 4 5 6 7 7? So is having a higher number of correct parameters better then having a higher difference?
If those rules are clear you could use XPath retrieves for each parameter and intersect the lists each time. If no complete match the calculate the 5 % range (up and down) and use those values. Depending on the rule set you need to first check if there is an exact match before you do the range match. But depending on how much objects there are in the database this can be a very time consuming process.

Regards,

Ronald

 

 

answered