Truffler Sample – Example code and demo site

Truffler-Sample-start-pageI’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 builtTruffler-Sample-facets 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.

Comments

  1. Erik Engstrand's avatar

    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!

  2. Joel Abrahamsson's avatar

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

  3. Erik Engstrand's avatar

    Erik Engstrand 3 months ago

    Greate! Looking forward to follow this project in the future.

Follow me on Twitter

  1. I don't know what she was selling. How rude of me not to ask! 23 hours ago
  2. Muahaha, I just talked a telephone sales person into letting ME send THEM an invoice. She even gave me their org nbr and other details. 23 hours ago
  3. SL/MTR når nya höjder inom dålig informationsspridning idag. Tavlan säger en sak, megafonen en annan, personalen som skriker en tredje 2 days ago
follow me

Latest comments

  1. Martin S. wrote "Perfect stuff, that's just how to do it! Reminds me of an..." on Dear telephone sales woman
  2. Marcus Granström wrote "Poor girl. She didn't know what hit her when she called the ..." on Dear telephone sales woman
  3. Marthin wrote "Happy coding mate!" on New computer, anguish and excitement

About this site

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