Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facet count #375

Open
alexmakeit opened this issue Sep 5, 2018 · 3 comments
Open

Facet count #375

alexmakeit opened this issue Sep 5, 2018 · 3 comments
Labels

Comments

@alexmakeit
Copy link

Is there a way to get more than 10 facet http://i.imgur.com/iSK41JP.png ?

@danielbachhuber
Copy link
Contributor

Hi @alexmakeit,

I'm not sure I follow. Can you share the code you used to produce the screenshot, and more details about your configuration generally?

@carl-alberto
Copy link

Hi @danielbachhuber,

This issue might be related on the facets that is being displayed by the widget, it only shows maximum of 10. https://www.screencast.com/t/hDUtOhPk

It seems, the plugin don't have an option to change that value or a documentation to change it or override it via a filter.

Tried to manually change the wp-content/plugins/solr-power/includes/class-solrpower-options.php: $options['s4wp_max_display_tags'] = 10 but it seems it doesn't change even after clearing cache

@kshaner
Copy link
Contributor

kshaner commented Feb 13, 2019

@carl-alberto ,

I needed this as well and it worked by setting a large number to s4wp_max_display_tags. Setting it to -1 doesn't work as that also disables sorting by facet count. You could access it by filtering the get_option call:

add_filter( 'option_plugin_s4wp_settings', function( $options ) {
	return array_merge( $options, [ 's4wp_max_display_tags' => 10000 ] );
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants