Predictive Search
Predictive Search
Rui Martins [mention]RMartins[/mention] has developed a predictive search for the home page. You can access it by going to the following page:
https://spectrumcomputing.co.uk/index_new.php
If you struggle to get it to work please clear your browser cache.
Please have a good play with it and let us know what you think. As this is a test page, if you use the browser back button from a search results screen it will take you back to the normal home page. Just go back to the link above to try it again.
I'm grateful to [mention]RMartins[/mention] for his work on this.
https://spectrumcomputing.co.uk/index_new.php
If you struggle to get it to work please clear your browser cache.
Please have a good play with it and let us know what you think. As this is a test page, if you use the browser back button from a search results screen it will take you back to the normal home page. Just go back to the link above to try it again.
I'm grateful to [mention]RMartins[/mention] for his work on this.
- Juan F. Ramirez
- Bugaboo
- Posts: 5146
- Joined: Tue Nov 14, 2017 6:55 am
- Location: Málaga, Spain
Re: Predictive Search
A really good idea.
I'm using Chrome for Android and it works. But it's a bit slow, though.
It seems it needs a minimum of three characters. Am I wright?
I'm trying:
Sir Fre
Sir Fred
but it doesn't work.
I'm using Chrome for Android and it works. But it's a bit slow, though.
It seems it needs a minimum of three characters. Am I wright?
I'm trying:
Sir Fre
Sir Fred
but it doesn't work.
Last edited by Juan F. Ramirez on Mon Jul 15, 2019 9:54 pm, edited 2 times in total.
Re: Predictive Search
Thanks for the feedback. Could you test it on a desktop or laptop for now?Juan F. Ramirez wrote: ↑Mon Jul 15, 2019 9:46 pm A really good idea.
I'm using Chrome for Android and it works.
- Juan F. Ramirez
- Bugaboo
- Posts: 5146
- Joined: Tue Nov 14, 2017 6:55 am
- Location: Málaga, Spain
Re: Predictive Search
Yes I'll try it
Re: Predictive Search
Yes [mention]Juan F. Ramirez[/mention]
Three characters.
Three characters.
- Juan F. Ramirez
- Bugaboo
- Posts: 5146
- Joined: Tue Nov 14, 2017 6:55 am
- Location: Málaga, Spain
- Juan F. Ramirez
- Bugaboo
- Posts: 5146
- Joined: Tue Nov 14, 2017 6:55 am
- Location: Málaga, Spain
Re: Predictive Search
Now I'm with my laptop (Windows 10).
Both in Chrome and Edge (cleaned cache before) I made a search for
'Underw'
and the result was
'Wunderwaffe'. Underwurlde was ignored.
The same problem with Sir Fred.
And If I type
'Green'
only 'An Walgreen' appears. It ignored the obvious Green Beret.
Hope it helps!
Both in Chrome and Edge (cleaned cache before) I made a search for
'Underw'
and the result was
'Wunderwaffe'. Underwurlde was ignored.
The same problem with Sir Fred.
And If I type
'Green'
only 'An Walgreen' appears. It ignored the obvious Green Beret.
Hope it helps!
Re: Predictive Search
I'm using IE, W10 laptop, and I cleared cookies.
If I type "Buzz" then I see a list that contains the Buzzsaw variants among others, but if I continue and quickly type "Buzzsaw" & press enter it selects "Buzzman". It looks like the speed you type matters, when you press enter it selects the top choice for you—I would not want it to do that. I'd want the option to search for the string that I input, irrespective of whether it's in the list.
If I type "buzz", then I don't see a list at all, but it does at least let me type "buzzsaw" and search for it. The first letter needs to be upper case for the search to work. Is that intentional?
If I type "Buzz" then I see a list that contains the Buzzsaw variants among others, but if I continue and quickly type "Buzzsaw" & press enter it selects "Buzzman". It looks like the speed you type matters, when you press enter it selects the top choice for you—I would not want it to do that. I'd want the option to search for the string that I input, irrespective of whether it's in the list.
If I type "buzz", then I don't see a list at all, but it does at least let me type "buzzsaw" and search for it. The first letter needs to be upper case for the search to work. Is that intentional?
Re: Predictive Search
Currently Title search is case sensitive (will be changed).Juan F. Ramirez wrote: ↑Mon Jul 15, 2019 10:13 pm Now I'm with my laptop (Windows 10).
Both in Chrome and Edge (cleaned cache before) I made a search for
'Underw'
and the result was
'Wunderwaffe'. Underwurlde was ignored.
The same problem with Sir Fred.
And If I type
'Green'
only 'An Walgreen' appears. It ignored the obvious Green Beret.
Hope it helps!
It's not slow, it just waits a bit for the user to stop typing (500 ms), and then it will do a quick Search.Juan F. Ramirez wrote: ↑Mon Jul 15, 2019 9:46 pm ...
I'm using Chrome for Android and it works. But it's a bit slow, though.
It seems it needs a minimum of three characters. Am I wright?
...
The standard time to wait is usually around 300 ms, but since is going on testing and to minimize server load, since there might be slow typists around here, for now it's set at 500ms.
Yes, to minimize server searches, a minimum of 3 characters is required.
NOTE: this was debated in a previous thread, where there was a special case for "3D" for example. There are some plans to improve search, in several regards.
There is also issues with search with numeral numbers like "II" versus "2", for example, because I'm not using the search_by_titles table yet.
This will be addressed shortly.
Re: Predictive Search
You most probably typed enter, after a list was provided, hence the first item was selected.R-Tape wrote: ↑Mon Jul 15, 2019 10:16 pm I'm using IE, W10 laptop, and I cleared cookies.
If I type "Buzz" then I see a list that contains the Buzzsaw variants among others, but if I continue and quickly type "Buzzsaw" & press enter it selects "Buzzman". It looks like the speed you type matters, when you press enter it selects the top choice for you—I would not want it to do that. I'd want the option to search for the string that I input, irrespective of whether it's in the list.
I intend to change the behaviour, so that it will only select an item, if we physically select an item, instead of defaulting to the first one on enter.
That's because currently it's case sensitive, and there is nothing with "buzz" with a lower B.
Re: Predictive Search
This behaviour was changed, it no longer auto focus to the list.
NOTE: Be sure to force a refresh (CTRL+5 on windows, CMD+Shift+R on MAC), to get the updated Javascript files.
Re: Predictive Search
Doesn't work at all here, Win10, Chrome latest. Deleted cookies, still nothing.
Re: Predictive Search
Correct. As per the first post, it's just the quick search. Does that work on Safari?
Re: Predictive Search
I had to CTRL + F5 then reboot on W10.
Re: Predictive Search
No effect here, I've cleared cookies, refreshed hard with CTRL+F5 and rebooted Win10.
Still no predictive search.
Re: Predictive Search
NOTE: The only place where it's implemented right now, is on the quick search box. Top right corner.
I a bit confused, about the rest.
Doesn't run on Safari 9.0 ?
I'll check that.
Doesn't run on Chrome on Win10 ?
I checked Chrome, and it works, but you have to clear your cache, because the javascript file is being cached.
I a bit confused, about the rest.
Doesn't run on Safari 9.0 ?
I'll check that.
Doesn't run on Chrome on Win10 ?
I checked Chrome, and it works, but you have to clear your cache, because the javascript file is being cached.
Re: Predictive Search
Re: Predictive Search
Just confirmed that it works, On Safari 12.1.1, if using the correct URL.
https://spectrumcomputing.co.uk/index_new.php
Anyone else, having issues?
Re: Predictive Search
Aha! That was the problem - I was just clicking on the banner at the top of the forumRMartins wrote: ↑Wed Jul 17, 2019 11:42 amDid you notice that you need to use a different URL ?
https://spectrumcomputing.co.uk/index_new.php
Feel a bit of a pratt now!
Re: Predictive Search
No worries [mention]ZXDunny[/mention]
Just glad you are now able to test.
Just glad you are now able to test.
Re: Predictive Search
Yeah, it works. It's a bit weird typing in "Cyb" and getting results that have "cyb" somewhere inside them, rather than starting with it. We may need to add in some modifiers for the user to specify where the results need to match.
Re: Predictive Search
That's the current behaviour, of the search_by tables.
"Search" is a big subject. I know because I was responsible (tech lead) for web platform of "Yellow Pages" in my country, for about 3 years.
Doing search properly, requires a very different approach than using SQL and is something that takes constant effort to maintain.
Here the approach being followed, is to have the best we can just using SQL, so some limitations apply, but we will try to improve whenever we can.
Some things still need to be debated, taking into account, what features we would like to have and what can be done with an SQL only solution.
Re: Predictive Search
To the ones, that keep an eye on the Tab Icons, there is a proposal for a new one on this new page.
It was based on the site Logo, but its design was adapted to fit the size restrictions of a favicon.
Previous favicon was just a rescale of the site logo, and becomes unreadable and blurry at smaller versions.
NOTE: It might not show up on every browser, since there are a lot of settings for the favicon, and several formats, so some might still be missing.
It was based on the site Logo, but its design was adapted to fit the size restrictions of a favicon.
Previous favicon was just a rescale of the site logo, and becomes unreadable and blurry at smaller versions.
NOTE: It might not show up on every browser, since there are a lot of settings for the favicon, and several formats, so some might still be missing.