2 Mar 2009 03:01
Re: Omega Script
Olly Betts <olly <at> survex.com>
2009-03-02 02:01:18 GMT
2009-03-02 02:01:18 GMT
On Sun, Mar 01, 2009 at 02:32:37AM +1030, Frank J Bruzzaniti wrote:
> Thomas Viehmann wrote:
> > Frank J Bruzzaniti wrote:
> >
> >> When I return the names of files from a search result I use $field{url}
> >> which returns \\server\docs\foo.doc
> >
> >> What should I do if I only want foo.doc to be displayed?
> >>
> > If you want to do it with the current set of commands, using $transform
> > might be a good approach. Of course, that might be more difficult if you
> > have to cater for lots of different path conventions.
$transform requires trunk currently though, but yes you could do this
with:
$transform{.*[/\\],,$field{url}}
> >> And how hard would it be to create new script index commands like
> >> $filename and $path. If extending omega script is easy/"a good idea"
> >> I'd be happy
> >> to write some documentation once I learn how.
You ask about new "script index commands" (scriptindex is used at
indexing time), but then talk about extending omega script, and use
examples starting with a "$" as OmegaScript does (OmegaScript is used at
search time).
So I'm not totally sure which you're suggesting...
(Continue reading)
RSS Feed