9 ms·
At Algolia, we use simple requests (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests https://developer.mozilla.org/en-US/docs/Web/HTTP/COR
by vvoyer 8y ago
At Algolia, we use simple requests (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simpl...) in our JSON API. So that there's no OPTIONS requests being done in the most important scenarios (GET, POST).
This is a very neat trick because you can definitely ask an API for JSON via accept header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ac...) while being compliant with simple requests by using query strings and/or multipart/form for routes option.
- RobertRoberts 8y agoIf you work at Algolia, can you address (pass along) the issue that you can't use your search boxes with browser search keywords? (ie, right-click > "Add keyword for this search"/"Manage Search Engines") At this point when I see the Algolia search box on a site, I know I won't get a full search experience it will be slightly crippled with a custom interface and a forced auto-complete with JS only interface support. An example of this is vuejs.org vs developer.mozilla.org. With Mozilla dev site, I have 'mdn' as my search key (both Firefox and Chrome) and I can type "mdn grid-template-columns" and I get results. With vuejs.org and Algolia, I have to go through multiple clicks and visual hunt and peck to find what I am looking for. It's a productivity killer.
- jackewiehose 8y agoApropos browser-search-keywords: If you work at youtube, please fix this: Searching via browser keyword should keep the search term in youtube's search-input-box. This changed a few months ago and it is so fscking annoying. This is a good example why computer experience of today is so terrible: "Never run a changing system" is dead. Systems are changing all the time.
- redox_ 8y agoYou should submit a GitHub issue here: https://github.com/algolia/hn-search/issues https://github.com/algolia/hn-search/issues I'm wondering whether the http://hn.algolia.com/opensearch.xml http://hn.algolia.com/opensearch.xml configuration could help here, might need to tweak it a bit.
- RobertRoberts 8y agoI save my criticism for systems I trully want to get better. And I actually regret posting my original comment here and hope the sites I use frequently just drop algolia entirely. (Algolia charges thousands of dollars for some of their services and I find it the worst search system currently used on popular sites.)