Page 1 of 1
Case insensitive search but spoils data display
Posted: Tue Jan 26, 2021 3:43 pm
by apmuthu
In the Pizza Tutorial, the standard search of customer is case insensitive, but the data displayed in the highlighted words too get their case changed to that of the search string. The
Group column to the right of the images is absent here but that too is affected by these search case changes.
Upper Proper case search:
search_big.png
Lower Case search:
search_small.png
Re: Case insensitive search but spoils data display
Posted: Tue Jan 26, 2021 4:29 pm
by miasoft
I also encountered this, but I thought that it was something personally wrong with me
26.01_2.png
26.01_3.png
Re: Case insensitive search but spoils data display
Posted: Tue Jan 26, 2021 5:55 pm
by kev1n
I replaced the function nuHighlightSearch() with a new one. Use nuform.js from the attachment.
Please test if the search works well with that.
Re: Case insensitive search but spoils data display
Posted: Tue Jan 26, 2021 6:36 pm
by apmuthu
Yes it works.
search_small_new.png
Whitespace cleaned version attached.
nuform.js
This has yet to satisfy multiple words in the search string separated by spaces to be searched separately.
Re: Case insensitive search but spoils data display
Posted: Wed Jan 27, 2021 5:26 am
by apmuthu
Re: Case insensitive search but spoils data display
Posted: Wed Jan 27, 2021 8:38 am
by kev1n
The Search/Highlight has been updated and it is on Github.
[Fixed] Case insensitive search fixed not to change data case
[Added] jQuery.fn.nuHighlight ( Based on highlight v5: Highlights arbitrary terms)
Re: Case insensitive search but spoils data display
Posted: Wed Jan 27, 2021 9:02 am
by apmuthu
Thanks @kev1n.
Updated commits with new search highlighting function:
*
v4.5 Commit 312
*
v4 Commit 197
multi-word-search.png
Furthermore, the multiple words can be typed in any order - the results are consistent and as expected.