简体   繁体   English

过滤Google Site Search结果

[英]Filtering Google Site Search results

I know that Google Site Search provide a XML API (paid) to get a better control of results in our website. 我知道Google Site Search提供了XML API(收费)以更好地控制我们网站中的结果。

But I have a website with a lot of articles stored in my database, so I'd like to filter my results (articles) by date, or by category for example. 但是我有一个网站,数据库中存储了很多文章,因此我想按日期或按类别过滤结果(文章)。 I don't know if it's possible with Google Site Search because is must interact with my database. 我不知道Google Site Search是否可行,因为它必须与我的数据库进行交互。

I'd like to know if it's possible and if so, how to do this? 我想知道是否有可能,如果可以的话,该怎么做? Thank you 谢谢

Google Site Search only provides you with the ability to search your visible web pages. Google Site Search仅使您能够搜索可见的网页。 It does not interact with directly with your database. 它不会直接与您的数据库进行交互。

You'll need to either display all your database entries as web pages, or build a custom search engine if you don't want them to be displayed without passing through search first. 您需要将所有数据库条目显示为网页,或者如果您不希望不先通过搜索就显示它们,则构建一个自定义搜索引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM