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

Get no results when using search issues API with keyword which length less than 3 #813

Open
Shilongyun opened this issue Mar 9, 2022 · 1 comment
Labels

Comments

@Shilongyun
Copy link

I use issues search API to list issues in a project.
Search keyword’s length is greater than 2, it works normaly.
But when the seach keyword’s length is less than 3, I can’t get any result.

GET /issues?search=fo

Is it a bug in GitLab API?

GitLab version: GitLab 14.4

@jabby
Copy link
Collaborator

jabby commented Mar 9, 2022

I just checked by calling directly GitLab API and it seems that the search API need at least 3 characters to run the search.

See the following links in your browser:

I can't find any information in the official documentation: https://docs.gitlab.com/ee/api/issues.html
I think the limitation exist to avoid matching too many results.
I suggest you to check if there is an issue on GitLab repository about this behaviour. https://gitlab.com/gitlab-org/gitlab/-/issues/

@jabby jabby added the question label Mar 9, 2022
@gitlab4j gitlab4j deleted a comment from Shilongyun Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants