



版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、配置各种字段的优化命令By China P目录配置 match 字段类型41.1具体配置步骤41.1.1.1首先在FieldProsing中添加41.1.2其次在 Properties 中增加4帮助和示例51.2配置参数搜索字段 parametric Field62.1具体配置步骤62.2.1.1首先在FieldProsing中添加6其次在 Properties 中添加7特别注意7用法和示例7配置数字字段93.1具体配置步骤93.3.1.1首先在FieldProsing中添加93.1.2其次在 Properties 中增加93.2用法和示例9配置日期数字字段114.1具体配置步骤114.4.1
2、.1首先在FieldProsing中添加114.1.2其次在 Properties 中增加114.2用法和示例11配置排序字段125.1具体配置步骤125.5.1.1首先在FieldProsing中添加135.1.2其次在 Properties 中增加135.2用法和示例131. 配置 match 字段类型应用场景:要绝对匹配,比如查询的时候只查询 从 163 科技频道的笔记本电脑信息,那么可以如何找 idol 中所有 sitename 符合 163tech 的笔记本&fieldtext=MATCH163tech:sitename&TOTALRESULTS=TRUE&predict=false
3、&maxresults=100笔记本&fieldtext=MATCH163tech:sitename&TOTALRESULTS=TRUE&predict=false&maxresults=100同样一条命令,在数据量 65652 的情况下,加之前是 2.08s,加了以后是 62.00 ms,速度了 30 倍左右。SetMatchFields在 idx 中应该有一个字段叫做#DREFIELD sitename=163tech1.1具体配置步骤修改 AutonomyIDOLServer.cfg 配置文件1.1.1 首先在FieldProsing中添加13=SetMatchFieldsSetMatc
4、hFields/ Specify fields whose entire value is frequently used as a restriction in a search and are thus/ stored for optimised matching. NB Such fields cannot be numeric or parametric as well. Property=MatchFieldsVs=*/sitename,*/category (有多个可以附加在后面)PropertyFiel1.1.2 其次在 Properties 中增加.MatchFieldsMat
5、chType=TRUEPS:配置好了,需要清掉原有数据,重新索引才能生效。1.2帮助和示例请查看FieldText=MATCHArchive,Web,docs:DIR:DIRECTORYAs DIR or DIRECTORY field must have the value Archive or Web or docs for thisto be returned as a result.FieldText=MATCHleague:DBAresult.s DB field musve the valueLeague for thisto be returned as aFieldText=M
6、ATCH0-226-10389-7:ISBNAa result.s ISBN field musve the value 0-226-10389-7 for thisto be returned asFieldText=MATCHEinstein%2C Albert:AUTHORAs AUTHOR field must have the value Einstein, Albertfor thisto bereturned as a result.2. 配置参数搜索字段parametric Field应用场景:有时候需要统计不同元数据的值,比如 idol 中的信息查询结果,来自各个部门的统计,
7、比如,抓取,要统计每个站点各有多少条。统计有某个 parametric 字段的值及其个数查找 idol 中所有包含汽车的,并且统计字段 sitename 中出现的各种字*&及其个数。count=true&sort=返回如下countGETQUERYTAGVALUESSUCS1/SITENAME22SINAHEXUN结果说明返回的内容包含汽车的内容,他的 sitename 统计如下,其中来自 sina 得 294,hexun 的表明 field 为 sitename2.1具体配置步骤修改 AutonomyIDOLServer.cfg 配置文件2.1.1 首先在FieldProsing中添加10=
8、SetParametricFieldsSetParametricFields/ Specify which fields contain parametric values to be stored for optimised parametric searching Property=ParametricFieldsPropertyFielVs=*/SITENAME,*/category2.1.2 其次在 Properties 中添加ParametricFieldsParametricType=true2.1.3 特别注意Parametric 是一个功能点,如果客户没有需要在MaxInput
9、String=64000下面增加一下语句才可以. AdvancedSearch=true,将无法实现该功能QuerySumdvanced=trueQuerySummaryIDs=trueQuerySummaryLength=10 QuerySummaryTerms=350 ParametricMaxPairsPerRegenerateParametricIndex=falseparametricrefinement=true=0清空 idol 数据,重新索引就可以了。2.2用法和示例统计查询字段统计有多少个 parametric 字段,category将返回 sitename,category
10、 等参数字段各有哪些值3. 配置数字字段应用场景: 比如要查询 idol,同时加上一些限制,比如价格范围,等于,大于等。 EQUAL, GREATER, LESS, NRANGE or NOTEQUAL例子:查询 idol 里面是笔记本的,同时限制来自 163 科技频道,并且价格大于 5000 元。笔记本&fieldtext=MATCH163tech:sitename+AND+GREATER5000:PRICE&TOTALRESULTS=TRUE&predict=false&maxresults=1003.1具体配置步骤修改 AutonomyIDOLServer.cfg 配置文件3.1.1 首
11、先在FieldProsing中添加SetNumericFields/ Specify which fields are to be stored Property=NumericFieldsemory for quick numeric operationsPropertyFielVs=*/MsgScan_Count,*/REFERENCEID,*/Msg_Level,*/price3.1.2 其次在 Properties 中增加NumericFieldsNumericType=TRUE3.2用法和示例例子,参考:FieldText=GREATER6.95:PRICE:PREIS+AND+MA
12、TCHBrown:AUTHOR:AUTORFieldText=EQUAL1234567890123:ACCOUNT:KONTOAs ACCOUNT or KONTO field must contato be returned.he number 1234567890123 for thisFieldText=EQUAL3.9,4.9,7:IDAs ID field must contahe number 3.9, 3.90, 4.9, 4.90, 7 or 7.0 for thistobe returned.4. 配置日期数字字段应用场景: 比如要查询 idol,同时加上一些限制,比如一个时
13、间范围。例子:查询 idol 里面是笔记本的间在 01/01/90,1/1/01 等。,同时限制来自 163 科技频道,并且价格大于 5000 元,上市时笔记本&fieldtext=MATCH163tech:sitename+AND+GREATER5000:PRICE+AND+RANGE01/01/90,1/1/01:DATE&TOTALRESULTS=TRUE&predict=false&maxresults=1004.1具体配置步骤修改 AutonomyIDOLServer.cfg 配置文件4.1.1 首先在FieldProsing中添加12=SetNumericDateFieldsSet
14、NumericDateFieldsProperty=NumericDatePropertyFielVs=*/MSG_IANCEDATE,*/DATE4.1.2 其次在 Properties 中增加NumericDateNumericDateType=true4.2用法和示例例子,参考:FieldText=RANGE01/01/90,1/1/01:DATEAs DATE field must contain a date betto be returned.n 01/01/1990 and 1/1/2001 for thisFieldText=RANGE01/01/02,01/01/2003:D
15、ATE:DATUMAs DATE or DATUM field must contain a date betn 01/01/2002 and01/01/2003 for thisto be returned.FieldText=RANGE-14,-7:DATEAs DATE field must contain a date 14 to 7 days before the current date for thisto be returned.FieldText=RANGE0,1:DATEAexs DATE field must contain todays or tomorrows dat
16、e (which issible, forle, if theoriginates from a different time zone or if the field contains anto be returned.expiry date) for thisFieldText=RANGE01/01/99,.:DATE:FECHAAs DATE or FECHA field can contain any date after 01/01/1999 for thisto be returned.FieldText=RANGE.,10/10/04:DATEAreturned.s DATE f
17、ield can contain any date before 10/10/2004 for thisto beFieldText=RANGE-172800s,-1:DATEAs DATE field must contain a time betn 48 and 24 hours ago.FieldText=RANGE198765e,.:DATEAs DATE field must contain a date betn 198765 seconds after the epoch andthe current time.5. 配置排序字段应用场景: 比如要查询 idol,需要按照某些特殊
18、字段排序,比如按照价格排序,或者安装字母表排序5.1具体配置步骤修改 AutonomyIDOLServer.cfg 配置文件5.1.1 首先在FieldProsing中添加14=SetSortFieldsSetSortFields/ Specify fields whose entire value is frequently used as a restriction in a search and are thus/ stored for optimised matching. NB Such fields cannot be numeric or parametric as well.
19、Property=SortFieldsPropertyFielVs=*/price,*/name5.1.2 其次在 Properties 中增加SortFieldsSortType=TRUE5.2用法和示例详细说明,请参考先按相关度排序,标题按字母排序,再按日期排序&Sort=Relevance+DRETITLE:alphabetical+Date DRETITLE 如果设置成排序字段将加快索引速度&Sort=price:numberdecreasing&Sort=price:numberincreasing说明:The display order of results is determined by the num
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 湖南省永州市祁阳市茅竹镇中心学校2024-2025学年下学期期中监测八年级下册《物理》试卷(含答案)
- 武昌工学院《摄影技术》2023-2024学年第二学期期末试卷
- 深圳技术大学《基本体操(1)》2023-2024学年第二学期期末试卷
- 莱芜市重点中学2024-2025学年高三第四次联考生物试题含解析
- 江苏省盐都区2025年初三期末热身联考生物试题含解析
- 苏州托普信息职业技术学院《三维影像设计》2023-2024学年第二学期期末试卷
- 江汉艺术职业学院《小组社会工作》2023-2024学年第二学期期末试卷
- 湖北省孝感市汉川市2025届小学六年级数学毕业检测指导卷含解析
- 重庆科技职业学院《中医诊断学(实验)》2023-2024学年第一学期期末试卷
- 江汉大学《高等土力学》2023-2024学年第二学期期末试卷
- 24春国家开放大学《信息技术与信息管理》形考任务1-4参考答案
- 2024年卫生资格(中初级)-初级药师笔试历年真题荟萃含答案
- 《中华民族共同体概论》考试复习题库(含答案)
- 操作规程:视频监控系统的维护和巡检
- 首都体育学院硕士研究生培养方案
- 《矿产地质勘查规范 花岗伟晶岩型高纯石英原料》(编制说明编写要求)
- “五型五好”班组创建活动参考总结
- 印章刻制服务投标方案(技术标)
- 海底捞门店劳动合同
- 基准地价技术报告
- 某新能源(风能)公司:控股有限公司合同管理办法(试行)
评论
0/150
提交评论