public static SearchDocumentWrapper GetSitePageSearchDocument(string index, string code, string name, string content) { return(new SearchDocumentWrapper { index = index, document = SearchHelpers.GetDocument(code, name, SearchHelpers.GenerateSearchText(content), new List <Keyword> { new Keyword { vocab = "https://vocab.jncc.gov.uk/special-areas-of-conservation", value = "Site" } } ) }); }
public static SearchDocument GetDocument(string code, string name, string content, List <Keyword> keywords) { return(GetDocumentWithURL(code, name, content, keywords, SearchHelpers.GetDocumentURLFromCode(code))); }