build_search_tokens


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
public string[] build_search_tokens (string search)

Splits up a string into an array of tokens that are suitable for searching.

This includes stripping whitespaces, casefolding the terms and removing greylist words.

This function is usually called automatically when needed, you will only need to run it explicitly when you need to check which search tokens the pool will actually use internally for a given phrase.

Parameters:

this

An instance of Pool.

search

the (user-provided) search phrase.

Returns:

(array zero-terminated=1): Valid tokens to search for, or null for error