reset password
Author Message
rahulajit
Posts: 15
Posted 19:20 Jun 03, 2010 |

Hey. I was wondering if anybody had a problem with the query string not highlighted in the full text search result for homework 6. If you had that problem n you solved it, can you throw some light on what could be the mistake I'm making? My ts_headline part looks pretty close as the one in post.hbm.xml file, yet can't figure out the mistake I am making. Following is a snippet of my code:

ts_headline( title, query) as title,
ts_headline( content, query, 'MaxWords=200' ) as content

Thanks,

Rahul.

cysun
Posts: 2935
Posted 19:48 Jun 03, 2010 |

It may has something to do with the values of the title/content/query.

You can also do a "View Source" and see if the query terms are highlighted with "<b>".

rahulajit
Posts: 15
Posted 20:07 Jun 03, 2010 |

I found the mistake and corrected it. I had set title and content as headline in my select query but still went on to unnecessarily select title and content again in the same query. Thank you Professor.

JHautzinger
Posts: 14
Posted 03:19 Jun 05, 2010 |

I have this same problem.  Nothing is being displayed highlighted. 


I am not selecting anything twice and if I run the query directly on the DB it shows the correct results.