-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Query::term_weights
is not assigned
#501
Comments
I noticed this recently when working on the Python integration. Fixing this would simplify the integration since we wouldn't need to resort to term repetition to apply the weighting. |
@seanmacavaney thanks for letting us know. Just to be clear, by fixing you mean that I have some other stuff open now that I want to merge first, but I can look closer into this after that. |
Yes. I expected that The issue isn't urgent though. Query term repetition is good enough for the time being. |
Yeah, I was also surprised :) |
I always figured we had Would it be more or less painful to have a vector of pairs/structs? It seems a bit tedious/error prone to have separate vectors accessed by index, at least in my opinion. Thinking something like:
|
Possibly. This sounds like a good idea, but would have to look at the code again to see if there's anything preventing (or discouraging) that. |
Amazing -- thanks for the fix @elshize! |
@seanmacavaney please note that this is quite a rewrite around query parsing/handling. Not sure how much that would affect your Python binding once you upgrade. We would love to provide some better stability in our APIs, but I'm currently actively trying to improve multiple parts of the library, so it will get worse before it gets better unfortunately. If at any point you have any questions or issues, I'd be more than happy to help with any future upgrades. |
Thanks for letting me know. So it's best to hold off on any changes to the Python integration until the API stabilises a bit. Are there some specific gh issues that you recommend I subscribe to to help keep an eye on this progress? |
Not really, but it may be a good idea to open a tracking issue. Let me think briefly on how to best organize it, and I'll let you know. |
@seanmacavaney I created an issue, not much there now, but you can subscribe to get updates: #569 |
Query::term_weights
seems to be never assigned. The--weighted
flag inqueries
andevaluate_queries
programs ignore those, and instead resolve weights when creating cursors.The text was updated successfully, but these errors were encountered: