go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.96k stars 5.48k forks source link

Requesting search of wiki repos #3670

Open nathan-sain opened 6 years ago

nathan-sain commented 6 years ago

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 commented 6 years ago

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

igsol commented 6 years ago

@lunny

not related wiki repo.

Ah, how it's pity :cry:

zettar commented 6 years ago

not related wiki repo.

Ah, how it's pity :cry:

Second the above.

stale[bot] commented 5 years ago

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.

fangchin commented 5 years ago

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[bot] commented 5 years ago

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.

mrsdizzie commented 5 years ago

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 :)

oscarlofwenhamn commented 5 years ago

This would be a very useful feature indeed!

paolo-rendano commented 5 years ago

Any progress on this? Search on wiki is a must for this kind of tool.

Thanks Paolo

guillep2k commented 5 years ago

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 commented 5 years ago

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

MasterDimmy commented 3 years ago

requesting for this

nauevg commented 3 years ago

Any updates on this?

Abyss777 commented 2 years ago

Very useful feature. Any plans to implement this?

johand77 commented 2 years ago

Would definitely love this feature. That makes the wiki a much more powerfull tool for documentation.

theobjectivedad commented 2 years ago

I'd love to see this on the roadmap!

ivptr commented 1 year ago

Any update on this?

Darthagnon commented 1 year ago

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 commented 1 year ago

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 ^3).

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:

```dockerfile 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/ ```
0e39bf7b commented 11 months ago

Hello! Are there any plans on this feature?

RyanGreenup commented 9 months ago

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 commented 8 months ago

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