001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.search.suggest;
016    
017    /**
018     * @author Michael C. Han
019     */
020    public class CompletionSuggester extends BaseSuggester {
021    
022            public CompletionSuggester(String name, String field, String value) {
023                    super(name, field, value);
024            }
025    
026            @Override
027            public <T> T accept(SuggesterVisitor<T> suggesterVisitor) {
028                    return suggesterVisitor.visit(this);
029            }
030    
031            public String getAnalyzer() {
032                    return _analyzer;
033            }
034    
035            public Integer getShardSize() {
036                    return _shardSize;
037            }
038    
039            public Integer getSize() {
040                    return _size;
041            }
042    
043            public void setAnalyzer(String analyzer) {
044                    _analyzer = analyzer;
045            }
046    
047            public void setShardSize(Integer shardSize) {
048                    _shardSize = shardSize;
049            }
050    
051            public void setSize(Integer size) {
052                    _size = size;
053            }
054    
055            private String _analyzer;
056            private Integer _shardSize;
057            private Integer _size;
058    
059    }