improve a search function in xdxfPlugin