Hello dear people,
For a long time we had a text-based search for the snippet server that was highly limited. There was no way to search for more than one keyword, filter results, or use advanced search mechanisms. On top of that, it was very slow!
For the last few weeks I have worked on migrating the old snippet server to a brand new architecture. On top of simplifying our infrastructure, it also allowed me to generate an advanced search index based on all of our code snippets. Whenever you save a playground, it is stored in our search index. The stored title, description and tags provide the search engine some more information.
So, without further ado - I would like to announce that you all have access to this wonderful search index at Playground search page | Babylon.js Documentation (babylonjs.com). Using this page you can use natural language to search for playground snippets, check their code and load them. You can use advanced search methods:
Use Boolean operators to force a query to exist or not - “+FreeCamera -PointLight” will give you playgrounds with free camera but without a point light. Using “|” you can ask for playgrounds with “FreeCamera | ArcRotateCamera” , for example. And of course, you can combine them all.
Using asterisk you can search for any phrase that starts with a certain phrase. For example, “Partic*” will match particle and particle system. And “I use Particles in my game”
You can use quotes to match a term exactly.
Oh, and you can search for static methods now! You can search for “Vector3.Zero” to find all playgrounds using this method. Probably quite a lot!
And that’s about it, I guess. I will be happy to know what you think of that. I still call it RC and not stable, as I am still tweaking with a few parameters, AND the proxy server capacity is not as high as I want it to be (but probably enough for our needs for now).