smart 404 pages - how to use Examine to find matches for 404 content?
We just migrated a large website to umbraco, and among other stategies, I implemented a smart 404 pages which tries to find the best match. I want it to find matches in the same way as the built-in search in the back office.
smart 404 pages - how to use Examine to find matches for 404 content?
We just migrated a large website to umbraco, and among other stategies, I implemented a smart 404 pages which tries to find the best match. I want it to find matches in the same way as the built-in search in the back office.
But it doesn't work: Here is my code: https://gist.github.com/DavidVeksler/d26d8cfcfc40e2ce4b1e
This 404: http://fee.org/freeman/why-the-poor-need-property should return this as the top match: http://fee.org/freeman/why-the-poor-need-property-rights/
But it doesn't. Is there a better way to do this?
Hi,
I see you are using the InternalSearcher. Did you add the "articleTitle" field to the Internal index via the config file?
You can check which fields are indexed in the Internal index via the backend Examine dashboard.
HTH
Veronica
Apparently the answer is to boost the node name:
Anyway, since I liked the built-in back office search, I copied EntityController.cs from Umbraco core, which works perfectly.
is working on a reply...