Package com.gentics.cr.lucene.analysis

Examples of com.gentics.cr.lucene.analysis.ReverseAnalyzer


          //ADD REVERSE ANALYZERS
          if (reverseAttributes != null && reverseAttributes.contains(fieldname)) {
            addedReverseAttributes.add(fieldname);

            ReverseAnalyzer reverseAnalyzer = new ReverseAnalyzer(analyzerInstance);
            analyzerWrapper.addAnalyzer(fieldname + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer);

            configuredAnalyzerMap.put(fieldname + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer.getClass()
                .getCanonicalName());
          }
        }
      }
      //ADD ALL NON CONFIGURED REVERSE ANALYZERS
      if (reverseAttributes != null && reverseAttributes.size() > 0) {
        for (String att : reverseAttributes) {
          if (!addedReverseAttributes.contains(att)) {
            ReverseAnalyzer reverseAnalyzer = new ReverseAnalyzer(null);
            analyzerWrapper.addAnalyzer(att + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer);
            configuredAnalyzerMap.put(att + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer.getClass()
                .getCanonicalName());
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.gentics.cr.lucene.analysis.ReverseAnalyzer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.