Hi,
I have a question about the ExtractPath regexp option in the config file for
swish-e (I'm using version 2.4.3).
As I can ready from the manual pages and see from my logfiles multiple calls
to ExtractPath on the same metaname will do successive matching on the
string. I there a way I, that can avoid this or is there some other way to
do it? Here is an example of what I want.
Consider the url scheme (I'm using swish in http mode)
http://www.domain.com/Section1/Subsection1/modulexx/index.html
http://www.domain.com/Section1/Subsection2/modulexx/index.html
http://www.domain.com/Section2/Subsection3/modulexx/index.html
http://www.domain.com/Section2/Subsection4/modulexx/index.html
What I want is to be able to restrict search to either of the subsections
and to either of the sections (including all its subsections) using the same
metaname. I have used the following statements in my configfile
MetaNames subsect section
ExtractPath subsec regex !^.*/Subsection1/([^/]+)/.*$!$1!
ExtractPath subsec regex !^.*/Subsection2/([^/]+)/.*$!$1!
ExtractPath section regex !http://[^/]+/(Section1)/.*$!$1!
ExtractPath section regex !http://[^/]+/(Section2)/.*$!$1!
ExtractPathDefault subsect other
but this uses 2 different metanames.
How would you recommend me doing it using only one metaname.
Thanks in advance.
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Apr 11 16:18:02 2007