Revised the type system of SnippetsSearchResult