Highlight partial queries

Post Reply
Texis User
Posts: 74
Joined: Thu Jul 13, 2006 8:47 am

Highlight partial queries

Post by Texis User »

Hi,

Pls visit this url

http://www.thunderstone.com/texis/site/ ... mit=Submit

As per my search query, results should have highlighted "thunder" in words
- thunder
-thunderstone.

But if u see the results, it highlights thunder only in words thunder and not thunderstone.

Can u pls help!

Thanks!
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Highlight partial queries

Post by John »

The software should not generally highlight partial matches. You would need to search for "thunder*" to find and highlight thunderstone.
John Turnbull
Thunderstone Software
Texis User
Posts: 74
Joined: Thu Jul 13, 2006 8:47 am

Highlight partial queries

Post by Texis User »

I am searching for "thunder*" but I don't see it highlighted.

Should I use rex the way I use it before created indexes.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Highlight partial queries

Post by John »

John Turnbull
Thunderstone Software
Texis User
Posts: 74
Joined: Thu Jul 13, 2006 8:47 am

Highlight partial queries

Post by Texis User »

U see my search query is thunder and not thunder*.
But I get ur drift.
What I need to do is add * to the query and then run it to fmtcp.

Let me try that and get back to you.

Thanks!
Texis User
Posts: 74
Joined: Thu Jul 13, 2006 8:47 am

Highlight partial queries

Post by Texis User »

Hi
THis is what I did

<$expr=">>[\space+]=">
<$replace = "\* ">
<sandr $expr $replace $txtpplsrch>
<$search_str= $ret "*"><sum "%s" $search_str><$search_str=$ret>


<fmtcp QUERY "%mbH" $search_str>

included <mm></mm> to enable highlight.

Now as per my understanding
if I enter search query as "Mess Boar"
then for the text Message Board it should highlight both words but it highlights only Board.

Pls help!

Thanks
Texis User
Posts: 74
Joined: Thu Jul 13, 2006 8:47 am

Highlight partial queries

Post by Texis User »

Hey I found an alternative and it works cool.
Also the suggestion given in one of the forum to change colour also works ...

Thank you!
Post Reply