Description
When users look up a method/property that's inherited from a base class, they could get a list of seemingly repetitive results. For example, the screenshot below is what search results look like for build
on api.flutter.dev, because nearly every widget has a build
method in Flutter.

Usually, only the method/property on the build class has human-authored explanation. In this case, they are on these two pages:
- https://api.flutter.dev/flutter/widgets/StatelessWidget/build.html
- https://api.flutter.dev/flutter/widgets/State/build.html
However, these two pages are 4th and 5th in the search results, respectively.
We discussed some heuristics to improve the ranking:
- Prioritize pages with more human-authored content over pages with less content (e.g, the current top result:
https://api.flutter.dev/flutter/widgets/AnimatedWidget/build.html). - Prioritize pages from the base class over pages from inherited classes
In addition, it could be helpful if the search box allows inputing multiple keywords. For example, when the user looks for a general explanation of the build
method, they might put just "build" in their query. In a separate scenario, they might be interested in looking up the build
method for a specific class. So it'd be natural to modify their query from "build" to "build AnimatedWidget" for example.