Electronic device and method of searching data records