Skip to content

[WIP] Implement Elastic Search Code Indexer - #7592

Closed
jeffliu27 wants to merge 11 commits into
go-gitea:masterfrom
jeffliu27:updated-es-code
Closed

jeffliu27 wants to merge 11 commits into
go-gitea:masterfrom
jeffliu27:updated-es-code

Conversation

@jeffliu27

Copy link
Copy Markdown

Creates Issue indexer as a separate package: "codes" (will be changed to code later).
Added elastic search support for indexer instead of "bleve"

Ref issue: #6648

@jeffliu27 jeffliu27 changed the title [WIP] Implement [WIP] Implement Elastic Search Code Indexer Jul 23, 2019

@guillep2k guillep2k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like I've been PR'ing on the same subject without realizing you were already working on it. For that I apologize. I leave you here a couple of highlights about my findings.

"type": custom.Name,
"char_filters": []string{},
"tokenizer": unicode.Name,
"token_filters": []string{unicodeNormalizeName, camelcase.Name, lowercase.Name, unique.Name},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to reconsider using camelcase and unique. See #7733, #7825 and #7826.

&IndexerData{
RepoID: repo.ID,
Filepath: update.Filename,
Content: string(fileContents),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to make sure the file contents is valid utf-8. See #7809 and #7814.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 14, 2019
@guillep2k

Copy link
Copy Markdown
Member

Is this PR still alive? Otherwise I'd like to take #3670.

@jeffliu27

Copy link
Copy Markdown
Author

Is this PR still alive? Otherwise I'd like to take #3670.

Yes, planning on finishing it. (Haven't gotten a chance to work on it recently)

@Cellebyte

Copy link
Copy Markdown

@jeffliu27 do you had some time for this feature?.

@Cellebyte

Copy link
Copy Markdown

@jeffliu27 do you had some time for this feature?.

@jeffliu27 are you still working on this?

@stale

stale Bot commented Feb 7, 2020

Copy link
Copy Markdown

This pull request 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 months. Thank you for your contributions.

@stale stale Bot added the issue/stale label Feb 7, 2020
@Cellebyte

Cellebyte commented Feb 7, 2020 •

Copy link
Copy Markdown

@lunny can this here be implemented with the same logic as you are implementing the issue indexer?

@stale stale Bot removed the issue/stale label Feb 7, 2020
@lunny

lunny commented Feb 11, 2020

Copy link
Copy Markdown
Member

@Cellebyte Yes. I will do that and replace this one if my previous issue indexer merged.

@ksa-real

Copy link
Copy Markdown

@jeffliu27 Any news on your diff? It seems your code has conflicts.

@stale

stale Bot commented May 27, 2020

Copy link
Copy Markdown

This pull request 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 months. Thank you for your contributions.

@stale stale Bot added the issue/stale label May 27, 2020
@stale

stale Bot commented Jul 26, 2020

Copy link
Copy Markdown

This pull request has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale Bot closed this Jul 26, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

issue/stale lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants