GithubHelp home page GithubHelp logo

cairngorm's People

Contributors

east-a-suzuki avatar tackme31 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cairngorm's Issues

Support pagination

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.

Support multiple search scopes like the following.

<searchScopes hint="raw:AddSearchScope">
  <scope>/sitecore/content/SiteA/news</scope>
  <scope>/sitecore/content/SiteB/news</scope>
</searchScopes>

Support fintering by template name

Allow RecommenderSettings.SearchTemplate to set template names.

<searchTemplates hint="list">
  <template>{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}</template>
  <template>Sample Item</template>
</searchTemplates>

Items in a location not specified in searchScope are passed to the ItemsStoreBase.AddItem method.

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);
}

Change type of the Recommender from class to interface.

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");
    }

Support dynamic cookie information

Allow the cookie information to change dynamically.

  • Solution 1: Add a pipeline or service to get a cookie.
  • Solution 2: Add some tokens (e.g. $lang, $site) used in the cookie's configuration.

Logo

Create a logo for Cairngorm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.