技术问询:Service的AggregateRating及给定代码能否在Google SERP显示星级
Great question! Let's break this down into two clear parts: eligibility of the Service schema for star ratings, and analysis of your specific code.
1. Is Service Schema with AggregateRating Eligible for Star Ratings?
Yes, Google does support showing star ratings in search results for pages using the Service schema type combined with AggregateRating—but only if you meet their core guidelines. Key requirements include:
- Your
AggregateRatingmust include the three mandatory properties:ratingValue,bestRating, andreviewCount. - The ratings must come from legitimate, user-generated reviews (not self-reported or fake ratings).
- The rating content must be visible to users on the page (not hidden in code alone).
- The service itself must be clearly defined and directly relevant to the page's main content.
2. Will Your Code Show Star Ratings?
First, let's fix syntax errors in your code—invalid HTML can break Google's schema parsing. Your original code has an unopened </span> tag right after "Horoscope 2018" and an extra closing </span> at the end. Here's the corrected version:
<div itemscope itemtype="http://schema.org/Service"> Horoscope 2018 Overall rating: <span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <strong><span class="value" itemprop="ratingValue">4.7</span></strong> out of <strong><span itemprop="bestRating">5</span></strong> based on <span class="votes" itemprop="reviewCount">26</span> reviews. </span> </div>
Even with the fixed code, there's no 100% guarantee stars will appear in SERP. Google’s automated systems decide when to display rich results based on extra factors:
- Ensure "Horoscope 2018" is clearly the primary focus of the page.
- Verify the 26 reviews are genuine, user-submitted content (not just a standalone rating without actual review text).
- Make sure your page has enough detailed content about the service to contextualize the rating.
You can use Google’s Rich Results Test tool to confirm if your schema is parsed correctly and check for any additional issues.
内容的提问来源于stack exchange,提问作者Jay Joshi

