Is it possible to dynamically set the preferred language of a google custom search engine - settings

Say I have a website in two languages each under its own domain:
websitename.com
websitename.fr
Both have a paid custom search engine. In the future more websites with will be added for other languages. This will dramatically increase the costs for the custom search engines.
I'd rather have a single search engine that searches all of the websites, but with a preferred language set by me depending on what website loads the engine. This way a visitor on websitename.fr will have French pages ranked higher.
Google CSE supports searching multiple websites and setting a preferred language. I can't seem to find how to alter this setting dynamically when loading the engine in one of the websites. Is this possible at all, or is my only option to have a different CSE for each website?

gcse.src = 'https://cse.google.com/cse.js?language=fr&cx=' + cx;
Just add language parameter in src to cse.js.

Related

Word / PDF document snippet rendering in search

I'm interested in building a software system which will connect to various document sources, extract the content from the documents contained within each source, and make the extracted content available to a search engine such as Elastic or Solr. This search engine will serve as the back-end for a web-based search application.
I'm interested in rendering snippets of these documents in the search results for well-known types, such as Microsoft Word and PDF. How would one go about implementing document snippet rendering in search?
I'd be happy with serving up these snippets in any format, including as images. I just want to be able to give my users some kind of formatted preview of their results for well-known types.
Thank you!

Mobile version duplicates the languages

I have a Magento site with one domain, one store and a store view for each language. I need to add a mobile version of the site and have that in all the languages.
If I add another store for the mobile version then store views for each language, I land up duplicating all the languages in the admin area.
The only solution I can see is to have 2 instances of Magento. One with all the store structures (acting front end – install A) and one with all the product (acting backend – install B)
Install A would have two stores and all languages per store and install B would have one store and store views for each language so we only manage each language once.
We would then need to connect these two Magento instances using the API (xml with SOAP). This way we manage each language once and the front end can have as many variations of that language as we like.
Does this look like a workable solution or is there a simpler way to achieve this functionality?
You don't need 2 magento versions.
Magento supports different themes on the same store view for different devices.
All you need to to is to configure a different theme.
For this go to: System->Configuration->Design, select each store view from the top left selector, or Default config if you want to use the same theme for all languages.
In the Theme section you can click on the Add Exception button under the field you need changed (most probably all that support exceptions) and fill in the following.
Matched Expression - iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini
Value - The name of your mobile theme.

Can i use Google Search API to search pages by html source?

Can I use Google Search API to search pages by html source? I want to make a different search engine which will set limits on the engine based on the code of each site. For example, suppose I want to set a parameter which will exclude sites which contain headings. Is this possible?

Constructing membership site with joomla

Hi i run Joomla site on htpp://www.deeptechtons.net and wanted to construct a membership based subscription where people pay to get premium articles.
Exactly the same as tutsplus site network.[ i think it is custom but some solution must be available for joomla]. I already looked into extensions directory nothing fits my purpose.
Some requirements i need are,
1.Custom Profile fields for members.
2.Any time un-subscribe from plan.
3.Simple interface to show plans available
4.Payment processor's support
Also how do i hide the articles for premium members from not showing in search results, both joomla and google.
Joomla has teensy, weensy setting that hides un categorized articles in search plugin.
If you are running your website on Joomla 1.5 then PayPlans might be the better choice. It blends very well with JomSocial and your design. And yes, its very much customizable.
If you want to use 1.5, then Joomla 1.5 + JomSocial + AEC. I would also use K2 for the content because it would make filling your request about keeping content out of Google trivial. I wrote an upgrade to the K2 content display module that would allow you to leave all of your content as public and only display the intro text to non-registered users. Then you display the member content in a module that only displays to registered users. Very easy to maintain and implement.

How to do Search Engine Optimization for Web Applications

I am currently developing a single-page web application that is focused on functionality. It doesn't really have or need long paragraphs of text, and those that are there are loaded dynamically via javascript and AJAX.
Normally search engine optimization tips revolve around getting the right word count percentages, etc. But what are the best practices for SEO when your application is heavily reliant on AJAX? A landing page with descriptive text is not an option - it's important that users can immediately start using the application, and it's rather obvious what it does once it's loaded.
With meta tags fading in importance in modern search engines, is link-building the only solution or are there tricks to help search engines know what an AJAX-based web application is about?
Google has a written specification suggesting how you might make an AJAX web application better crawlable by their robots.
The fundamental principle is that you make a static html version of key pages, and let the crawler know these pages exist, and the relationships between them, using the #! url fragment syntax.
Somewhere you'll have to explain:
What so great about your app
How your app is working ("for dummies" style)
Who you are and why you did it
etc
You can use all this content to do SEO (no ajax is needed for that).
Forget about making ajax crawlable if you don't have any text inside your app anyway.

Resources