restrict search to meta tags

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

restrict search to meta tags

Post by Thunderstone »



Is there any way to restrict the searching so it only looks at meta tags
and not the text within the document? Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jessica Emerson
jessica@ag.arizona.edu
COA Network Administrator
http://ag.arizona.edu/agnet/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

restrict search to meta tags

Post by Thunderstone »




You can create an index on the Meta field and change the sql in the
search script to search just that field.

Use something like this to create the index:
texis -s -d .../webinator/db "create metamorph index xhmeta on html(Meta)"
See http://www.thunderstone.com/texisman/node137.html
And http://www.thunderstone.com/gw2man/node15.html

Then change the SQL statements in the search script to search "Meta" instead
of "Title\Meta\Body" .

You'll need to issue the same "create metamorph index ..." command as above
after each walk as gw only updates the default indices.

You might want to include the document title too. In that case change
"Meta" to "Title\Meta" in the above description.


m.natz
Posts: 10
Joined: Thu Jun 07, 2001 10:04 am

restrict search to meta tags

Post by m.natz »

Is there any way to restrict the searching so it only looks at meta tags with the 700$ webinator license? This above doesn't work.

Thanks.
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

restrict search to meta tags

Post by mark »

Yes. The above should work. In what way does it not?
Post Reply