Draft: feat: added custom score queries#338
Draft: feat: added custom score queries#338whitter wants to merge 2 commits intoShazwazza:release/3.0from
Conversation
|
Cool to see more interest in this type of querying. I made a start a couple of months ago on how I thought it might make sense to configure Custom Queries in a way similar to the scoring profile concept, though I didn't get a chance to implement it fully. Would be great to work together on a solution. Have a look at nzdev#3 for my thoughts on how to do the configuration in a way consistent with other Examine features. |
|
Awesome, just being looking at the work you started. So the idea is to have a score definition collection that can be added to on the Then have Just wondering if you can outline the thinking/planning with the approach as whole as I'd love to lend a hand. |
Just raising this pull request to get some feedback and opinions on the best approach to adding the ability to provide custom score queries to a Lucene search.
Idea is to allow global configuration of scoring queries on the LuceneIndexOptions, while also also scoring per searcher when creating a new instance to add to the ExamineManager and also adding them just before building a query directly on a searcher.
On executing the main query it is nested inside any score queries that have been added before being passed on to the LuceneSearchExecutor.
The code is just a very rough stab at a first pass to implement the ability to have custom score queries and already has areas of improvement such as: