On my ASP.NET web application, there is a search form which redirects the user to a page such as:
/Search.aspx?q=query_text
On this page, I want to display search results from the site pages.
What is the best way of doing this? Would I be better trying to develop a search engine by storing page content in the database, or is there an easy way of pulling this from google?
If I use google is there a way of getting the results in RSS format with URLs and titles so its easy to implement into the application?
if your data are coming from the database then you search should be from the database for sure !
but if you have static pages on your website then you can replace them by create a table for the content of the static web pages and then you can add your query to search on them.
Related
how can I achieve a certain well structured layout in the Google search results as presented below? I am working with multiple Wordpress instances on several sub domains (not a multisite). Google does not get along with the sitemap structure so all sites are scattered around. Any ideas?
In the search results it should look like this (basically like any other well structured sitemap):
MAINPAGE.COM
(Meta text)
---- SUB.MAINPAGE.COM
---- SUB.MAINPAGE.COM
---- SUB.MAINPAGE.COM
I messed around with Toast but I did not reach any results.
Messed around with Yoast? You just need to install Yoast on all instances. Submit the sitemaps generated by Yoast from all sites to Search Console.
Positioning the results in Google SERPs is not driven by sitemap. It
is driven by Google's algorithmic analysis and rankings. For one
search query, it is possible that Google finds a page from Instance B
better than instance C page or other site etc.
Under Google Search Console > Indexing > check the issues you're having with indexing. Do this for each instance property OR if you've only one property for ALL sub-domains, just check the Indexing/Coverage issues.
Additional Notes:
Wordpress 5+ comes with built-in sitemap functionality. If you're having issues with Yoast sitemap generation, try that as a fallback. Yoast sitemaps are better than built-in ones. Anyway. Submit them for each WordPress instances to Search Console to let Google discover pages from your submitted sitemaps.
Plus. If you want Google to analyze pages from all of your sub-domains, verify Search Console via DNS property. It acknowledges Google to explore through all main site and its sub-domains under the same property including https & http versions.
I created a page on a Wordpress site that was for internal use only and triggers some backend code. Within a few days I started seeing hits on that page from "bingbot".
I'm not using any kind of sitemap plugin. How are crawlers finding this page?
I know the robots.txt file can block them but I want to make sure they don't show up for crawlers that don't respect this. I still want to have the page publicly accessible if someone types in the URL.
What needs to be done in Wordpress to make sure a page can't be discovered except by typing in the URL?
Any given URL is potentially "discovered" once the post is published and if there's a link to it from elsewhere on your site. There's no guaranteed way to prevent search engines from indexing a URL.
We're building multiple single page apps that all consume the same service based API. One of our requirements is to offer a simple CMS that allows an admin to create marketing pages.
I was able to set up a wordpress instance using the multisite plugin and put it behind our own API. This allows us to use wordpress as a CMS service. We can create pages in the wordpress admin area and then pull the content in using the wordpress rest api plugin.
One of the problems I'm having is to migrate our key, value translation string files into wordpress. We'd like to store them in the database and use wordpress as a place to edit them and then query for them using the rest api plugin. Our translation files are json format and look like this:
{
"LOGIN_LABEL": "Sign In",
"LOGOUT_LABEL": "Sign Out",
"SIGN_UP_LABEL": "Register"
}
Looking for any solutions that would help us use wordpress as a place to store key value pairs, edit them, and do GET requests to pull them in.
I'm searching for some internal site search code.
The scenario is:
I'm having a site in which the content comes from database (CMS) which makes the pages dynamic. So the search tool should search this dynamic content too.
I don't want to use readymade search engines like google, bing etc....
Do I need to make my own search control for this or would I get a ready code? If I would have to make my own then what approach should I take?
Lucene.NET can search files and database, or any text-based content. See here how to start. You can also buy a book. For documentation, you can search for Java examples, wikis and docs, because it's direct port so most of concepts for on .NET version also.
You can use google search to search in your pages, see
How can I add a Google search box to my Web site?
Is it possible to use Drupal to feed a few dynamic portions of a mostly static website? We have a plain old website and are looking to create a sibling site just for web-app stuff (private CMS, databasing, some forms for specific things, etc.). Some of the content we create on the sibling site (which would be Drupal), we'd like to render in areas on the primary site (non-Drupal). An example might be a news feed generator that displays on the primary site, but is actually fed from content created in the secondary site's interface. Another potential workflow might be a Drupal installation that's located in a subdirectory of a mostly static website. A general login link could redirect users to the drupal area, but could we get any of the content they create outside of that, modularly, so we can keep our nice rigid site design? I guess I'm looking to harness Drupal as more of a framework than a CMS.
Is any of this possible? Is this even a logical concept, or am I stupid for asking?
Thanks for any suggestions.
It is possible you could implement a custom callbacks which are accessed via Jquery on your old site.
However....
Why would you do this, Drupal is a CMS for websites, if you have a static website, no matter how big it won't be too dificult to put it into drupal and look the same, even have the same URLs. You then get Drupal goodness wherever and whenever you want very easily.
You can always access your Drupal database in your external site to display whatever Drupal content you want.
You could build RSS feeds with Views and put a simple feed parser into your static site. But again, if you want more than simple RSS syndication, you are better off planning a migration path than partial Drupal integration.