StopFilterFactory with french_stop.txt

2016-05-05 Thread Daniel Bigham
I'd like to use CustomAnalyzer to create an analyzer that is much like the FrenchAnalyzer. In doing that, I'm using StopFilterFactory. But I'm unsure how to point it to use "french_stop.txt". ie. What FrenchAnalyzer is using here: public final class FrenchAnalyzer extends StopwordAnalyzerBas

Re: StopFilterFactory with french_stop.txt

2016-05-05 Thread Daniel Bigham
For the time being I seem to be able to do this by using a custom TokenFilterFactory class as follows. If there is a better approach, or if this approach seems flawed, let me know. Thanks. package com.wolfram.textsearch; import java.io.IOException; import java.io.Reader; import java.nio.