This project illustrates a number of ways to use the Truffler .NET Client API to build great search functionality. It uses a read-only indexed populated with information about a number of famous restaurants all over the world. For more examples and information, see the documentation.

Source code

Each example contains a link for displaying the code needed to make the actual search request. The full source code for the project is available for download at GitHub.

The index URL used (configured in web.config) is read-only so you won't be able to index new data, but feel free to play around with the sample code and try out Truffler.

Purpose/Disclaimer

Please note that this project is in no way an attempt to illustrate best practices for ASP.NET MVC or any other technology. It is designed to illustrate how various types of search functionality can be built using the Truffler .NET API, and as such it intentionally contains a lot of code duplication and methods and classes that in a "real" project should be broken up into smaller pieces.

Credits

The project uses Twitter Bootstrap for styling and jQuery, jQuery UI as well as jQuery UI MultiSelect for client side interactions. The indexed data comes primarily from Wikipedia.