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.portlet.wiki.engines.mediawiki;
016    
017    import java.util.List;
018    
019    import org.jamwiki.SearchEngine;
020    import org.jamwiki.model.SearchResultEntry;
021    import org.jamwiki.model.Topic;
022    
023    /**
024     * @author Jonathan Potter
025     */
026    public class LiferaySearchEngine implements SearchEngine {
027    
028            @Override
029            public void addToIndex(Topic arg0) {
030            }
031    
032            public void addToIndex(Topic topic, List<String> links) {
033            }
034    
035            @Override
036            public void commit(String arg0) {
037            }
038    
039            @Override
040            public void deleteFromIndex(Topic topic) {
041            }
042    
043            public List<SearchResultEntry> findLinkedTo(
044                    String virtualWiki, String topicName) {
045    
046                    return null;
047            }
048    
049            @Override
050            public List<SearchResultEntry> findResults(
051                    String virtualWiki, String text) {
052    
053                    return null;
054            }
055    
056            @Override
057            public void refreshIndex() {
058            }
059    
060            @Override
061            public void setAutoCommit(boolean autoCommit) {
062            }
063    
064            @Override
065            public void shutdown() {
066            }
067    
068            @Override
069            public void updateInIndex(Topic topic) {
070            }
071    
072            public void updateInIndex(Topic topic, List<String> links) {
073            }
074    
075    }