Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Our client would like to sort the search results based on a doctype. I found an article on this for Umbraco 7 using the below
public void DocumentWriting(object sender, DocumentWritingEventArgs e) { // boost doctype on indexing if (e.Fields["nodeTypeAlias"] == "YourDocTypeAlias") { e.Document.SetBoost(2); } }
Is there a way to do this in Umbraco 8 or another way we could achieve this?
Did you find a way to do that ?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine search sort boost by doctype
Our client would like to sort the search results based on a doctype. I found an article on this for Umbraco 7 using the below
Is there a way to do this in Umbraco 8 or another way we could achieve this?
Did you find a way to do that ?
is working on a reply...