Frage

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

War es hilfreich?

Lösung

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top