Added attributeToSnippet & queryType parameters