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.dummy;
016    
017    import com.liferay.portal.kernel.search.Document;
018    import com.liferay.portal.kernel.search.IndexWriter;
019    import com.liferay.portal.kernel.search.SearchContext;
020    
021    import java.util.Collection;
022    
023    /**
024     * @author Marcellus Tavares
025     * @author Brian Wing Shun Chan
026     */
027    public class DummyIndexWriter implements IndexWriter {
028    
029            @Override
030            public void addDocument(SearchContext searchContext, Document document) {
031            }
032    
033            @Override
034            public void addDocuments(
035                    SearchContext searchContext, Collection<Document> documents) {
036            }
037    
038            @Override
039            public void clearQuerySuggestionDictionaryIndexes(
040                    SearchContext searchContext) {
041            }
042    
043            @Override
044            public void clearSpellCheckerDictionaryIndexes(
045                    SearchContext searchContext) {
046            }
047    
048            @Override
049            public void commit(SearchContext searchContext) {
050            }
051    
052            @Override
053            public void deleteDocument(SearchContext searchContext, String uid) {
054            }
055    
056            @Override
057            public void deleteDocuments(
058                    SearchContext searchContext, Collection<String> uids) {
059            }
060    
061            @Override
062            public void deleteEntityDocuments(
063                    SearchContext searchContext, String className) {
064            }
065    
066            @Override
067            public void indexKeyword(
068                    SearchContext searchContext, float weight, String keywordType) {
069            }
070    
071            @Override
072            public void indexQuerySuggestionDictionaries(SearchContext searchContext) {
073            }
074    
075            @Override
076            public void indexQuerySuggestionDictionary(SearchContext searchContext) {
077            }
078    
079            @Override
080            public void indexSpellCheckerDictionaries(SearchContext searchContext) {
081            }
082    
083            @Override
084            public void indexSpellCheckerDictionary(SearchContext searchContext) {
085            }
086    
087            @Override
088            public void partiallyUpdateDocument(
089                    SearchContext searchContext, Document document) {
090            }
091    
092            @Override
093            public void partiallyUpdateDocuments(
094                    SearchContext searchContext, Collection<Document> documents) {
095            }
096    
097            @Override
098            public void updateDocument(SearchContext searchContext, Document document) {
099            }
100    
101            @Override
102            public void updateDocuments(
103                    SearchContext searchContext, Collection<Document> documents) {
104            }
105    
106    }