Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:30:02+00:00 2026-06-18T09:30:02+00:00

I have been given a set of (approved) requirements and an already approved solution

  • 0

I have been given a set of (approved) requirements and an already approved solution to implement Google Custom Search into an existing website.

This website has the following:

  • Jobs

    • Category 1
    • Category 2
    • Category 3
  • Normal pages

    • Category 1
    • Category 2
    • Category 3

The requirement of the search functionality is that people can use CheckBoxes to filter results. So if the below was true:

[x] Category 1
[ ] Category 2
[x] Category 3

Then no pages would be shown from Category 2. However, there is also:

[x] Show jobs only

How am I able to implement this via Google Custom Search? I’ve read about PageMap, using <meta> tags, etc.. however I cannot understand how I am to filter results based on these.. ?

I looked here: Google custom search API – sorting / filter

However it doesn’t appear to answer my concerns. I’m still a bit lost in the documentation.

Is this sort of thing possible? Does anyone have any links to some more thorough examples?

I had a thought to try in-memory filtering.. however if Google just happens to throw back a 1 Job page in 10 results while the [x] Show jobs only checkbox is checked.. then the user will only get 1 result on the page.

I am leaning towards the XML-based result set using the Custom Search Engine.. however if that needs to change I’m open to suggestions.

Any advice appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:30:03+00:00Added an answer on June 18, 2026 at 9:30 am

    I have managed to figure this out … Only by lots of trial and error.

    To begin, an example PageMap element in the XML response:

    <PageMap>
        <DataObject type="metatags">
            <Attribute name="creationdate" value="D:20100902144455+10'00'"/>
            <Attribute name="creator" value="Adobe InDesign CS5 (7.0)"/>
            <Attribute name="moddate" value="D:20100902144510+10'00'"/>
            <Attribute name="producer" value="Adobe PDF Library 9.9"/>
        </DataObject>
    </PageMap>
    

    Google’s filtering will only match individual words separated by spaces, special characters, etc. So, if I wanted to search for a “creator” with “CS5” in it, I would use this query string:

    ?q=My+Search+Text+Here+more:pagemap:metatags-creator:CS5
                                        ^^^^^^^^ ^^^^^^^
                                          type    name
    

    The above “type” and “name” refer to the DataObject and Attribute element attribute names. The last part is the word you want to filter by.

    So now I should be able to dump the following to to a page in Category 1:

    <PageMap>
        <DataObject type="metatags">
            <Attribute name="category" value="Category1"/>
        </DataObject>
    </PageMap>
    

    Or.. for a job:

    <PageMap>
        <DataObject type="metatags">
            <Attribute name="IsJobPage" value="Yes"/>
        </DataObject>
    </PageMap>
    

    ..and use a query such as this:

    ?q=My+Search+Text+Here+more:pagemap:metatags-category:Category1,Category3
    ?q=My+Search+Text+Here+more:pagemap:metatags-IsJobPage:Yes
    

    The first example returns any pages with a meta tag name of “category” that contains the value “Category1” OR “Category3”.

    Hopefully this answer saves someone from tearing their hair out.. like I almost did.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the project that I have been given: Design and implement a set
I have been struggling with this for a while now. given a set of
I have been given the task of adding functionality to an existing IIS 6.0
n00b here (first Android project). I have been given a custom video codec that
I have been given a set of historic data that requires line charting for
I have been given the task to create a shop website that allows users
I have been given the task of writing Powershell scripts to set up a
I have been given a data set consisting of image slizes from a MRI
I have been struggling to make a set of reports that gives the sum
I have been given control of a web site in Classic ASP. What is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.