First, I have been using Search Element V1 code because the standard V2 code is giving me a Javascript error ('google' is undefined) on IE. That is not what I need help with, but I wanted to say that in case it affects the rest of this....
I just changed my nickname to "a bit dumb" because that is how I am feeling at the moment. What I am trying to do seems very basic, but I cannot seem to get it working. I want a CSE for my home page, which just contains a list of links to user-written articles. I only want the words in the article titles and bodies to be indexed. The problem is that other stuff from the article pages is showing up as the title in the search results (and might also be getting indexed, although I have not seen that yet).
I have tried to filter portions of the page out using "nosnippet" as a <meta> tag and <div> tag, but cannot seem to get that to work as a toggle (i.e. once I turn off indexing for a page, from that point down the rest of the page goes unindexed). I have also tried identifying the title with <title> or with.... <PageMap><DataObject type="document"><Attribute name="title"> .... but that does not seem to make any difference.
BTW, I am rendering all pages in HTML that is generated by PHP, MySQL, and Javascript. If you need additional info, please advise.
Any tips would be greatly appreciated!
Thanks in advance. |