get_keyword_from_option()

Description

Retrieves the keyword that will be indexed for a given field option.

This function splits the provided option into keywords and applies stemming if enabled.

Parameters

ColumnTypeDefaultDescription
$option string The field option to process.

Return

string The keyword to be indexed.

Location

include/resource_functions.php lines 4881 to 4892

Definition

 
function get_keyword_from_option($option)
{
    
# For the given field option, return the keyword that will be indexed.
    
$keywords split_keywords("," $option);

    global 
$stemming;
    if (
$stemming && function_exists('GetStem')) {
        
$keywords[1] = GetStem($keywords[1]);
    }

    return 
$keywords[1];
}

This article was last updated 12th June 2025 21:35 Europe/London time based on the source file dated 5th June 2025 10:55 Europe/London time.