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

Requesting search of wiki repos #3670

Open
2 of 7 tasks
nathan-sain opened this issue Mar 14, 2018 · 22 comments · May be fixed by #29726
Open
2 of 7 tasks

Requesting search of wiki repos #3670

nathan-sain opened this issue Mar 14, 2018 · 22 comments · May be fixed by #29726
Assignees
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Comments

@nathan-sain
Copy link

  • Gitea version (or commit ref):9a5e628 (Gitea Docker container)
  • Git version: 2.15.0
  • Operating system:Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant (Unable to connect)
  • Log gist:

Description

I have enabled indexing of my repos with
REPO_INDEXER_ENABLED = true
in my app.ini
I would like to search my wiki repos like I do my code repos

@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Mar 14, 2018
@lunny
Copy link
Member

lunny commented Mar 14, 2018

Currently it will only index code but not related wiki repo.

@igsol

This comment was marked as off-topic.

@zettar

This comment was marked as off-topic.

@stale
Copy link

stale bot commented Jan 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Jan 5, 2019
@fangchin
Copy link

fangchin commented Jan 5, 2019

Indexing wiki and having an effective search function definitely helps with the use of a software, especially something as promising as gitea. Please give this ticket more consideration that it deserves.

@stale stale bot removed the issue/stale label Jan 5, 2019
@stale
Copy link

stale bot commented Mar 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 6, 2019
@mrsdizzie
Copy link
Member

Agree this feature is sorely missing and makes the wiki not very useable in lots of real world situations (lots of documentation/text isn't practical without search). It is almost more usable to use the regular code view to store the wiki/md files where you get access to search but loose the few wiki features like page dropdown and _sidebar/_footer

Having a search here would make the wiki feature exponentially more useful :)

@stale stale bot removed the issue/stale label Mar 6, 2019
@lafriks lafriks added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Mar 10, 2019
@oscarlofwenhamn

This comment was marked as duplicate.

@paolo-rendano

This comment was marked as duplicate.

@guillep2k
Copy link
Member

Could it be implemented with bleve, like the other searches? Any objections with an implementation like that? I guess the Wiki is just markdown code, so I think it shouldn't be too difficult to implement.

@oscarlofwenhamn
Copy link
Contributor

The wikis being just (afaik) rendered code, it definitely feels like it should be able to be done in a similar fashion.

@MasterDimmy

This comment was marked as duplicate.

@nauevg

This comment was marked as duplicate.

@Abyss777

This comment was marked as duplicate.

@johand77

This comment was marked as duplicate.

@theobjectivedad

This comment was marked as duplicate.

@ivptr

This comment was marked as duplicate.

@Darthagnon
Copy link

I, too, would love to see this on the roadmap - I currently maintain a company wiki within Gitea, but the lack of search is sorely missing.

@RyanGreenup
Copy link

RyanGreenup commented Oct 13, 2023

Like a few others have mentioned, I too create a separate code repository and use it as a wiki. However, the analyzer uses keyword rather than standard 1 making the search less ideal (e.g. python returns results but the query python list does not, see generally 2).

Long-term there needs to be a separate indexer for the wiki but for an easy workaround one can change the analyzer used in the source:

sed -i  's!analyzer/keyword!analyzer/standard!'  modules/indexer/code/bleve/bleve.go

I put together this Dockerfile if anybody wants to use it:

FROM codeberg.org/forgejo/forgejo:1.20


# Install Go (needed because alpine currently has 1.20)
RUN wget 'https://go.dev/dl/go1.21.3.linux-amd64.tar.gz'
RUN tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin/:$PATH"
ENV CGO_ENABLED=1

# Install dependencies
RUN apk update; apk add make nodejs npm gcc musl-dev

# Get the source and patch it
RUN git clone https://codeberg.org/forgejo/forgejo --depth=1
RUN sed -i  's!analyzer/keyword!analyzer/standard!'  forgejo/modules/indexer/code/bleve/bleve.go

# Build it
RUN cd forgejo; make clean-all
RUN cd forgejo; make frontend
RUN cd forgejo; go build contrib/environment-to-ini/environment-to-ini.go
RUN cd forgejo; TAGS="bindata sqlite sqlite_unlock_notify" make -j1

# Install it
RUN install -Dm755 forgejo/gitea -t /usr/local/bin/

Footnotes

  1. https://codeberg.org/forgejo/forgejo/src/branch/v1.21/forgejo/modules/indexer/code/bleve/bleve.go#L29

  2. https://bleveanalysis.couchbase.com/static/

@0e39bf7b
Copy link

Hello! Are there any plans on this feature?

@RyanGreenup
Copy link

In hindsight I'm not sure if my last workaround worked very well, I'd need to review it.

What needs to be done to implement this? If someone with more experience in this codebase can list some achievable steps, I'm happy to help out in any way I can.

As it stands I'm using a separate Meilisearch Bar and fzf + bleve, I'd rather just use the integrated bleve.

@6543 6543 self-assigned this Feb 26, 2024
@6543 6543 linked a pull request Mar 11, 2024 that will close this issue
11 tasks
@6543
Copy link
Member

6543 commented Mar 12, 2024

suggestions how to expose it to the ui are welcome to #29726 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.