Package org.compass.core

Examples of org.compass.core.CompassTermFreqsBuilder


            super();
            this.termFreqsArgs = termFreqsArgs;
        }

        public Object doInCompass(CompassSession session) throws CompassException {
            CompassTermFreqsBuilder builder = session.termFreqsBuilder(termFreqsArgs.getProperties());
            if (termFreqsArgs.getNormalizeRange() != null) {
                builder.normalize(termFreqsArgs.getNormalizeRange().getFromInt(), termFreqsArgs.getNormalizeRange().getToInt());
            }
            if (termFreqsArgs.getSize() != null) {
                builder.setSize(termFreqsArgs.getSize().intValue());
            }
            if (termFreqsArgs.getSort() != null) {
                builder.setSort(termFreqsArgs.getSort());
            }
            if (termFreqsArgs.getAliases() != null) {
                builder.setAliases(termFreqsArgs.getAliases());
            }
            return builder.toTermFreqs();
        }
View Full Code Here

TOP

Related Classes of org.compass.core.CompassTermFreqsBuilder

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.