Coldfusion 如何在<;中使用custom1、custom2、custom3、custom4;cfsearch>;w/索尔?
Coldfusion 如何在<;中使用custom1、custom2、custom3、custom4;cfsearch>;w/索尔?,coldfusion,solr,coldfusion-9,cfsearch,Coldfusion,Solr,Coldfusion 9,Cfsearch,的custom1、custom2、custom3、custom4属性是否适用于Solr?文件上说它们只供Verity MATCHES运营商使用。如何在中将customX与Solr一起使用 谢谢是的,他们喜欢。以下是一个例子: 建立收藏 字符串是列名。例如,“关键字”是查询“qIndex”中的有效列 搜索收藏 <!--- Populate the remaining attributes of the cfsearch tag ---> <cfif !stru
的custom1、custom2、custom3、custom4属性是否适用于Solr?文件上说它们只供Verity MATCHES运营商使用。如何在
中将customX与Solr一起使用
谢谢是的,他们喜欢。以下是一个例子: 建立收藏 字符串是列名。例如,“关键字”是查询“qIndex”中的有效列
搜索收藏
<!--- Populate the remaining attributes of the cfsearch tag --->
<cfif !structKeyExists(arguments, 'searchArgs')>
<cfset arguments.searchArgs = {
collection = arguments.collectionName
,criteria = "#arguments.term#"
,contextPassages = "1"
,contextBytes = "1024"
,suggestions = "always"
,status = "searchStatus" } />
</cfif>
<!--- Force the name of the result as its referenced only internally --->
<cfset arguments.searchArgs.name = 'qSearchResults' />
<!--- Try to search our collection using Solr --->
<cfsearch attributecollection="#arguments.searchArgs#" />
是的,他们有。以下是一个例子: 建立收藏 字符串是列名。例如,“关键字”是查询“qIndex”中的有效列
搜索收藏
<!--- Populate the remaining attributes of the cfsearch tag --->
<cfif !structKeyExists(arguments, 'searchArgs')>
<cfset arguments.searchArgs = {
collection = arguments.collectionName
,criteria = "#arguments.term#"
,contextPassages = "1"
,contextBytes = "1024"
,suggestions = "always"
,status = "searchStatus" } />
</cfif>
<!--- Force the name of the result as its referenced only internally --->
<cfset arguments.searchArgs.name = 'qSearchResults' />
<!--- Try to search our collection using Solr --->
<cfsearch attributecollection="#arguments.searchArgs#" />
custom1:NNNNN是我一直在寻找的,但是谢谢你的回答!对不起,我误解了。为了将来的参考,这里有一个直接链接到文档,其中列出了语法:custom1:NNNNN是我想要的,但是这个答案是thx!对不起,我误解了。为了便于将来参考,这里有一个指向文档的直接链接,其中概述了语法: