tackme31 / cairngorm Goto Github PK
View Code? Open in Web Editor NEWA simple recommender library for Sitecore.
License: MIT License
A simple recommender library for Sitecore.
License: MIT License
Support pagination for recommended items.
// Arguments can be named take/skip, pageSize/pageIndex, etc.
var items = recommender.GetRecommendation(offset: 3 * 5, limit: 5);
Support multiple search scopes like the following.
<searchScopes hint="raw:AddSearchScope">
<scope>/sitecore/content/SiteA/news</scope>
<scope>/sitecore/content/SiteB/news</scope>
</searchScopes>
Change the name of the CookieInfo.Lifespan
property to MaxAge
.
The method name for getting recommendation is misspelled.
Recommender.GetRecommedation
Recommender.GetRecommendation
Default tag resolvers don't trim spaces when a delimiter specified.
Translate README.md into Japanese.
The StoredItemsCount property is not respected when specified more than 10
Allow RecommenderSettings.SearchTemplate
to set template names.
<searchTemplates hint="list">
<template>{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}</template>
<template>Sample Item</template>
</searchTemplates>
Reverse apply order of weight of gradual boosting.
The ItemsStoreBase.AddItem
method must be passed an item that is recommender target. But items in a location not specified in searchScope
are passed to it.
It is necessary to add the process of checking the searchScope
to the following code.
foreach (var settingName in config.SettingNames)
{
var setting = config.GetSetting(settingName);
if (setting == null)
{
continue;
}
if (!IsTargetTemplate(setting.SearchTemplates, Context.Item))
{
continue;
}
// check searchScope here
setting.ItemsStore.AddItem(Context.Item);
}
The cookie vanishes when user accesses a page with a non-target template.
A context item is not reflected in the recommendation
The LinkFieldTagResolver
resolves tags only from the LinkField
. The ReferenceField
also has to be added to this target.
Change type of the Recommender from class to interface.
before:
public class SampleRecommendationRepository
{
protected Recommender SampleRecommender { get; }
public SampleRecommendationRepository(IRecommenderFactory factory)
{
SampleRecommender = factory.GetRecommender(name: "sample");
}
after:
public class SampleRecommendationRepository
{
protected IRecommender SampleRecommender { get; }
public SampleRecommendationRepository(IRecommenderFactory factory)
{
SampleRecommender = factory.GetRecommender(name: "sample");
}
Allow the cookie information to change dynamically.
$lang
, $site
) used in the cookie's configuration.Fix README.
Fix The simple API
to Simple API
Exception occurs when inexistent item is specified to the SearchScope property
Test on Sitecore 10.0 or higher.
Create a logo for Cairngorm.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.