I'm wondering if it's possible to boost certain doctypes when performing an examine search? I know I can for all or parts of the search query, but I'd like to implement something that is able to favour, say, news articles over standard content pages. Is that possible with Examine?
Search through each result, and depending on its nodetypeaslias update the score given to it.
Re-order the results by score, which takes into effect the changes made for each nodetypealias.
This works well and gives me the desired results, but I'm pretty sure this could be improved from a performance perspective. I'll keep working on it, but would be interested to hear if anyone else had done something similar!
Boost a doctype - Examine
I'm wondering if it's possible to boost certain doctypes when performing an examine search? I know I can for all or parts of the search query, but I'd like to implement something that is able to favour, say, news articles over standard content pages. Is that possible with Examine?
My current attempt at working through this is to:
nodetypeaslias
update the score given to it.nodetypealias
.This works well and gives me the desired results, but I'm pretty sure this could be improved from a performance perspective. I'll keep working on it, but would be interested to hear if anyone else had done something similar!
Hi Ed,
We did something similar but at indexing time by adding a event handler for the DocumentWriting event of your examine indexer.
Something like this
Dave
is working on a reply...