Last active
May 31, 2017 21:15
-
-
Save Bishbulb/c9a8d176605b5be99e52101014d3f22a to your computer and use it in GitHub Desktop.
An example of a custom analyzer for RavenDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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