I have these documents in my domain:
public class Article {
public string Id { get; set; }
// some other properties
public IList<string> KeywordIds { get; set; }
}
public class Keyword {
public string Id { get; set; }
public string UrlName { get; set; }
public string Title { get; set; }
public string Tooltip { get; set; }
public string Description { get; set; }
}
I have this scenario:
- Article
A1
has keywordK1
- Article
A2
has keywordK1
- One user reads article
A1
- I want to suggest user to read article
A2
I know I can use More Like This
bundle and I read the documentation, but I don't know how to do this? Can you help me please?
Take a look at this example, you can substitute "Genres" for your "Keywords":
}
Output:
-Star Wars Episode V: The Empire Strikes Back, Cast=Mark Hamill,Harrison Ford,Carrie Fisher -Some Fake Movie, Cast=James Franco,Sting,Carrie Fisher -The Conversation, Cast=Gene Hackman,John Cazale,Allen Garfield,Harrison Ford By Genre: -Star Wars Episode V: The Empire Strikes Back Action Sci Fi -Superman Action Sci Fi
Take note of the nuget packages: