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

Add facet prefix filtering when paginating within a facet #1262

Merged
merged 6 commits into from
Oct 19, 2015

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Oct 17, 2015

Fixes #1251. I took @peetucket's commit and tried to push logic down into the models and use some more bootstrap-y styling:

screen shot 2015-10-17 at 9 36 06 am

There's significant work left to make it a general purpose tool (say, disabling the prefixes that have 0 hits), but this may be good enough for some targeted use or in a very large index.


.pagination-xs {
li {
a, span {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3
Each selector in a comma sequence should be on its own line

@cbeer cbeer force-pushed the peetucket-facet-filter-index branch 2 times, most recently from 0822295 to 372d17d Compare October 17, 2015 16:52
# set :index_pagination to true if you want the pop-up window for large facets to have alphabetical index navigation
# (useful when user clicks "more" on a large facet and wants to navigate alphabetically across a large set of results)
# if you set :index_pagination to true, you MUST set :index_range to an array of characters that will be used to create the navigation (note: It is case sensitive when searching values)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says to set :index_pagination => true but in the example :index_pagination is not set.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could case sensitivity be an option here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. I've tried to revise the comment to reflect the new configuration.

Solr's facet.prefix option is case-sensitive. It looks like, in Solr 5.1, they landed a new facet.contains parameter that may do case-insensitive filtering, so maybe there's hope for this in the future..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cbeer cbeer force-pushed the peetucket-facet-filter-index branch from 372d17d to 4bd3f56 Compare October 17, 2015 17:10
jcoyne added a commit that referenced this pull request Oct 19, 2015
…r-index

Add facet prefix filtering when paginating within a facet
@jcoyne jcoyne merged commit d49846a into master Oct 19, 2015
@jcoyne jcoyne deleted the peetucket-facet-filter-index branch October 19, 2015 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants