Skip to main content.
home | support | download

Back to List Archive

Re: Sorting issues

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Thu Jan 03 2002 - 23:04:11 GMT
At 10:08 AM 01/03/02 -0800, Zambra - Michael wrote:
>ExtractPath seccion regex !^.*/htdocs/([^/]+)/.*$!$1!
>PropertyNames seccion
>
>Original String:
>'/opt2/zambra/httpd/htdocs/revista/i/temas/week7/index.html'
>replace /opt2/zambra/httpd/htdocs/revista/i/temas/week7/index.html =~
>m[^.*/htdocs/([^/]+)/.*$][$1]: Matched
>  Result String: 'revista'

Did you recompile with the new patch?  Or get a new version from CVS (or
from swish-daily today?).

> cat c
ExtractPath seccion regex !^.*/htdocs/([^/]+)/.*$!$1!
PropertyNames seccion

> ./swish-e -c c -i /usr/local/apache/htdocs/manual/index.html -T regex
properties -v0 

Indexing Data Source: "File-System"

Original String: '/usr/local/apache/htdocs/manual/index.html'
replace /usr/local/apache/htdocs/manual/index.html =~
m[^.*/htdocs/([^/]+)/.*$][$1]: Matched
  Result String: 'manual'
          swishdocpath: 6 ( 42) S:
"/usr/local/apache/htdocs/manual/index.html"
            swishtitle: 7 ( 24) S: "Apache 1.3 documentation"
          swishdocsize: 8 (  4) N: "0000000002401"
     swishlastmodified: 9 (  4) D: "2000-02-23 15:11:39"
               seccion:11 (  6) S: "manual"
Indexing done!

You can see how it extracted out "manual" and -T properties shows that
"manual" is stored as a property "seccion".

Sure enough:

> ./swish-e -w not dkdk -p seccion -H0
1000 /usr/local/apache/htdocs/manual/index.html "Apache 1.3 documentation"
2401 "manual"


-- 
Bill Moseley
mailto:moseley@hank.org
Received on Thu Jan 3 23:04:20 2002