-
-
Notifications
You must be signed in to change notification settings - Fork 27
blog search #499
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
blog search #499
Conversation
Do we have anything to track down this migration? |
| textField(text), | ||
| shortField(quality).copy(docValues = Some(true)), | ||
| keywordField(language).copy(docValues = Some(false)), | ||
| dateField(date).copy(docValues = Some(true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a curious question, why does some fields keep values, some don't?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that disabling docValues on fields you don’t sort/aggregate keeps segment size smaller. language would only ever be filtered or searched. it wouldn't be sorted.
Co-authored-by: Thanh Le <lenguyenthanh@hotmail.com>
| intro <- doc.getString(F.intro) | ||
| body <- doc.getString(F.markdown) | ||
| author <- doc.getString(F.blog).map(_.split(":")(1)) | ||
| language <- doc.getString("language") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| language <- doc.getString("language") | |
| language <- doc.getString(F.language) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to do the migration before merging, to avoid accidental deploy. otherwise lgtm. great job!
|
something fishy with git history 🤔 |
this code assumes the automod subdocument has the integer based "automod.quality" field rather than the string based "automod.classification". data using the older schema is live on prod as of 05/06/2025
that data must be migrated before ublog ingests & queries will function.