Is it possible to have the tabs results appear on the drupal results page?

I have checked the xml returned by google search engine and the "facets" and "labels" are present in the xml, but the faceted search does not appear on my drupal results page.

Does this module have this functionality?

Attached some images to better explain the question

Thanks

Comments

marcoscano’s picture

StatusFileSize
new15.62 KB

Hi again,

I've given some more attention to this and have added some code to extract also the faceted information from the XML. Now my problem is solved, everything is working fine.

Once this could be of some interest for others, I'm attaching the changes made to the module. I'm sorry I have no idea on how to create a patch, so I'm uploading the whole code. Hopefully someone more familiar with the drupal best practices could check it and create the appropriate patch... :)

In my use case everything is working fine (the output is a raw unordered list, some css is needed to have it looking good), but some more testing would be a good idea

Regards

dhavyd’s picture

Assigned: Unassigned » dhavyd

Hi! That seems like a nice functionality... Thanks for your code! I'll check it and include it to the upcoming version.

marcoscano’s picture

StatusFileSize
new16.02 KB

In the code in #1 there is a bug when the query expression is made of more than 1 word. Attached a revised version that corrects it.

Also, I've added some more code to display as well the thumbnails on the results, if there is any.

You can see a demo of the results on

http://www.clasicanet.com/search/gss/franch
http://www.clasicanet.com/search/gss/franch+more%3Aconcerts

Please don't forget testing the code before using it on your site...

Regards

dhavyd’s picture

Hi! Yes, it is nice feature to have in the module. Thanks for your code. I'll test and include it in the module and release a new version with those changes...

dhavyd’s picture

Status: Active » Reviewed & tested by the community

So, the version 7.x-1.3 of the module is released and your code has been inserted in it. Thanks for your effort!

dhavyd’s picture

Status: Reviewed & tested by the community » Closed (fixed)
marcoscano’s picture

Status: Closed (fixed) » Needs review

Hi!

In line 347 of GoogleSiteSearch.inc there is still a " print "test"; " remaining, I suppose from debbuging...

dhavyd’s picture

Oh, no... :-)
I have released a new version, because it's not possible to rename a release tag. The new release is 7.x-1.4-beta1, but the problem is that drupal.org doesn't allow me to choose this release as recommended instead of 7.x-1.3, maybe because 1.3 is "better" than beta. I keep trying to change that...

dhavyd’s picture

Status: Needs review » Closed (fixed)

I've release the version 7.x-1.4 to fix that...