use of org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer in project kie-wb-common by kiegroup.
the class CommandLineSetup method getAnalyzers.
@SuppressWarnings("serial")
Map<String, Analyzer> getAnalyzers() {
return new HashMap<String, Analyzer>() {
{
put(LibraryFileNameIndexTerm.TERM, new FilenameAnalyzer());
put(LibraryModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(ModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(PackageNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
put(LuceneIndex.CUSTOM_FIELD_FILENAME, new FilenameAnalyzer());
// all of the (resource, part, shared, etc) references and resource or part terms
// are taken care of via the ImpactAnalysisAnalyzerWrapper
}
};
}
use of org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer in project kie-wb-common by kiegroup.
the class DefaultLuceneConfigProducer method getAnalyzers.
private Map<String, Analyzer> getAnalyzers() {
return new HashMap<String, Analyzer>() {
{
put(ModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(ModuleNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
put(PackageNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
}
};
}
use of org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer in project kie-wb-common by kiegroup.
the class BaseLibraryIndexingTest method getAnalyzers.
private Map<String, Analyzer> getAnalyzers() {
return new HashMap<String, Analyzer>() {
{
put(LibraryFileNameIndexTerm.TERM, new FilenameAnalyzer());
put(LibraryModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(ModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(PackageNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
put(LuceneIndex.CUSTOM_FIELD_FILENAME, new FilenameAnalyzer());
}
};
}
use of org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer in project kie-wb-common by kiegroup.
the class DefaultLuceneConfigProducer method getAnalyzers.
private Map<String, Analyzer> getAnalyzers() {
return new HashMap<String, Analyzer>() {
{
put(ModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(ModuleNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
put(PackageNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
}
};
}
use of org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer in project kie-wb-common by kiegroup.
the class DefaultLuceneConfigProducer method getAnalyzers.
Map<String, Analyzer> getAnalyzers() {
return new HashMap<String, Analyzer>() {
{
put(LibraryFileNameIndexTerm.TERM, new FilenameAnalyzer());
put(LibraryModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(ModuleRootPathIndexTerm.TERM, new FilenameAnalyzer());
put(PackageNameIndexTerm.TERM, new LowerCaseOnlyAnalyzer());
put(LuceneIndex.CUSTOM_FIELD_FILENAME, new FilenameAnalyzer());
// all of the (resource, part, shared, etc) references and resource or part terms
// are taken care of via the ImpactAnalysisAnalyzerWrapper
}
};
}
Aggregations