Files

73 lines
2.8 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
/**
* Relevanssi
*
* /relevanssi.php
*
* @package Relevanssi
* @author Mikko Saari
* @license https://wordpress.org/about/gpl/ GNU General Public License
* @see https://www.relevanssi.com/
*
* @wordpress-plugin
* Plugin Name: Relevanssi
* Plugin URI: https://www.relevanssi.com/
* Description: This plugin replaces WordPress search with a relevance-sorting search.
* Version: 4.1.3
* Author: Mikko Saari
* Author URI: http://www.mikkosaari.fi/
* Text Domain: relevanssi
*/
/**
* Copyright 2019 Mikko Saari (email: mikko@mikkosaari.fi)
* This file is part of Relevanssi, a search plugin for WordPress.
*
* Relevanssi 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.
*
* Relevanssi 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 Relevanssi. If not, see <http://www.gnu.org/licenses/>.
*/
define( 'RELEVANSSI_PREMIUM', false );
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'relevanssi_action_links' );
global $relevanssi_variables;
global $wpdb;
$relevanssi_variables['relevanssi_table'] = $wpdb->prefix . 'relevanssi';
$relevanssi_variables['stopword_table'] = $wpdb->prefix . 'relevanssi_stopwords';
$relevanssi_variables['log_table'] = $wpdb->prefix . 'relevanssi_log';
$relevanssi_variables['content_boost_default'] = 1;
$relevanssi_variables['comment_boost_default'] = 0.75;
$relevanssi_variables['title_boost_default'] = 5;
$relevanssi_variables['comment_boost_default'] = 0.75;
$relevanssi_variables['post_type_weight_defaults']['post_tag'] = 0.75;
$relevanssi_variables['post_type_weight_defaults']['category'] = 0.75;
$relevanssi_variables['post_type_index_defaults'] = array( 'post', 'page' );
$relevanssi_variables['database_version'] = 5;
$relevanssi_variables['file'] = __FILE__;
$relevanssi_variables['plugin_dir'] = plugin_dir_path( __FILE__ );
require_once 'lib/install.php';
require_once 'lib/init.php';
require_once 'lib/interface.php';
require_once 'lib/indexing.php';
require_once 'lib/log.php';
require_once 'lib/sorting.php';
require_once 'lib/stopwords.php';
require_once 'lib/search.php';
require_once 'lib/excerpts-highlights.php';
require_once 'lib/shortcodes.php';
require_once 'lib/common.php';
require_once 'lib/admin-ajax.php';