[Xapian-discuss] omega: $field{sample} clarification
shudde
shudde at gmail.com
Mon Jan 29 00:21:10 GMT 2007
James Aylett wrote On 01/28/2007 05:35 PM:
> A better solution, since you're using omindex, *may* be to use the
> htdig noindex markers that we support:
>
> <!--htdig_noindex-->
> ...
> <!--/htdig_noindex-->
>
> to enclose your chrome and navigation. However that makes them
> non-searchable, rather than merely not displayed. (Although with some
> work you could do something similar in the display section using
> omegascript; alternatively, we could make some more markers that only
> affect summary generation.)
>
> <http://www.htdig.org/attrs.html#noindex_start>
>
I've just implemented your suggestion, works like a charm and avoids the
nested script. I realised after reading your reply that my first method
would result in a match for every page if someone searched for a keyword
used in the navigation bar, the noindex method solves that nicely.
Thanks.
>
> Much of omegascript works as a series of chained filters. It's broadly
> similar in some respects to the way that list operators work in Python
> (or LISP/Scheme). Actual list syntax (as in how to treat a string as a
> list of things) is a bit like TCL.
>
> If you can't get the hang of it, and alternative would be to use the
> XML template and re-process that for your own needs.
>
> J
>
More information about the Xapian-discuss
mailing list