Remove duplicates from search results
Remove duplicates from search results
dougal
Posts: 1Questions: 1Answers: 0
Currently we use a range search for 4 datatables on 1 page. 1 of the tables has duplicate results if the search range is large enough.
example data
001 - 100 result1
50 - 100 result 2
150 - 200 result1
So if i do a search for a range between 50 and 200 result 1 would appear twice. Is there a way or removing these duplicate results?
This discussion has been closed.
Answers
There isn't a built in way of doing that I'm afraid. You would need to use a custom filter that keeps track of the values that have gone before and check to see if the current value matches one that has been seen before - if so then filter it out.
Reset the store of tracked values whenever the loop counter is
0
.Alan