I'm struggling to get my search results view to sort by the average five star rating or the rating count. Could I ask how to index? Should it be fulltext, string, integra, decimal?

Thanks in advance!

Comments

cockers’s picture

Category: Support request » Bug report

At first I thought it was just me, but after about 8 hours of attempting to index fivestar using this module I've started to notice a pattern.

To recreate: I'm indexing commerce products and their display nodes. This works fine in search api with some time spent configuring it. The fivestar widget is attached to the commerce product. I believe that there is some sort of bug that exists between commerce, search api fivestar and search api.

If I uninstall the search api fivestar module (having already removed all of the indexed fivestar fields) and then reinstall it, I find that views shows some numbers in the fivestar fields! However, they don't relate to the numbers that Fivestar is actually showing. It doesn't matter what I do after these first numbers appear, nothing will change from this moment on until I uninstall and reinstall the module again.

I just can't get it to work on my site, so I'm assuming that it must be a bug.

ibakayoko’s picture

You need to install and configure https://www.drupal.org/project/search_api_solr

demoshane’s picture

Status: Active » Postponed (maintainer needs more info)

Yes, like ibakayoko said. Try that first.

And sorry for late reply. For some reason I haven't got notification about this.

surendramohan’s picture

Thanks for such a useful module.
Is this module not intended to be integrated with Apache Solr Search and Apache Solr Views modules?

demoshane’s picture

Hello,
this should work with Apache Solr Search.

Br,
Tuomas

joshua1234511’s picture

Patch to be installed
search_api_fivestar.module
https://www.drupal.org/files/issues/search_api_fivestar-set_default_voti...
fivestar.field.inc
https://www.drupal.org/files/issues/fivestar-entity-api-1256572-33.patch

Install the above patches
Clear the cache
Clear the cached index
Select the fields to be indexed
Index the Site

monstrfolk’s picture

joshua1234511’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)