★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wordpressutilities/wpulivesearch/archive/refs/heads/main.zipDeclares an update source (https://github.com/WordPressUtilities/wpulivesearch), so updates arrive through the plugin's own updater.
From the readme
WPU Live Search
Live Search datas
Example : Search in a user list
How to : Custom settings
How to : show hidden filters (filters values non relevant) to the search
How to : sort results after a button change
TODO
Moar filters & hooks.
Add admin settings.
Pager : config for display (text, classname)
Handle multiple livesearch on the same page.
Results
Don't show all results if filters & search have default values.
Handle case where an item has multiple values for a key ( productcolor: red&blue ).
Relevance counter ( fulltext : full words ? ).
Relevance counter ( number of selectors ).
Sort results.
Fulltext relevance :
- 10 points : name contains string.
- 5 points : filter name contains string.
Filters relevance
- 2 points : filter is active.
Filters
Compress field name for filters.
Inclusive or exclusive filters ( filter1 && filter2 / filter1 || filter 2).
Keep filter value in URL.
Initial values from URL.