Yes, you could set up the text where the search term could be highlighted by concatening main fields, TVs and/or joined fields.
e.g: &showExtract=`3:tv1,tv2,pagetitle,longtitle` set up a text with tv1 + tv2 + pagetitle + longtitle
The fields should be defined as displayed fields ( see docFields, includeTVs parameters).
Unfortunately, by setting up a demo, I discovered an issue that you should fix first.
You could see
this new demo here.
To fix this issue, open the core/components/advsearch/model/advsearch/advsearchresults.class.php file and replace the line 677:
$this->tvFields = array_diff(array_merge($this->tvWhereFields, $this->tvFields), $this->tvWhereFields);
by:
$this->tvFields = array_diff(array_merge($this->tvWhereFields, $this->tvFields), $this->tvFields);
I will open a defect on
Github with this issue and with this correction. See "No Extracts Shown from TV Results" issue and commit 4e37138
[ed. note: coroico last edited this post 12 years, 6 months ago.]