Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !7695

Merged
Created Sep 05, 2014 by Administrator@rootOwner

Added search wiki feature

  • Overview 18
  • Commits 3
  • Changes 4

Created by: coverer

As a lot of people requested, I implemented the search in wiki pages.(again), hope this time I followed the style guid and contributing guidlines... Refers to: http://feedback.gitlab.com/forums/176466-general/suggestions/4078088-add-wiki-search-function

Comments: Since the structure of gitlab has massively improved since the last time, it was now much easier to implement the search feature. I simply added a new filter to project_filter called Wiki which calls the search engine with a new scope 'wiki_blobs'. This is evaluated in ProjectSearchResults, where a new method works straight on the ProjectWiki repository to search files.

New UI: image

Affected files: app/controllers/search_controller.rb app/views/search/_project_filter.html.haml lib/gitlab/project_search_results.rb New file: app/views/search/results/_wiki_blob.html.haml

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/coverer/search_wiki