Multilanguage searching with Elasticsearch

This time I’ll start directly with the code.  First an utility method to create the connection: [csharp] private ElasticClient Connect(IEnumerable contents) { var defaultLanguageCode = “eng”; var uri = new System.Uri(ConfigurationManager.AppSettings[“ElasticSearchServer”]); var settings = new ConnectionSettings(uri).SetDefaultIndex(defaultLanguageCode); var client = new ElasticClient(settings); } [/csharp] And here’s the interesting part: [csharp] public...

1 minute read

Multilanguage indexing with Elasticsearch

This time I’m rambling about Elasticsearch. For those who still don’t know, Elasticsearch is a very interesting search engine based on Lucene. It’s structured to work as a NoSQL database and exposes a very nice RESTful web interface. Ok, that’s enough, let’s get started with the code! The first thing to do is...

2 minute read

SDL Tridion: how to get WebDAV url of an item

Suppose you have to reference an item and you don’t want to use the id. Or maybe you just need the full path. One simple way is to edit the item, go  to the Info tab and get it’s location: you should have something like this: [csharp]\910 Design HTML\Building Blocks\System\Templates\Assemblies[/csharp]...

1 minute read

SDL Tridion: how to reference a parameter schema

This is going to be my first post on SDL Tridion and I’m going to explain different ways to reference a parameter schema from a ITemplate implementation using the TcmTemplateParameterSchema class attribute. So, assuming you are creating a nice .NET assembly with your Template Building Blocks and you want to reference a...

2 minute read

SDL Tridion training course, day 1

Ok this is going to be very interesting: RazorfishHealthware is sending me to Amsterdam with a colleague to study the SDL Tridion CMS ! This is the 5th time I visit Amsterdam and each time is special….I’ll make sure to post more news and pictures in the next few days 😀

1 minute read

ASP.NET Dropdownlist with groups

looks like it’s not possible to have optgroups in an ASP.NET Dropdownlist without subclassing. Today I found a very useful snippet on stackoverflow that allows to group items on client side and I want to share it with the world: server: private void AddItemToList(DropDownList list, string title, string value, string group...

1 minute read

Goodbye equilibriointestinale!

The client decided to shut down the project so www.equilibriointestinale.it is now offline. It was a very interesting project (at least technically) and one of the few that didn’t raised my stress levels 😀

1 minute read

XNA and Visual Studio 2013

Thank you. Really, thank you. That’s the link to the XNA page on Codeplex , with a package that will allow Visual Studio 2013 users to write, build and deploy XNA 4 applications. Enjoy! PS: yes, I’m still working on Castle Legends.

1 minute read