[Xapian-discuss] problem with empty field in omegascript 1.0.7
Hylke Witjens
hylke at tweakers.net
Tue Oct 21 15:21:03 BST 2008
Hi list,
I'm currently busy trying to get our article database in omega for which
I use the following omegascript:
example="$highlight{$htmlstrip{$if{$field{lead},$field{text},
$field{lead}}},$terms,<span class="highlight">}"
My scriptindex script looks like this:
leadtekst : unhtml index=XL weight=2 index field=lead
text : unhtml index truncate=500 field=text
What I'm trying is: if lead is empty, I want to see an excerpt of the
field text because the lead isn't always filled but text is. But for
some reason I only get example filled when I have a lead.
So I must be doing something wrong, but me and my college Arjen van der
Meijden can't seem to find what, maybe you can help us?
Thank!
Greetings,
Hylke Witjens
Tweakers.net
More information about the Xapian-discuss
mailing list