Skip to content

Instantly share code, notes, and snippets.

@Bishbulb Bishbulb/MyTestIndex.cs
Last active May 31, 2017

Embed
What would you like to do?
An example of a RavenDB index that uses a custom analyzer
public class MyTestIndex : AbstractIndexCreationTask<BlogPost>
{
public MyTestIndex()
{
Map = posts => from post in posts
select new
{
post.Tags,
post.Content
};
Analyzers.Add(x => x.Content, typeof(MyLowercaseAnalyzer).FullName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.