Google search = no results

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/4/2011 10:53:32 AM
Gravatar
Total Posts 23

Google search = no results

Hi,

Our site went live this week, and we have an issue with Google Search. It worked fine in testing, but with the live site, when we type a query into the search box on the home page, it brings up the search results page with whatever search term was in the URL and a big search box, but no search results. If I type in the exact same search term here, the URL looks exactly the same, but I get search results. If I were to just hit reload on the blank page, that doesn't do it - still blank. I have to re-type the search term in order to get results. Again, in testing, any query went straight to the results page with results.

We have temporarily turned the Lucene search back on, and that works fine (search results on the results page right away). However, a lot of what we have on the site are documents (pdf, doc, etc), and Lucene doesn't handle those as well as Google, so I would like to get Google back.

Any ideas? Thanks,

Geoff

11/4/2011 1:37:26 PM
Gravatar
Total Posts 18439

Re: Google search = no results

Hi,

For google search to work, google has to have already indexed your site. So if your site just went live then google hasn't likely indexed it yet. I don't get what you mean by it worked in testing unless your testing site was public and already indexed by google.

Also google can only index the public pages as opposed to the lucene search index which can show results from pages protected by roles if the user doing the search is in an allowed role.

To use google search for your site you need to create a custom search account and put your google search id in Site Settings under the API keys tab.

See:

Hope that helps,

Joe

11/4/2011 2:48:58 PM
Gravatar
Total Posts 23

Re: Google search = no results

I looked at those documents, and figured that might be the case, but the part I don't understand is, why on the blank search results page can I type in the same search, and then get results?

 

11/4/2011 2:54:40 PM
Gravatar
Total Posts 18439

Re: Google search = no results

Are you using the latest version of mojoPortal? If not try upgrading and see if the problem persists.

11/4/2011 2:57:51 PM
Gravatar
Total Posts 23

Re: Google search = no results

Yup, current version (sorry for forgetting):

mojoPortal Version 2.3.7.0 MSSQL
Operating System Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust

 

 

11/4/2011 3:09:55 PM
Gravatar
Total Posts 18439

Re: Google search = no results

Should work in the latest version, I found the thread where this was fixed when using the search box in layout.master. Previously it was not triggering the google search since it is javascript and not based on the url.

11/8/2011 11:46:30 AM
Gravatar
Total Posts 23

Re: Google search = no results

This sounds like a very similar issue to the one we are having, but I am not sure where the googlecustomsearchcontrol is to go check how it looks for our site.

11/8/2011 12:37:31 PM
Gravatar
Total Posts 18439

Re: Google search = no results

Hi,

I just tested this on my local machine and it didn't work, but after making one small change it did work, so this will be fixed in the next release.

To clarify what wasn't working was using the searchInput control in the layout.master page, it just redirects to the search results page passing the search term in the query string but the google search was not picking up that query string so it was only working if you enter the search term after going to the search results page. Now with the fix it will pickup the search term from the query string and execute the search.

Until the next release the best solution is just to use the search link rather than the search input, ie set LinkOnly="true" on the <portal:SearchInput control

then after the next release (sometime later this month) you can remove that and go with the search input box.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.