Top Navigation Search highlighting

This forum is for all Flare issues not related to any of the other categories.

Top Navigation Search highlighting

Postby DaleFranks on Thu Nov 12, 2015 4:41 pm

In the topics linked from search results, how do I get highlighting to work? I cannot figure this out. The link has the "highlight=Xxxxx" url parameter, I have set all 11 highlight styles in the main stylesheet.

The highlighting section of the doc says "In HTML5 Top Navigation, the search hits are transparent by default" then helpfully never mentions how to change this default behavior.

I'm a little frustrated, right now.
DaleFranks
Jr. Propeller Head
 
Posts: 4
Joined: Fri Jun 12, 2015 12:56 pm

Re: Top Navigation Search highlighting

Postby Dave Lee on Fri Nov 13, 2015 1:13 am

All you should have to do is set styles for span.SearchHighlight1, span.SearchHighlight2.
As described here: http://webhelp.madcapsoftware.com/flare ... h_Hits.htm

Have you checked that you added these styles to the right medium in the stylesheet, e.g. they're not in print by accident?
Dave Lee
Master Propellus Maximus
 
Posts: 5884
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Top Navigation Search highlighting

Postby kerimucci on Thu Nov 26, 2020 3:45 pm

I am using the Top Nav skin to produce HTML5 output. I have added a span.SearchHighlight class to my CSS, where the font color is set to purple to make matched keywords stand out in the abstracts (as opposed to a background color). However, my output is still showing the keywords in black text. I have tried setting this both from the Stylesheet Editor and from the Internal Text Editor, and in the preview of the Stylesheet Editor, the text is purple.

Is there another setting I need to enable to get this working? I also can't get partial word searching to work, so maybe this is related.
kerimucci
Propeller Head
 
Posts: 49
Joined: Thu Nov 02, 2017 3:38 am

Re: Top Navigation Search highlighting

Postby Nita Beck on Fri Nov 27, 2020 6:12 am

I’m pretty sure that the solution Dave pointed to is still the correct solution. You need to define the colors for span.SearchHighlightN where N is 1, 2, 3, etc. for the first search word, second search word, third search word, etc. I don’t think it’s sufficient to define span.SearchHighlight.

For Flare 2020 r2, this is covered here: https://help.madcapsoftware.com/flare2020r2/Content/Flare/Search/Search-Highlighting/Customizing-Highlight-Color-Search-Hits.htm
Nita
Image
Content Strategist / Information Architect / Flare Consultant: http://beck-communications.com
Manager, Rochester Flare User Group: http://www.facebook.com/RochesterFlareUserGroup
Nita Beck
Senior Propellus Maximus
 
Posts: 3382
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Top Navigation Search highlighting

Postby kerimucci on Fri Nov 27, 2020 6:48 am

Thanks, I defined span.SearchHighlight, and 1-10, and am getting the same result unfortunately.
kerimucci
Propeller Head
 
Posts: 49
Joined: Thu Nov 02, 2017 3:38 am

Re: Top Navigation Search highlighting

Postby kerimucci on Fri Nov 27, 2020 7:59 am

Ah, OK. Maybe I am looking for something else. I now see that my properties are being applied once I click a result and go to a topic page. This is good, but I was looking for something that will highlight the search term within the search results page. Right now the matched words just display bold, using the font color of the abstract. I'd like to vary just the color of the search term within the abstract on the search results page. Is this possible?
kerimucci
Propeller Head
 
Posts: 49
Joined: Thu Nov 02, 2017 3:38 am

Re: Top Navigation Search highlighting

Postby Dave Lee on Mon Nov 30, 2020 3:53 am

No, Flare doesn't support that.
Flare also just applies a bold tag on the search results page, so even if you tried some hacky CSS, you can't style the search terms separately.
Dave Lee
Master Propellus Maximus
 
Posts: 5884
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Top Navigation Search highlighting

Postby Psider on Mon Nov 30, 2020 7:58 pm

I think it might have changed, unless Madcap is doing something funky with their own help?

This search has a <span class="search-result-highlighr"> on the bolded terms.
https://help.madcapsoftware.com/flare20 ... q=variable
Psider
Propellus Maximus
 
Posts: 666
Joined: Wed Jul 06, 2011 1:32 am

Re: Top Navigation Search highlighting

Postby Dave Lee on Tue Dec 01, 2020 1:20 am

Psider wrote:I think it might have changed, unless Madcap is doing something funky with their own help?

This search has a <span class="search-result-highlighr"> on the bolded terms.
https://help.madcapsoftware.com/flare20 ... q=variable


It's different for MadCap's help because they don't use their own MadCap Search engine - they use Elasticsearch.

The same limitation applies to Elasticsearch too though; all the terms on the results page use the same span class, so you can't style them differently.
Dave Lee
Master Propellus Maximus
 
Posts: 5884
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Top Navigation Search highlighting

Postby Psider on Tue Dec 01, 2020 1:28 am

Oh right. I read it as they just wanted to change it, not that they wanted different colours.

(When they first introduced the rainbow, I have to admit I turned it off immediately :p )
Psider
Propellus Maximus
 
Posts: 666
Joined: Wed Jul 06, 2011 1:32 am

Re: Top Navigation Search highlighting

Postby kerimucci on Tue Dec 01, 2020 2:07 am

Thanks for confirming, guys.
kerimucci
Propeller Head
 
Posts: 49
Joined: Thu Nov 02, 2017 3:38 am


Return to Flare's General Discussion

Who is online

Users browsing this forum: No registered users and 17 guests