Page 1 of 1
Highlight partial queries
Posted: Wed Oct 04, 2006 9:48 am
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!
Highlight partial queries
Posted: Wed Oct 04, 2006 10:49 am
by John
The software should not generally highlight partial matches. You would need to search for "thunder*" to find and highlight thunderstone.
Highlight partial queries
Posted: Wed Oct 04, 2006 11:22 am
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.
Highlight partial queries
Posted: Wed Oct 04, 2006 4:03 pm
by John
Not quite sure why thunder* doesn't highlight for you, it does for me at:
http://www.thunderstone.com/texis/site/ ... nder*&cq=3
Highlight partial queries
Posted: Thu Oct 05, 2006 2:25 am
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!
Highlight partial queries
Posted: Thu Oct 05, 2006 8:53 am
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
Highlight partial queries
Posted: Thu Oct 05, 2006 10:28 am
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!