Hi!
thanks for the response!
I created a custom Analyzer like this one (just in case anyone has the same problem):
Code:
public class CustomAnalyzer extends Analyzer
{
@Override
public TokenStream tokenStream(String fieldName, Reader reader) {
TokenStream result = new StandardTokenizer(Version.LUCENE_31, reader);
result = new StandardFilter(result);
result = new LowerCaseFilter(result);
//result = new StopFilter(result, yourSetOfStopWords);
result = new ASCIIFoldingFilter(result);
return result;
}
}
and i use this analyzer in my bridge as is shown here:
Code:
public class AutoridadComoMateriaBridge implements FieldBridge{
@Override
public void set(String name, Object value, Document document, LuceneOptions luceneOptions)
{
......
Field field = new Field(name, texto, luceneOptions.getStore(), luceneOptions.getIndex(), luceneOptions.getTermVector());
try
{
field.setTokenStream(new CustomAnalyzer().reusableTokenStream(name, new StringReader(texto)));
document.add(field);
}
}
thanks in advance,