Hi,
I have Implemented two project in same solution, that is one for Mvc Project and Another for Mvc Umbraco. but here i have implemented Dynamic Search Feature ,if i search its going to search in both mvc and Umbraco and Displaying the result.
I have customeDataservice.cs file too.In this file i'm getting mvc search values.
public class CustomDataService :ISimpleDataService
{
public CustomDataService() { }
public IEnumerable<SimpleDataSet> GetAllData(string indexType)
{
var data = new List<SimpleDataSet>();
SeabEntityContext seabEntityContext = new SeabEntityContext();
CategoryRepository categoryRepository = new CategoryRepository(seabEntityContext);
LanguageRepository languageRepository = new LanguageRepository(seabEntityContext);
BrandRepository brandRepository = new BrandRepository(seabEntityContext);
ProductRepository productRepository = new ProductRepository(seabEntityContext);
ProductViewModelRepository ProductViewModel = new ProductViewModelRepository(productRepository, languageRepository, brandRepository, categoryRepository);
List<ProductViewModel> things = ProductViewModel.GetAllProducts();
foreach (ProductViewModel thing in things)
{
data.Add(new SimpleDataSet()
{
NodeDefinition = new IndexedNode()
{
NodeId = thing.Id,
Type = "content"
},
RowData = new Dictionary<string, string>()
{
{"title", thing.ProductName},
{"contents", thing.ProductLanguages.FirstOrDefault().ProductSubTitle}
}
});
}
return data;
}
In Examinesetting.config file i have added customeindexer.
And i have changed Examineindex.config file too.
when i trying to search it Throws an Error "Value cannot be null.Parameter name: The indexTypes property must be specified for the SimpleDataIndexer provider"
Umbraco Search feature
Hi, I have Implemented two project in same solution, that is one for Mvc Project and Another for Mvc Umbraco. but here i have implemented Dynamic Search Feature ,if i search its going to search in both mvc and Umbraco and Displaying the result. I have customeDataservice.cs file too.In this file i'm getting mvc search values. public class CustomDataService :ISimpleDataService { public CustomDataService() { }
In Examinesetting.config file i have added customeindexer.
analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true" />
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" enableLeadingWildcard="true" dataService="Seab.Umbraco.Service.CustomDataService, Seab.Umbraco" indexSet="CustomIndexSet" />
And i have changed Examineindex.config file too. when i trying to search it Throws an Error "Value cannot be null.Parameter name: The indexTypes property must be specified for the SimpleDataIndexer provider"
is working on a reply...