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

09.09.10 18:28:  @umbraco happy birthday my friend

09.07.10 20:02:  Aaaaadler ;-)

09.07.10 20:01:  Einmal Bier holen = Tor verpasst => Der Weg in den Keller ist eindeutig zu lang...

09.04.10 06:04:  @Shazwazza Done ;-) #ucomponents #Umbraco

09.03.10 20:43:  @netaddicts LOL

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