我如何使用 Schema.org 来识别我们酒店搜索网站上的过滤器?

How do I use Schema.org to identify filters on our hotel search site?

我正在开发一个旨在帮助用户寻找酒店的网站。我们有很多小部件用于过滤我们显示的酒店(例如价格过滤器)或订购我们显示的酒店(例如按距离)。

我可以看到如何将我们的酒店标记为列表的 being a list. And also how to communicate the sort order

我们已经在标记酒店本身了:

<div itemscope itemtype="http://schema.org/Hotel">
    <div itemprop="image" style="background-image: url('{{{ imageUrl }}}');"></div>
    <h2 class="title" itemprop="name">{{ name }}</h2>
    <div itemscope itemtype="http://schema.org/Offer">
        <div itemprop="price">{{{ price }}}</div>
    </div>
</div>

有没有办法将我们的过滤器识别为调整列表的工具?

要了解网站的工作原理,请参阅 - http://mapov.com/hotels/the+strip/

Is there a way of identifying our filters as being tools for adjusting the list?

具有 Action 类型。

参见 SearchAction or perhaps FindAction (DiscoverAction)。

一个Action可以用来表示发生了什么(例如,"User 3 searched for hotels in Amsterdam"),也可以用来表示潜在的动作:使用potentialAction 属性来指定项目可能具有的操作。

<section itemscope itemtype="http://schema.org/ItemList">
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
    …
  </div>
</section>

关于您的标记的附注

  • 您的 image 属性 将不起作用,它不能在 style 属性中指定图像作为值。您必须在 "link" 元素上提供 image 属性(例如,imgalink、...)。

  • 您的 OfferHotel 没有关联。您可以使用 makesOffer 属性.

<div itemscope itemtype="http://schema.org/Hotel">
 <img itemprop="image" src="http://yourhostel.es/content/124"/>
 <meta itemprop="address" content="you street"/>
<h2 class="title" itemprop="name">name </h2>
<div itemprop="priceRange">price</div><div itemprop="telephone">9999999</div>

价格