/*
 * This file is part of ***  M y C o R e  ***
 * See http://www.mycore.de/ for details.
 *
 * MyCoRe is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MyCoRe is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.mycore.solr;

import org.mycore.common.config.MCRConfiguration2;

/**
 * @author Thomas Scheffler (yagee)
 *
 */
public class MCRSolrConstants {

    public static final String SOLR_CONFIG_PREFIX = "MCR.Solr.";

    // public static final String SOLR_SERVER_URL;

    public static final String DEFAULT_SOLR_SERVER_URL = MCRConfiguration2
        .getStringOrThrow(SOLR_CONFIG_PREFIX + "ServerURL");

    public static final String SOLR_CORE_PREFIX = SOLR_CONFIG_PREFIX + "Core.";

    public static final String SOLR_CORE_NAME_SUFFIX = ".Name";

    public static final String SOLR_CORE_SERVER_SUFFIX = ".ServerURL";

    public static final String SOLR_QUERY_XML_PROTOCOL_VERSION = MCRConfiguration2
        .getStringOrThrow(SOLR_CONFIG_PREFIX + "XMLProtocolVersion");

    public static final String SOLR_QUERY_PATH = MCRConfiguration2.getStringOrThrow(SOLR_CONFIG_PREFIX + "SelectPath");

    public static final String SOLR_EXTRACT_PATH = MCRConfiguration2
        .getStringOrThrow(SOLR_CONFIG_PREFIX + "ExtractPath");

    public static final String SOLR_UPDATE_PATH = MCRConfiguration2.getStringOrThrow(SOLR_CONFIG_PREFIX + "UpdatePath");

    public static final String SOLR_JOIN_PATTERN = "{!join from=returnId to=id}";

    public static final String MAIN_CORE_TYPE = "main";
}
