Also add a new SearchOffset struct so that SearchResult can contain offset information for context generation.