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;
016    
017    /**
018     * @author Bruno Farache
019     * @author Michael C. Han
020     */
021    public interface SearchEngine {
022    
023            public String backup(long companyId, String backupName)
024                    throws SearchException;
025    
026            /**
027             * @deprecated As of 7.0.0, replaced by {@link BooleanClauseFactoryUtil}
028             */
029            @Deprecated
030            public BooleanClauseFactory getBooleanClauseFactory();
031    
032            /**
033             * @deprecated As of 7.0.0
034             */
035            @Deprecated
036            public BooleanQueryFactory getBooleanQueryFactory();
037    
038            public IndexSearcher getIndexSearcher();
039    
040            public IndexWriter getIndexWriter();
041    
042            /**
043             * @deprecated As of 7.0.0
044             */
045            @Deprecated
046            public TermQueryFactory getTermQueryFactory();
047    
048            /**
049             * @deprecated As of 7.0.0
050             */
051            @Deprecated
052            public TermRangeQueryFactory getTermRangeQueryFactory();
053    
054            public String getVendor();
055    
056            public void initialize(long companyId);
057    
058            public void removeBackup(long companyId, String backupName)
059                    throws SearchException;
060    
061            public void removeCompany(long companyId);
062    
063            public void restore(long companyId, String backupName)
064                    throws SearchException;
065    
066    }