Skip to main content
Question

Sort the Matched Output

  • November 5, 2014
  • 3 replies
  • 26 views

Forum|alt.badge.img
I have a question about the Matcher output and selecting the desired record to move forward.

 

 

Here is the scenario:

 

 

Matcher_Matched produces some rows.  Matcher_SingleMatched is populated, but that set is sub-optimal (e.g., an attribute is null compared to that within the other matched row).  I need a way to tailor the single-matched rows so they contain the most valuable rows based on a comparison of the matched rows based on attribute comparison criteria.

 

 

So, what is the simplest way to loop through the Matcher_Matched result set in order to pick the desired row from those with the same match_id?

 

 

Thanks,

 

Pete
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • November 6, 2014
Hi Pete,

 

 

Is this simplest?

 

Sort the Matched features by the criteria, and then pick first features for each match_id group using the DuplicateRemover.

 

 

Takashi

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • November 6, 2014
Create a tester with the desired comparison on the "Matched" output.

 

Or create the comparison and then group the match_id's using a listbuilder on match_id and and select the desired ones.

 

Or create comprison-attribute, sort and pick first one (if ordering is numberbased). If result is some string and sorting/ordering will not resolve the pick, u need to do some test to select.

 

 

 

Forum|alt.badge.img
  • Author
  • November 6, 2014
Hi and thanks for the suggestions.  I'll try those and see how they work.