NpsSolr用于自定义全文索引,包括独立的Solr Core和字段集合。目前支持最新的Solr 1.3版本。
注意,,NpsSolr不受限于站点配置中“为该站点建立全文索引库 ”选项的限制,但nps.conf文件中的SOLR_URL必须配置
|
NpsSolr(String solrcore,int mode) 构造函数。mode=0表示添加/更新,mode=1表示删除 |
|
| void |
AddField(String fieldName,String value) 添加字段。字段应符合指定solrcore中的定义。 |
| void |
Index() 提交Solr索引 |