• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SphinxClient::buildKeywords()

    (PECL sphinx >= 0.1.0)

    Extract keywords from query

    说明

    publicSphinxClient::buildKeywords(string $query,string $index,bool $hits): array

    Extracts keywords from$queryusing tokenizer settings for the given$index, optionally with per-keyword occurrence statistics.

    参数

    $query

    A query to extract keywords from.

    $index

    An index to get tokenizing settings and keyword occurrence statistics from.

    $hits

    A boolean flag to enable/disable keyword statistics generation.

    返回值

    Returns an array of associative arrays with per-keyword information.