Skip to content

Ensure that facet suggestions are relevant to the user's query#3495

Merged
jcoyne merged 1 commit into
mainfrom
i3494-relevant-facet-suggest
Jan 27, 2025
Merged

Ensure that facet suggestions are relevant to the user's query#3495
jcoyne merged 1 commit into
mainfrom
i3494-relevant-facet-suggest

Conversation

@sandbergja

Copy link
Copy Markdown
Contributor

Before this commit, the facet suggest javascript sent HTTP requests that included only the name of the facet and the fragment that the user entered to filter down the facets.

This commit also sends any URL params that were in the user's original search, so that the facet suggestions are relevant to the search, rather than being just the most popular facet values from the entire corpus.

Closes #3494

Before this commit, the facet suggest javascript sent HTTP
requests that included only the name of the facet and the
fragment that the user entered to filter down the facets.

This commit also sends any URL params that were in the user's
original search, so that the facet suggestions are relevant
to the search, rather than being just the most popular facet
values from the entire corpus.

Closes #3494
@sandbergja sandbergja force-pushed the i3494-relevant-facet-suggest branch from 607cb00 to f3a53b5 Compare January 24, 2025 13:57
@jcoyne jcoyne merged commit e5618b6 into main Jan 27, 2025
@jcoyne jcoyne deleted the i3494-relevant-facet-suggest branch January 27, 2025 16:34
sandbergja added a commit that referenced this pull request Jan 30, 2025
…vant to the user's query (#3501)

* Ensure that facet suggestions are relevant to the user's query

Before this commit, the facet suggest javascript sent HTTP
requests that included only the name of the facet and the
fragment that the user entered to filter down the facets.

This commit also sends any URL params that were in the user's
original search, so that the facet suggestions are relevant
to the search, rather than being just the most popular facet
values from the entire corpus.

Closes #3494

* Put test into configured context

---------

Co-authored-by: Max Kadel <mkadel@princeton.edu>
sandbergja added a commit to pulibrary/orangelight that referenced this pull request Feb 4, 2025
Helps with #4025, since it includes the fix to
projectblacklight/blacklight#3495
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.

Facet suggest autocompletes all facets from the entire solr collection, rather than facets relevant to the user’s search

2 participants