2011-03-14 64 views
2

ColdFusion支持Solr索引的Custom1到Custom4字段。使用Verity,你可以使用cf_custom1 ='blah'等來對這些進行過濾。如何在ColdFusion中搜索Solr中的自定義字段?

但是,看起來這些cf_custom1/4搜索是不可能的,並且在針對solr集合使用時會被忽略。

搜索「fuel」的集合返回與搜索(cf_custom2 = fuel)相同的結果,或者甚至(cf_custom20 = fuel)。

我的問題是:如何使用cfsearch在Solr集合上通過custom4字段搜索custom1?

回答

6

答案是使用custom2:[your value]。

謝謝Scott Stroz!