...M wp_posts AS p LEFT JOIN wp_users AS u ON p.post_author=u.ID LEFT JOIN wp_term_relationships AS tr ON p.ID=tr.object_id LEFT JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id=tt.term_taxonomy_id LEFT JOIN wp_terms AS t ON t.term_id=tt.term_id WHERE p.post_status='publish' AND (p.post_type='post' OR p...
...题 public function getTokens($value, XSDocument $doc = null) { $terms = array(); for ($i = 0; $i < mb_strlen($value,"utf-8"); $i += $this->arg) { $terms[] = mb_substr($value, $i, $this->arg,"utf-8"); } return $terms; } hightman可以改成这个,那中文一元切分...
...nking] => 0 [255] => ) [_terms:XSDocument:private] => [_texts:XSDocument:private] => [_charset:XSDocument:private] => UTF-8 [_meta:XSDocument:private] => Array ( [docid] => 950...
..._content AS post_content_full,u.user_login AS author,t.name AS category,tt.term_taxonomy_id AS category_id FROM wp_posts AS p LEFT JOIN wp_users AS u ON p.post_author=u.ID LEFT JOIN wp_term_relationships AS tr ON p.ID=tr.object_id LEFT JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id=tt.term_taxonomy...
...); $docs = $search->search(); $terms = $search->getExpandedQuery($tag); 然后对 $docs 和 terms 取交集就可以了, 只不过执行了两次查询,又掉消耗效率。
...,搜索还是正常的,但是搜索提示不显示了。似乎是那个term返回的数值为空。 例如 http://s-68668.gotocdn.com/mesh/so/suggest.php?term=o,返回为[] 按理说应该返回["of","on","or","org","one","our","out","open","over","only"]之类的呀。 请知道的朋友帮...
import[13695] ERROR xapian exception (ERROR:Term too long (> 245) 如何解决呢
index=self 是对的。 你的cat_id是数字吗? getAddTerms 打印出看下。 如果有index,有term。查不出应该是不可能的.
好吧,我考虑加一个。。。 最新 1.4.9-dev 版新增接口: XSSearch::getSynonyms(string $term); 也可以用 util/Quest.php --list-synonyms=??? 来列出 ??? 的全部同义词