001    /**
002     * Copyright (c) 2000-2010 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.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    }