Search in sources :

Example 1 with FilenameAnalyzer

use of org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer 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
        }
    };
}
Also used : HashMap(java.util.HashMap) LowerCaseOnlyAnalyzer(org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer) FilenameAnalyzer(org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)

Example 2 with FilenameAnalyzer

use of org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer 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());
        }
    };
}
Also used : HashMap(java.util.HashMap) LowerCaseOnlyAnalyzer(org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer) FilenameAnalyzer(org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)

Example 3 with FilenameAnalyzer

use of org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer 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());
        }
    };
}
Also used : HashMap(java.util.HashMap) LowerCaseOnlyAnalyzer(org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer) FilenameAnalyzer(org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)

Example 4 with FilenameAnalyzer

use of org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer 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());
        }
    };
}
Also used : HashMap(java.util.HashMap) LowerCaseOnlyAnalyzer(org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer) FilenameAnalyzer(org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)

Example 5 with FilenameAnalyzer

use of org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer 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
        }
    };
}
Also used : HashMap(java.util.HashMap) LowerCaseOnlyAnalyzer(org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer) FilenameAnalyzer(org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)

Aggregations

HashMap (java.util.HashMap)5 LowerCaseOnlyAnalyzer (org.kie.workbench.common.services.refactoring.backend.server.indexing.LowerCaseOnlyAnalyzer)5 FilenameAnalyzer (org.uberfire.ext.metadata.backend.lucene.analyzer.FilenameAnalyzer)5