谷歌网站搜索列出我的数据库内容

发布于 2024-09-08 11:42:37 字数 143 浏览 5 评论 0原文

我正在决定使用哪个引擎将数据库条目上的广泛搜索功能合并到我的网站中。有人建议我使用 Zend_Lucene,但我正在与 Google Site Search 进行争论。

我忘记问的问题是 Google Site Search 是否会为我提供数据库搜索功能?

I am in the process of deciding which engine to use to incorporate extensive search features on my database entries into my site. I have been suggested Zend_Lucene, but am debating between Google Site Search.

The question I forgot to ask was will Google Site Search provide me with database searching ability?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅沫记忆 2024-09-15 11:42:37

我忘记问的问题是 Google Site Search 能否为我提供数据库搜索功能?

不,Google 主要索引网页和某些类型的文档(doc、pdf 等)。您必须通过网页公开数据库内容才能将其编入索引。

想一想,假设 Google 索引了数据库并在表的某个特定行中找到了匹配项。它将把用户带到哪里?

The question I forgot to ask was will Google Site Search provide me with database searching ability?

No, Google indexes mainly web pages and certain types of documents (doc, pdf, etc.). You must expose the database content through webpages to have them indexed.

Think about it, let's say Google indexed databases and found a match in some particular row of a table. Where would it take the user?

囍笑 2024-09-15 11:42:37

就站点搜索而言,如果您有一个数据库驱动的站点,那么数据库中的任何可搜索信息都应该已经嵌入到页面中。大多数网站内部搜索引擎搜索数据库的唯一原因是因为它更方便,因为蜘蛛抓取、解析网页、解释其语义结构(标题、标题、内容等),然后对页面建立索引是一个复杂而困难的过程。 OTOH,数据库已经建立了索引,其结构提供了有关数据的语义信息。

然而,谷歌已经解决了蜘蛛抓取、解析、索引和搜索网页的问题。因此,如果您已经正确标记了语义结构的网页,那么它应该没有什么区别。谷歌可能会提供比您自己使用全文搜索实现的更好/更快的结果,仅仅是因为它们的同义词替换和同义词替换。自然语言处理算法、高级搜索运算符和其他功能。

现在,如果您尝试实现诸如 VIN 搜索之类的东西,或者针对特定领域(例如行业知识库)的高度专业化的搜索引擎,那么您最好实现自己的数据库搜索引擎。但这样您就不再实施站点搜索了。

In terms of a site search, if you have a database-driven site, then any of the searchable information in the DB should already be embedded in the page. The only reason most sites' internal search engines search the database is because it's more convenient, as spidering, parsing webpages, interpreting their semantic structure (title, headings, content, etc.), and then indexing the pages is a complex and difficult process. OTOH, a database is already indexed and its structure provides semantic information about the data.

However, Google has already solved the problem of spidering, parsing, indexing and searching webpages. So if you have properly marked up, semantically structured webpages, then it should make no difference. Google will probably offer even better/faster results than what you yourself can implement using full-text search just because of their synonym replacement & natural language processing algorithms, advanced search operators, and other features.

Now, if you're trying to implement something like a VIN search, or a highly specialized search engine for a particular domain (e.g. an industry knowledgebase), then you may be better off implementing your own database search engine. But then you're not implementing a site search anymore.

榕城若虚 2024-09-15 11:42:37

Google 会对网页建立索引,因此您需要为数据库中的每条记录创建一个页面,这并不意味着您需要为每条数据库记录创建 1,000 个 HTML 页面,而是按照下面给出的答案链接进行操作将能够动态地为每个产品提供看似独特的页面。

stackoverflow :: 如何进行搜索引擎索引数据库驱动的内容?

Google indexes web pages, so you will need to have a page for each of your records in your database, this doesn't mean that you need to create 1,000 HTML pages for each of your database record, but following the answer link given below you will be able to provide a seemingly unique page for each product dynamically.

stackoverflow :: How to Have Search Engines Index Database-Driven Content?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文