001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.search;
016    
017    import com.liferay.portal.kernel.search.IndexSearcher;
018    import com.liferay.portal.kernel.search.IndexWriter;
019    import com.liferay.portal.kernel.search.SearchEngine;
020    
021    /**
022     * @author Bruno Farache
023     */
024    public class SearchEngineImpl implements SearchEngine {
025    
026            public static final String NAME = "DEFAULT";
027    
028            public String getName() {
029                    return NAME;
030            }
031    
032            public IndexSearcher getSearcher() {
033                    return _searcher;
034            }
035    
036            public IndexWriter getWriter() {
037                    return _writer;
038            }
039    
040            public void setSearcher(IndexSearcher searcher) {
041                    _searcher = searcher;
042            }
043    
044            public void setWriter(IndexWriter writer) {
045                    _writer = writer;
046            }
047    
048            private IndexSearcher _searcher;
049            private IndexWriter _writer;
050    
051    }