001    /**
002     * Copyright (c) 2000-2013 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;
016    
017    import java.util.Collection;
018    
019    /**
020     * @author Marcellus Tavares
021     * @author Brian Wing Shun Chan
022     */
023    public class DummyIndexWriter implements IndexWriter {
024    
025            @Override
026            public void addDocument(SearchContext searchContext, Document document) {
027            }
028    
029            @Override
030            public void addDocuments(
031                    SearchContext searchContext, Collection<Document> documents) {
032            }
033    
034            @Override
035            public void clearQuerySuggestionDictionaryIndexes(
036                    SearchContext searchContext) {
037            }
038    
039            @Override
040            public void clearSpellCheckerDictionaryIndexes(
041                    SearchContext searchContext) {
042            }
043    
044            @Override
045            public void deleteDocument(SearchContext searchContext, String uid) {
046            }
047    
048            @Override
049            public void deleteDocuments(
050                    SearchContext searchContext, Collection<String> uids) {
051            }
052    
053            @Override
054            public void deletePortletDocuments(
055                    SearchContext searchContext, String portletId) {
056            }
057    
058            @Override
059            public void indexKeyword(
060                    SearchContext searchContext, float weight, String keywordType) {
061            }
062    
063            @Override
064            public void indexQuerySuggestionDictionaries(SearchContext searchContext) {
065            }
066    
067            @Override
068            public void indexQuerySuggestionDictionary(SearchContext searchContext) {
069            }
070    
071            @Override
072            public void indexSpellCheckerDictionaries(SearchContext searchContext) {
073            }
074    
075            @Override
076            public void indexSpellCheckerDictionary(SearchContext searchContext) {
077            }
078    
079            @Override
080            public void updateDocument(SearchContext searchContext, Document document) {
081            }
082    
083            @Override
084            public void updateDocuments(
085                    SearchContext searchContext, Collection<Document> documents) {
086            }
087    
088    }