tracker issue : CF-4185364

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

[ANeff] ER for: cfcollection contexthighlightscope="summary|content"

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 08/30/2016

Components: Text Search, Solr Integration

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Update2 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Win All

Vote Count: 0

1) By default, Solr highlights searched terms available in the summary content.
2) CF Admin has a "Enable Term Highlighting" feature that updates solrconfig.xml and schema.xml to enable term highlighting for the entire document (side-note: currently this only affects "standard", so 4185354 is filed to support "dismax").

Issue 1: The default setting is useless (except for the index size being smaller). It only highlights Solr's generated summary, which is basically nonsense.

Issue 2: We should not have to use CF Admin to change this setting.

Suggestion: New cfcollection attribute: contexthighlightscope="summary|content". If contexthighlightscope="content", then term highlighting for the entire document is enabled.

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

Watson Bug ID:	4185364

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



Aaron. WRT issue#1, The content of the context field in the query returned by cfsearch contains the highlighted keywords. The length if the data returned in that field can be controlled with contextBytes parameter. Woudn't using that and not the summary field, solve your purpose? We'll check to see if issue #2 can be addressed.
Comment by Piyush K.
1920 | October 09, 2016 11:54:47 AM GMT
Hi Piyush, WRT issue #1: That issue can be ignored. There _is_ an issue, but I'll log another ticket(s). After editing schema.xml and solrconfig.xml, I did cfindex(action="refresh but the xml mods didn't take effect. I see I need to do cfindex(action="purge" and then cfindex(action="refresh". The cfindex doc is misleading for the "refresh" action - it implies that "refresh" does a purge+update. Either it's a doc bug, or it's a behavior bug. Dunno.. but I'll log a ticket. Regardless of decision, the "Term highlighting" doc needs updated to clarify exactly how to effect a "reindex" so that the xml mods take effect. WRT issue #2: This needs done b/c shared hosting customers don't have the access to edit schema.xml and solrconfig.xml. Thanks!, -Aaron
Comment by Aaron N.
28947 | May 29, 2018 11:28:12 PM GMT
Hi Adobe/Piyush, I'd like to close this ticket in favor of CF-4202643. In summary: Term Highlighting of the Summary (which is always just the 1st 100 chars of content) is absolutely pointless, so there's no need to even support that. The default hl.fl should simply default to 'content title' - as suggested in CF-4202643. Thanks!, -Aaron
Comment by Aaron N.
28953 | May 30, 2018 08:47:58 AM GMT
closing as a duplicate of ER # 4202643
Comment by Piyush K.
29599 | August 22, 2018 08:36:03 AM GMT