Skip to content

SamiElkateb/doc-search-api

Repository files navigation

Doc Search API

POC

Api(query) -> SearchResult[]
{
    searchEngineResults = SearchAdapter(query);
    searchResults = []
    foreach searchEngineResult:
        html = HTMLFetcher(searchEngineResult.url);
        markdown = MarkdownFormatter(html)
        searchResults.push({...searchEngineResult, content: markdown})

    return searchResults
}

SearchResult: {
  link
  websiteName
  pageTitle
  Content: markdown
}

SearchAdapter(query) -> SearchEngineResult[]
SearchEngineResult: {
  link
  websiteName
  pageTitle
}

HTMLFetcher(url) -> html

MarkdownFormatter(html, stylesheetName) -> markdown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published