Meta tags in header files

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

Meta tags in header files

Post by Thunderstone »



Hi,

On our sites we use ssi for the header and footer to our pages. When
indexing a particular site (in this case
http://www.anglia.ac.uk/new-cits) using meta=title,keywords the index
doesn't seem to be picking up on the keywords, and is still using the
body of the text as the main source to search. Is this because of the
ssi and if so is there a way around?
Cheers

Tim
----------------------
Timothy Campbell
t.p.s.campbell@anglia.ac.uk



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

Meta tags in header files

Post by Thunderstone »



SSI has nothing to do with it. The webserver does all of that without
the client (gw or web browser) knowing about it.

The search always goes against Title and Meta and Body .

Check the database to see what meta data it got.
gw -s "select Url,Meta from html"

Titles should be in the normal <title></title> tags, not in meta.
That's where webinator gets document titles.

If you want to search just Meta, you would have to create
a metamorph inverted index on the Meta field.
See http://www.thunderstone.com/texisman/node120.html
Something like:
texis -s -d YOURDBPATH "create metamorph inverted index xmmeta on html(Meta)"
And adjust your search script to search "Meta" instead of "Title\Meta\Body".
You will also need to reissue that create statement after walking new
pages with gw, as gw won't know about your custom index.




Post Reply