Search - how does it work?
We use a custom Elasticsearch cluster to index Posts, Comments, Pages, Users and Groups and query on it. In addition, we use Google APIs to query Drive Files, Calendar events and GMail.
How are the results sorted?
In the Elasticsearch cluster, the search query is parsed into terms and then queried to a relevant index like *Posts*.
Documents (in this index, *Posts*) are given scores by algorithms and sorted based on the scores.
These algorithms take into account:
Note: When querying the Google APIs, the results are given by Google as-is.