Skip to content

advancedSearch bug #930

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

Closed
alizaga opened this issue May 29, 2023 · 1 comment
Closed

advancedSearch bug #930

alizaga opened this issue May 29, 2023 · 1 comment

Comments

@alizaga
Copy link

alizaga commented May 29, 2023

The advancedSearch function in common-utils.js doesn't work as I expect.

If I want to search this description Multiple status values can be provided with comma separated strings of this operation Finds Pets by status it doesn't work.

I suppose that is caused by this code of advancedSearch function:

...
if (searchOptions.includes('search-api-descr')) {
  stringToSearch = `${stringToSearch} ${path.summary || path.description || ''}`;
}
...

As you can see if path.summary is not null the path.description is ignored.

Could you add a button that enables searching only in path.description (ignoring path.summray) or could you change this behaviour to take both of them in the search?

Thank you in advance.

@mrin9 mrin9 closed this as completed in 8269b5f Sep 20, 2024
@mrin9
Copy link
Collaborator

mrin9 commented Sep 20, 2024

thanks for pointing out the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants