Freitag, 28. August 2009

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);

Download it from Codeplex or from our.umbraco.org

Feedback is welcome,

Thomas

Comments: 2  Add Comment Filed under: Umbraco | Package | Simple Search for Umbraco | Search |

Archive


Subscribe Feed

Me on Twitter

07.29.10 18:04:  So, auf in die Pfalz... 5 Tage raus aus dem Alltag...

07.28.10 20:19:  Erst mal den R# installieren, ohne ist schon doof wenn man's mal gewohnt ist...

07.28.10 06:03:  @thorstenh Ein Michey Mouse NB: so ziemlich das billigste Sony: http://tinyurl.com/2wv5yfs aber läuft 1a und ist erst mal ausreichend

07.27.10 20:50:  Installationsorgie...

07.27.10 20:23:  Ahhh, neues Notebook in action...

About

It's me
This blog is written by Thomas Höhler. Living next to Frankfurt, Germany, I am trying to share my experiences about Umbraco [the most flexible CMS I know], my ClientTools for Umbraco, and some other more or less usefull stuff

XING

Latest Posts

Design & Masterpage by 69° media solutions