im currently putting together a search function for my site using cfsearch. We are using CF 10 so i believe it runs on Solr.
In the cfindex tag, i can see that we can add some custom fields, but due to the large amount of information our search is to return, im wondering how would we go about making additional fields be available as part of the return dataset ?
currently we have custom1 - custom4 being populated with a number of fields from a database query, but we still require additional attributes to be available to the user or within the template when the search is run.
Is there any way to add more than the 4 custom fields to a cfindex ?
thanks in advance
Adobe made improvements with the Solr implementation in ColdFusion 10 so that it no longer has the custom field limitation with
cfindex
that previous versions of ColdFusion had. Namely - custom1, custom2, custom3, and custom4. As usual, the online documentation for the tag was simply carried over from the previous version so it is a bit confusing.See this document for more information - Solr enhancements in ColdFusion 10.
From that documentation under the Storing your custom data section: