1

ウェブサイトにGoogleサイトリンクを実装しようとしています。私はError: Page contains property "query-input" which is not part of the schemaとその他の記事はほとんど読んでいません。Googleサイトリンク検索ボックスの使用時にhtmlフォームが要求されています

私はJSON LD形式を使用しています。私は上の任意の<form>のタグを持っていない

- ここで(yrshaikh.com plsはドメイン名を無視し、ダミーのドメイン1と実際のものに置き換えられている)、それは

[{ 
    "@context" : "https://schema.org", 
    "@type" : "Organization", 
    "name" : "yrshaikh.com", 
    "url" : "https://www.yrshaikh.com/", 
    "logo" : "https://yrshaikh.com/smile.png", 
    "sameAs" : [ 
     "https://www.facebook.com/yrshaikh", 
     "https://www.instagram.com/yrshaikh/", 
     "https://www.pinterest.com/yrshaikhdotcom/", 
     "https://www.youtube.com/user/yrshaikh", 
     "https://twitter.com/yrshaikh", 
     "https://plus.google.com/+yrshaikh", 
     "https://www.linkedin.com/company/yrshaikh", 
     "https://en.wikipedia.org/wiki/yrshaikh.com" 
     ] 
    }, 
    { 
    "@context":"https://schema.org", 
    "@type":"WebSite", 
    "name":"yrshaikh", 
    "alternateName":"yrshaikh.com", 
    "url":"https://www.yrshaikh.com/", 
    "potentialAction":{ 
     "@type":"SearchAction", 
     "target":"https://www.yrshaikh.com/search.html?text={search_term_string}&pop=1766357", 
     "query-input":"required name=search_term_string" 
     } 
}] 

...のように見えるものです私のホームページ。

Googleで自分のドメインを検索すると、サイトリンクの検索ボックスが表示されますが、検索語句を入力すると、検索語句のターゲットURLにリダイレクトされず、代わりにwhatever-search-term site:yrshaikh.comでGoogleで検索されます。

Google's Structured Data Testing ToolでJSON LDをテストしましたが、エラー/警告は表示されません。

enter image description here

も注目に値するもう一つのポイントは、この検索のURLを内部的に入ってくるキーワードに基づいて、異なるルートにリダイレクトされていることです。

お願いします。

答えて

1

オブジェクトの配列を使用します。進む道は次のようになります: (通常のjson配列の代わりに@graphを使用):

あなたのウェブサイトを試してみることができますか?

ソース参照:https://webmasters.stackexchange.com/a/90319https://stackoverflow.com/a/33457312/1670511

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@graph": 
    [ 
    { 
     "@type": "WebSite" 
    }, 
    { 
     "@type": "Organization" 
    } 
    ] 
} 
</script> 
+0

試してみる価値! :) – Yasser

関連する問題