Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content search #14

Open
OksanaOriflame opened this issue Jan 7, 2023 · 1 comment
Open

Content search #14

OksanaOriflame opened this issue Jan 7, 2023 · 1 comment

Comments

@OksanaOriflame
Copy link
Contributor

Add content search method, that can tell, where we can find text pattern with context.

@OksanaOriflame
Copy link
Contributor Author

Contract raml:

api/content/search:
  get:
    query:
      - pattern: string # pattern to search
      - search-limit:
        type: int
        default: 5
      - guide-suggestions-limit:
        type: int
        default: 5
    responses:
      200: #ContentSearchResponse

schemas:
  ContentSearchResponse: object
    GuideSuggestions: array
      Item: #GuideSuggestion
  GuideSuggestion: object
    Properties: #properties guide field
    SectionSuggestions: array
      Item: #SectionSuggestion
  SectionSuggestion: object
    SectionName: string
    Suggestions: array
      Item: object
        text: object
          left: string
          target: string
          right: string
        link: string #Relative url to the text urban-elements/glossary#:~:text=Скамья

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant