Searching part of an index.

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Searching part of an index.

Post by Thunderstone »



I am trying to write a vortex script that enables me to search part of my
large index. I have followed the tech support and have a script that accepts
one parameter e.g.

.. where Url matches $mypath.

However my problem is that on our webserver there are two referencing
conventions. The full path www.shef.ac.uk/foo/bar/foo etc and shortcuts
www.shef/ac.uk/~foo/ . So I am trying to pass in two paramters but I can't
seem to get the query logic right so that it tries to match to either of the
two Urls.
eg ...where
(Url matches $mypath1 OR
Url matches $mypath2) AND
Title/Meta/Body likep $query



Dr. Chris Barran
Special Projects
Corporate Information and Computing Services
University of Sheffield

mailto:c.d.barran@shef.ac.uk
Tel (0114) 2221193






User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Searching part of an index.

Post by Thunderstone »



That's mostly right. Except "Title/Meta/Body" should be "Title\Meta\Body" .
I assume that you've set $mypath1 and $mypath2 to some prefix with
a "%" wildcard at the end.

Whenever a script doesn't give what you expect, view the source of the
output page and look for error messages embedded inside of html comments.




Post Reply