Actually there may be a bug there... From an old upgrade. template.highlight should have $text instead of $find.
See if that doesn't make a difference? Cheers, Dan On Thu, Feb 19, 2009 at 11:08 PM, The Editor <[email protected]> wrote: > I don't know what you mean by length=40 ? > > The problem with the highlight script is, it is not very smart. If you > tell it to look for "test" it will return any page with test in the > page name, title or text. And then on those pages, it tries (I think) > to highlight the word "test" even in markup like [[test.one|+]] or [if > equal {test} 5] which could cause problems in the display. Probably > you could find other examples. It's really only designed to work for > simple searches. Not really sure how to improve it... > > If you can give me a specific example of a search result you don't > like, we might try to find a way to fix it. For example, on > http://www.boltwire.com/index.php?p=solutions.search.highlight, if you > do a query on test you'll get a few null hits at the bottom. If you > look at them, I think you'll find that "test" is in the page name, but > not in the page source. We can change that behavior, but we have to > decide first what we want. > > Cheers, > Dan > > P.S. Actually, you can already reset what info is indexed, you can > change indexPlus from the default of page & title to any combination > of page, title, and data you want (in site.config). But you will need > to reindex pages to change what is already in the index. > > > On Thu, Feb 19, 2009 at 10:32 PM, Linly <[email protected]> wrote: >> >> Hi Dan, >> >> I'm testing the Highlight plugin in 2.48. >> >> http://www.boltwire.com/index.php?p=solutions.search.highlight&action... >> >> It can find the results, but it can't display them well. The code in >> "template.highlight" can not show the "length=40" words it found. All >> I got is an empty <li>. > > At the very least we should get of the bullet, eh? > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
