Extract and use maxrecs setting in auto-searching.