search: new match record API

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>