Skip to content

Instantly share code, notes, and snippets.

@Bishbulb
Last active May 31, 2017 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bishbulb/c9a8d176605b5be99e52101014d3f22a to your computer and use it in GitHub Desktop.
Save Bishbulb/c9a8d176605b5be99e52101014d3f22a to your computer and use it in GitHub Desktop.
An example of a custom analyzer for RavenDB
using System.IO;
using Lucene.Net.Analysis;
namespace MyApp.Analyzers
{
public class MyLowercaseAnalyzer : Analyzer
{
public override TokenStream TokenStream(string fieldName, TextReader reader)
{
TokenStream t = null;
t = new LowerCaseFilter(t);
return t;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment