I've started looking at the new search functionality for our site, but I can't get it to work. I'm using this code in a view:
Code:
var currentRepository = Kooboo.CMS.Content.Models.Repository.Current;
var results = Kooboo.CMS.Search.SearchHelper.Search(currentRepository, "INTERSECTION", 0, 15, new String[] { "Software~INTERSECTION" });
Software/Intersection is the path to a folder which has items which contain the search term, and both the parent folder (Software) and Intersection folder have been added in Search Settings.
Am I using SearchHelper in the wrong way, or is there some other problem with my configuration?
I'm using the latest release from codeplex, but I have been through a lot of upgrade versions during development.
Thanks
Edit:
I looked at the sample site and got a bit closer. I added some content in the parent directory (Software) and changed my code to simplify it a bit:
Code:
var results = Repository.Current.Search("intersection", 1, 15);
I get the result from Software fine, but I'm still not getting anything from the child folder.