문제

i'm using Kentico Smart Search but im looking to build a reference table, basically to boost particular pages for particular phrases i.e.

if user searches for "XYZ" result = "www.examplesearchresult.com" if user searches for "ABC" result = "www.secondexampleresult.com"

Any help would be greatly appreciated

Thanks Ben

도움이 되었습니까?

해결책

The other way how to achieve this would be in modifying the dataset of results. You will check the search term and if it will fit your rules, you will access the returned datset with results (\CMSModules\SmartSearch\Controls\SearchResults.ascx.cs in Search() method) and add column(s) with your desired items.

다른 팁

If you're searching for specific document types, you can extend the document type by adding another field and allowing it to be searchable. Then you can alter your lucene query to include that field as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top