tracker issue : CF-3824890

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

CFSEARCH tag ignores contextBytes parameter

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Mike Lerley / Mike Lerley (Mike Lerley)

Created: 09/15/2014

Components: Text Search, Solr

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Linux Ubuntu 10.10

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem Description:

The CFSEARCH tag ignores the contextBytes parameter and always sends a value of 100. It should pass through the value of the parameter.

Steps to Reproduce:

Execute a cfsearch:

<CFSEARCH NAME="Search1"
	ContextHighlightBegin="<b class='rutilus'>"
	ContextHighlightEnd="</b>"
	ContextPassages="3"
	ContextBytes="300"
	status="info"
	COLLECTION="site_forum"
	CRITERIA="geek"
	startrow="1">

Actual Result:

Checking the solr logs shows this call generated by cfsearch:

/solr/site_forum/select?hl=true&hl.fragsize=100&hl.snippets=3&hl.simple.pre=%3Cb+class%3D%27rutilus%27%3E&hl.simple.post=%3C%2Fb%3E&q=geek&fl=*%2Cscore&rows=64169&qt=standard&start=0&wt=xml&version=2.2

Note the hl.fragsize parameter which should be 300, not 100.

Anecdotal internet evidence suggests this bug has been around for a couple of versions at least.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3824890

External Customer Info:
External Company:  
External Customer Name: mlerley
External Customer Email:  
External Test Config: My Hardware and Environment details:



Server Details

Server Product	ColdFusion

Version	ColdFusion 10,287689

Edition	Standard  

Operating System	UNIX  

OS Version	3.13.0-35-generic  

Update Level	/opt/coldfusion10/cfusion/lib/updates/chf10000013.jar  

Adobe Driver Version	4.1 (Build 0001)

Attachments:

Comments:

The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5 and ColdFusion 10 Update 16
Comment by CFwatson U.
10906 | February 20, 2015 09:29:14 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
10907 | November 23, 2015 01:07:46 AM GMT