Umbraco 5: Site Search

Is there a viable way to search for a Umbraco 5 site? I read a lot in the XLST search, but used nothing MVC3. It also seems like Examine is coming a bit wrong, since even backoffice has lost the search box that was in v4. Any ideas?

+3
source share
2 answers

As you know, the Umbraco V5 is retiring; you can try 4.x and do this with custom controls that execute search logic using the umbraco node factory.

Hope you get my views.

+1
source

I created a very simple search, this may not be the best way, but it gives the results that I need.

var results = Hive.QueryContent().OfRevisionType(FixedStatusTypes.Published).ToList().Where(c => c.AllAncestorIds().Any() && c.Name.ToLowerInvariant().Contains(query.ToLowerInvariant()) && c.Attribute<bool>("excludeFromSearch") == false).ToList();

OfRevisionType(FixedStatusTypes.Published) c.AllAncestorIds().Any() ,

0

All Articles