Ejemplo n.º 1
0
 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"
             }
         }
                                              )
     });
 }
Ejemplo n.º 2
0
 public static SearchDocument GetDocument(string code, string name, string content, List <Keyword> keywords)
 {
     return(GetDocumentWithURL(code, name, content, keywords, SearchHelpers.GetDocumentURLFromCode(code)));
 }