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

SOLR schema: convert license to a docValues field for faster faceting #1760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Bomme
Copy link
Contributor

@Bomme Bomme commented May 2, 2024

Description
Change the type of license to string similar to other fields to mark docValues as true. This should help speed up faceting of search results.

The fieldType definition looks like this:
<fieldType name=“string” class=“solr.StrField” sortMissingLast=“true” docValues=“true”/>

Deployment steps:
Re-indexing required!

@Bomme Bomme requested review from alastair and ffont May 2, 2024 18:09
@ffont
Copy link
Member

ffont commented May 7, 2024

This is nice, thanks @Bomme !
Did you check if there are other fields used in faceting that might need similar treatment?

Also in beta search features we do faceting with dynamic fields as well, and I wonder how this would be affecting faceting performance. We'll have to investigate these issues before making some of these extra facets public.

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

2 participants