fix stop words
This commit is contained in:
parent
7f5318e217
commit
9ab671ed51
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.hy.ArmenianAnalyzer;
|
import org.apache.lucene.analysis.hy.ArmenianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class ArmenianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Arme
|
||||||
@Inject public ArmenianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public ArmenianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new ArmenianAnalyzer(version,
|
analyzer = new ArmenianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, ArmenianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.eu.BasqueAnalyzer;
|
import org.apache.lucene.analysis.eu.BasqueAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class BasqueAnalyzerProvider extends AbstractIndexAnalyzerProvider<Basque
|
||||||
@Inject public BasqueAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public BasqueAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new BasqueAnalyzer(version,
|
analyzer = new BasqueAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, BasqueAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.ca.CatalanAnalyzer;
|
import org.apache.lucene.analysis.ca.CatalanAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class CatalanAnalyzerProvider extends AbstractIndexAnalyzerProvider<Catal
|
||||||
@Inject public CatalanAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public CatalanAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new CatalanAnalyzer(version,
|
analyzer = new CatalanAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, CatalanAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.da.DanishAnalyzer;
|
import org.apache.lucene.analysis.da.DanishAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class DanishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Danish
|
||||||
@Inject public DanishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public DanishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new DanishAnalyzer(version,
|
analyzer = new DanishAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, DanishAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.en.EnglishAnalyzer;
|
import org.apache.lucene.analysis.en.EnglishAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class EnglishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Engli
|
||||||
@Inject public EnglishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public EnglishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new EnglishAnalyzer(version,
|
analyzer = new EnglishAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, EnglishAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.fi.FinnishAnalyzer;
|
import org.apache.lucene.analysis.fi.FinnishAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class FinnishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Finni
|
||||||
@Inject public FinnishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public FinnishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new FinnishAnalyzer(version,
|
analyzer = new FinnishAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, FinnishAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.gl.GalicianAnalyzer;
|
import org.apache.lucene.analysis.gl.GalicianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class GalicianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Gali
|
||||||
@Inject public GalicianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public GalicianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new GalicianAnalyzer(version,
|
analyzer = new GalicianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, GalicianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.hi.HindiAnalyzer;
|
import org.apache.lucene.analysis.hi.HindiAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class HindiAnalyzerProvider extends AbstractIndexAnalyzerProvider<HindiAn
|
||||||
@Inject public HindiAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public HindiAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new HindiAnalyzer(version,
|
analyzer = new HindiAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, HindiAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.hu.HungarianAnalyzer;
|
import org.apache.lucene.analysis.hu.HungarianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class HungarianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Hun
|
||||||
@Inject public HungarianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public HungarianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new HungarianAnalyzer(version,
|
analyzer = new HungarianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, HungarianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.id.IndonesianAnalyzer;
|
import org.apache.lucene.analysis.id.IndonesianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class IndonesianAnalyzerProvider extends AbstractIndexAnalyzerProvider<In
|
||||||
@Inject public IndonesianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public IndonesianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new IndonesianAnalyzer(version,
|
analyzer = new IndonesianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, IndonesianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.it.ItalianAnalyzer;
|
import org.apache.lucene.analysis.it.ItalianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class ItalianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Itali
|
||||||
@Inject public ItalianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public ItalianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new ItalianAnalyzer(version,
|
analyzer = new ItalianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, ItalianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.no.NorwegianAnalyzer;
|
import org.apache.lucene.analysis.no.NorwegianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class NorwegianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Nor
|
||||||
@Inject public NorwegianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public NorwegianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new NorwegianAnalyzer(version,
|
analyzer = new NorwegianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, NorwegianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.pt.PortugueseAnalyzer;
|
import org.apache.lucene.analysis.pt.PortugueseAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class PortugueseAnalyzerProvider extends AbstractIndexAnalyzerProvider<Po
|
||||||
@Inject public PortugueseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public PortugueseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new PortugueseAnalyzer(version,
|
analyzer = new PortugueseAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, PortugueseAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.ro.RomanianAnalyzer;
|
import org.apache.lucene.analysis.ro.RomanianAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class RomanianAnalyzerProvider extends AbstractIndexAnalyzerProvider<Roma
|
||||||
@Inject public RomanianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public RomanianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new RomanianAnalyzer(version,
|
analyzer = new RomanianAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, RomanianAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.sv.SwedishAnalyzer;
|
import org.apache.lucene.analysis.sv.SwedishAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class SwedishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Swedi
|
||||||
@Inject public SwedishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public SwedishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new SwedishAnalyzer(version,
|
analyzer = new SwedishAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, SwedishAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.index.analysis;
|
package org.elasticsearch.index.analysis;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.CharArraySet;
|
import org.apache.lucene.analysis.CharArraySet;
|
||||||
import org.apache.lucene.analysis.ar.ArabicAnalyzer;
|
|
||||||
import org.apache.lucene.analysis.tr.TurkishAnalyzer;
|
import org.apache.lucene.analysis.tr.TurkishAnalyzer;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
import org.elasticsearch.common.inject.assistedinject.Assisted;
|
||||||
|
@ -38,7 +37,7 @@ public class TurkishAnalyzerProvider extends AbstractIndexAnalyzerProvider<Turki
|
||||||
@Inject public TurkishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
@Inject public TurkishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) {
|
||||||
super(index, indexSettings, name, settings);
|
super(index, indexSettings, name, settings);
|
||||||
analyzer = new TurkishAnalyzer(version,
|
analyzer = new TurkishAnalyzer(version,
|
||||||
Analysis.parseStopWords(settings, ArabicAnalyzer.getDefaultStopSet()),
|
Analysis.parseStopWords(settings, TurkishAnalyzer.getDefaultStopSet()),
|
||||||
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
Analysis.parseStemExclusion(settings, CharArraySet.EMPTY_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue