Originally created by: ramrajone
For more information on how to write a good bug report
When searching in Ticket for part of the word it's not displaying the results
see details reported in forums: https://forum.osticket.com/d/93665-wildcard-search/2
[Description of the bug or feature]
not showing results, it looks like it's finding the results
[First Step]
I just tested and it's not working for me too
I searched for Printer and 25 results came
Then I searched for Printe nothing came just by removing r in a printer
then I just searched for Print and 25 more results came
[Second Step]
What I notice is the display part seems to be not working: As you can see it show there are a number of pages, but not showing
One more thing I notice is if you search for more then one word, it will find, example if searched for: Printe Problem Then is will find stuff that has to do with word "Problem"
Expected behavior: [What you expected to happen]
it should display whatever searched for to display in search results
Actual behavior: [What actually happened]
it's just showing results of the search is there, but not displaying
osTicket Version v1.11 (0f229ae) — Up to date
Web Server Software Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/7.2.15
MySQL Version 10.1.28
PHP Version 7.2.15
Also, please include the OS and what version of the OS you're running. As well as your browser and browser version.
Tried in Google Chrome Version 72.0.3626.121 (Official Build) (64-bit)
Originally posted by: Haabda
Even with a search that should have zero results, it shows 500 results and paginates.
Originally posted by: JediKev
@Haabda
That's on purpose for now:
https://github.com/osTicket/osTicket/blob/develop-next/include/class.search.php#L1002-L1004
https://github.com/osTicket/osTicket/commit/170709bb4dc2db75b3a5a5d338874fbc353e1b1c
Cheers.
Originally posted by: Haabda
Yep, always returning 500 would do that. Thanks for showing me! Is returning 500 a placeholder until the "counting" code is written?
Originally posted by: JediKev
@Haabda
That is indeed correct! 😄
Cheers.
Originally posted by: ramrajone
so, no solution yet correct?
Originally posted by: JediKev
@ramrajone
The "500 results issue" has no fix yet.
The OG issue you posted of "the system only searches for entire words instead of partial words" has always been like this. Test it in
1.9.x,1.10.x, etc. the results are always the same. We hope to improve search to include partial word searching in the future so please stay tuned.Cheers.