I’m happy to announce Truffler Sample, a project that illustrates basic usage of Truffler and it’s .NET API. It’s both a site online at sample.truffler.net and an ASP.NET MVC project that you can download the source code for over at GitHub. The downloadable project is preconfigured with a read-only index URL, meaning that you can play with it without any configuration or hassle, just download and hit F5. You won’t however be able to index anything into the demo index.
The site currently demonstrates basic search functionality, how to do sorting, paging and highlighting along with filtering and facets. It also features a very simple example of how autocomplete functionality can be built
using Truffler. In all of these cases we’ve tried to keep it fairly simple to illustrate the core concepts rather than show off how Truffler can handle very complex scenarios. We leave that up to you, and perhaps to some other future sample project. We do plan to extend the project with further examples, such as for geo search in the near future though.
The demo index currently holds information about 70 famous restaurants in different countries. The indexed data includes the restaurants names, addresses and locations, Guide Michelin ratings and the text from their Wikipedia pages. We would have liked to have used a larger volume of data, but trust me when I say that finding suitable data for showing everything from basic text search to filtering to geo search to facets was the hardest part of putting the project together :)
To get started either head over to the site and browse around and check out the source code using the link in the header of each example, or grab the source code from GitHub, open it in Visual Studio and hit F5.
PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.
This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.
read more
Comments
Erik Engstrand 3 months ago
Truffler is cool! Regarding the EPiServer integration.
Will it work for a load balanced EPiServer site?
Does the module automatically reindex pages on all web front also when pages are published/updated through event replication?
Does every web front have it's own index?
Thanks!
Joel Abrahamsson 3 months ago
Hi Erik!
Let me begin by answering your last question: the search index, or rather the REST API, resides on a separate server, either hosted by us or as a dedicated server (In-a-box).
Given this setup, the answer to the two first questions is yes :)
Erik Engstrand 3 months ago
Greate! Looking forward to follow this project in the future.