-
Notifications
You must be signed in to change notification settings - Fork 23
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
Patch/stored fields #333
base: master
Are you sure you want to change the base?
Patch/stored fields #333
Conversation
let me fix the failing tests and reopen |
added helper util to make it easier and to try to centralize where this happens
fixed the tests, I had failed to update usage of |
Codecov Report
@@ Coverage Diff @@
## master #333 +/- ##
==========================================
+ Coverage 75.81% 75.84% +0.02%
==========================================
Files 94 94
Lines 4337 4342 +5
Branches 320 324 +4
==========================================
+ Hits 3288 3293 +5
Misses 1049 1049
Continue to review full report at Codecov.
|
It seems like this change will further complicate the config and quietly break old configs by breaking stored fields into two categories. Can we not simply ignore stored fields that are missing from the sentence when making mentions? |
I def agree with this point
It's crashing where we're getting the fields from the index -- which we did that way as an optimization: basically, instead of asking each time what fields a doc has, or else getting all the fields, it gets a field that "should" be there. We can do this diff, but we'd change something here, not in the Mention |
I think the changes to the config provide extra flexibility and may be a good idea to keep them. |
611d79b
to
1b8a2ca
Compare
By mixing the metadata stored fields (e.g., filename) and the sentence stored fields (e.g., raw, etc) there was an issue when the Mention tried to populate itself to the
VerboseLevels.all
level. Basically, the mention would try to populate the metadata stored fields, but the lucene doc for the sentence didn't have that info (bc it was in a diff parent-level document since it's metadata). This resulted in an exception.This patch fixes that by separating the two and using them in the right places.