Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 28, 2009 @ 10:58
    Thomas Höhler
    1

    Simple Search 4 Umbraco v0.3 published

    I have published the version 0.3 of my Simple Search for Umbraco.

    This includes only two additional functions which gives you the possibillity to add your own Search definition on runtime.

    e.g.:

    var sd = new SearchDefinition { IsDefault = true, IterationType = IterationType.IterateAll, Name = "MySearchDefinition" };
    var dt = new DocumentType { Alias = "blog.com.Post", Category = "Blog Post", TestNodeName = true, IncludeChildNodes = false };
    sd.DocumentTypes.Add(dt);
    dt.Properties.Add(new Property { Alias = "bodyText", ComparisonType = ComparisonType.String, Comparison = Comparison.Contains });
    dt.Properties.Add(new Property { Alias = "umbracoTags", ComparisonType = ComparisonType.String, Comparison = Comparison.Contains });
    var searcher = new Searcher();
    searcher.Search(sd, "PHRASE TO SEARCH", null);

    Cheers,
    Thomas

Please Sign in or register to post replies

Write your reply to:

Draft