Searching a database through Google Custom Search? Attached CSE to database (SQL / NoSQL) for website?

TOPIC - Google Search Engine / Custom Search - with database

References

Search for “Google Search” and “Custom Google Search” (New to StackOverflow, just joined another day. I am limited to two links . I can post right now).

Note: I have not YET decided / fixed any specific coding language, framework, etc. . Until I figure out how to complete my question (below).

BACKGROUND OF INFORMATION

What I'm trying to do (for now) is add a “search box / search engine” to a simple website . I am building. Before I get too far (planning ahead), I would like to use Google CSE if possible (which can do a lot of things and works well). However, I will have a database (not sure about the type of YET. It will depend on what my parameters and I can do with CSE) from the “elements” that I want to be able to quickly search (in the search field), for example, Amazon.com

Question:

Is it possible to use Google Custom Search and the custom search API to search / attach a database (SQL, NoSQL or others)? I would HIGHLY prefer to do all of this on the Google cloud platform and use one of the storage / database products .

+5
source share
2 answers

If I get what you are trying to do, Google CSE is enough.

From the google doc you linked:

# Defining a custom search engine in the control panel

In the Sites to Search section, add the pages you want to include in your search engine. You can include any sites you want, not just the sites you own. You can include whole website URLs or individual page URLs. You can also use URL patterns.

# Enable autocomplete

[...] you can enable or disable the autocomplete function using enableAutoComplete.


For Is there any way at all [..] to search a database , I will say bluntly, but this is not a big problem.

Google CSE is working on "indexable web pages," so it will not work again with a raw database, limited Internet access, or a custom network other than http(s):// .

But in your case, if you are creating a database, I suppose you will need to make a web page to display the data that you store inside your users? (e.g. Amazon product pages)

If so, then you will run Google CSE again on these pages by adding to the whitelist http://[server ip] or http://[domain name] .

+2
source

As far as I know, custom search does not guarantee that all your content will be indexed.

You probably want to try exporting the full sitemap.xml file, an RSS feed, and if you aren’t comfortable with the search results from any of them, you probably want to look at the Google Search Appliance.

There is also http://sphinxsearch.com/ .

+1
source

Source: https://habr.com/ru/post/1263626/


All Articles