tracker issue : CF-4205226

select a category, or use search below
(searches all categories and all time range)
Title:

CFINDEX can't make up its mind which ACTION attribute it wants me to use

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/BugVerified

Reporter/Name(from Bugbase): Jack D. / ()

Created: 09/18/2019

Components: Text Search, Solr Integration

Versions: 2016

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: 2016.0.03.301771 / 316121

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 1

Problem Description:  Using either "fullimport" or "full-import", I'm told that I have to use the other one.

Steps to Reproduce:
Using this:   <cfindex collection="myCollection" action="fullimport" autocommit="yes" key="qid" body="q,a,uid" type="custom" query="myquery" />
Errors as:  The value of the FULLIMPORT attribute is invalid.  Valid values are: UPDATE, DELETE, PURGE, REFRESH, FULL-IMPORT, DELTA-IMPORT, STATUS, ABORT.

Using this:   <cfindex collection="myCollection" action="full-import" autocommit="yes" key="qid" body="q,a,uid" type="custom" query="myquery" />
Errors as:  The value of the FULLIMPORT attribute is invalid.  Valid values are: UPDATE, DELETE, PURGE, REFRESH, FULLIMPORT, DELTAIMPORT, STATUS, ABORT.

Actual Result:  See "Steps to reproduce"

Expected Result:  For it to work and index my query for the collection.

Any Workarounds:  Nope!

Attachments:

Comments:

This is definitely a bug. In the ColdFusion documentation, fullimport is not an attribute of cfindex.
Comment by A. B.
31346 | September 19, 2019 05:02:53 AM GMT
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-i/cfindex.html
Comment by Jack D.
31348 | September 19, 2019 03:41:07 PM GMT
It's just poor wording in the documentation and error message. What it should say is that FullImport is only a valid when using type="dih" (Data Import Handler).
Comment by N T.
31351 | September 20, 2019 02:58:17 AM GMT
Thanks NT. Poor wording in the documentation and poor wording in the error message constitute 2 bugs!
Comment by A. B.
31353 | September 20, 2019 07:44:09 AM GMT
I guess we can close this since the docs don't mention it.
Comment by Jack D.
31481 | September 30, 2019 03:55:58 PM GMT
The documentation does mention it. Albeit poorly. It should be improved to make it clear that some actions ONLY apply when using a specific cfindex "type" It should say something like: For type="dih", only these actions are valid: abort, deltaimport, fullimport, status, ... more... For type="custom" only these actions are valid: "refresh", ... more... etc...
Comment by N T.
31594 | October 14, 2019 05:46:06 PM GMT
the documentation is correct. The exception msg is incorrect. cfindex accepts "fullimport" and "deltaimport" for the sake of simplicity, even though solr uses those keywords with hyphens. The fix will be incorporated with the next release of CF.
Comment by Piyush K.
31758 | October 31, 2019 01:44:05 PM GMT