Page 1 of 1

Keep pages that do not have a certain meta value

Posted: Sun Nov 18, 2007 2:29 pm
by michel.weber
Hi

On a web site i would like to index only the pages that have a certain value in a meta tag

ie i want only the pages that have the following :
<meta="mytag" content="blah blah MYSTRING blah>
Can this be done with exclude by fields and REX?

What happens if the tag is not present?

Keep pages that do not have a certain meta value

Posted: Mon Nov 19, 2007 11:28 am
by mark
Sounds like you need an "include by field" feature. You may be able to fake it if the pages on your site are all html and all have some common tag like <html> or such. You could then write an exclude by field query something like this (untested):

/<html> -/>><meta\=\x22mytag\x22\x20content\=\x22=!mystring*mystring=[^\x22>]*\x22