Skip to main content
November 20, 2012
Answered

How do you use docBoost in CFIndex

  • November 20, 2012
  • 1 reply
  • 1101 views

Hello,

I'm trying to use docBoost with CFIndex and whenever I use it, none of the documents get added to the index.  It doesn't throw an error but nothing gets added or updated in the collection.  Here is an example:

<cfindex

                                        query="getFiles"

                                        collection="#variables.documentCollection#"

                                        urlpath="URLPath"

                                        action="UPDATE"

                                        key="keyPath"

                                        category="categories"

                                        title="Title"

docboost="3"

                                        productID_i="SecurityProdID"

                                        restrictContractor_b="restrictContractor"

                                        release_s="version"

                                        added_dt="addedDate"

                                        updated_dt="last_revision"

                                        altTitle_t="Title"

                                        boosted_i="prefValue"

                                        type="FILE"

                                        status="searchStatus" />

However, if I leave out docBoost the documents index fine.  Anyone?

This topic has been closed for replies.
Correct answer

While you can hardcode a value in the docBoost field as listed above, pointing it to a column in a query doesn't work.  It does not throw an error but nothing is added to the collection.

1 reply

Correct answer
November 26, 2012

While you can hardcode a value in the docBoost field as listed above, pointing it to a column in a query doesn't work.  It does not throw an error but nothing is added to the collection.