Here is my scenario:
- Bucket of sitecore items of a specific template
- This template has a field tags(which is a treelist) where you can associate x items there. I'm building a query using lucene to retrieve all the items from the index that have the same tags as my current item. How can I do that?
My code is not 100% done because getting this relashionship is not working properly.
using (var context = ContentSearchManager.GetIndex(indexName).CreateSearchContext())
{
//Filters related articles
var relatedSearchQuery = context.GetQueryable<SearchResultItem>()
.Where( item => item.ItemId != currentArticle.Id.ToID()
//HOW DO I MAKE THAT RELASHIONSHIP AS I CAN'T MAKE STANDARD LINQ QUERIES AT THIS POINT?
using (var context = ContentSearchManager.GetIndex(indexName).CreateSearchContext())
{
//Filters related articles
var relatedSearchQuery = context.GetQueryable<SearchResultItem>()
.Where( item => item.ItemId != currentArticle.Id.ToID()
How do I make that relationship as I can't make standard Linq queries at this point?