...LL default '', `authorid` mediumint(8) unsigned NOT NULL default '0', `subject` varchar(80) NOT NULL default '', `dateline` int(10) unsigned NOT NULL default '0', `message` mediumtext NOT NULL, `useip` varchar(15) NOT NULL default '', `invisible` tinyint(1) NOT NULL default '0', `anony...
...fterDelete` 中进行索引同步。 ```php $data = array('pid' => 1234, 'subject' => '标题', 'message' => '内容'); Yii::app()->search->add($data); // 添加文档 Yii::app()->search->update($data); // 更新文档 Yii::app()->search->del('1234'); // 删除文档 ``` 使用检索功能时,...
...')->getQuery(); // 开启同义词搜索,并带有字段效果,假设 subject 是项目的第二个字段,输出: // Xapian::Query(((B搜索:(pos=1) SYNONYM B检索:(pos=89)) AND B世界:(pos=2))) $search->setAutoSynonyms()->setQuery('subject:搜索世界')->getQuery(); // 关闭同义词...
...rver.index = 8383 ;server.search = 8384 [pid] type = id [subject] type = title [message] type = body [dateline] type = numeric [author] index = both [authorid] [tid] index = self tokenizer = full [fid] index = self token...