Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ptz0n

    (@ptz0n)

    Thx & good idea!

    Please provide idéas and/or examples for how this interface should look like.

    Thread Starter saeednajafi22

    (@saeednajafi22)

    This is a sample similar to WordPress SEO plugin, XML Sitemap section.

    Exclude post types or taxonomies
    Please check the appropriate box below if there’s a post type or taxonomy that you do NOT want to include in your search results:

    Posts (Check Box)
    Pages (Check Box)
    Categories (Check Box)
    Tags (Check Box)
    Homepage (Check Box)

    Plugin Author ptz0n

    (@ptz0n)

    Oh, you want it as a admin setting, not as a “advanced search” setting facing the end user?

    Thread Starter saeednajafi22

    (@saeednajafi22)

    Yes,Exactly …

    Plugin Author ptz0n

    (@ptz0n)

    The problem is that the Google CSE API returns max 8 results per page.

    Let’s say that you want to exclude categories and tags. Google returns the first page with 8 results. Four (4) of them are categories or tags. This will result in only four (4) results to be shown to the end user in that search result list/page.

    Fetching more results from Google to “fill up” the search result list will be really slow due to more external calls to the API and matching each results to your conditions.

    This should instead be done at Google’s end, using PageMaps. Using custom tags for each page type on your site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Options to limit type of results’ is closed to new replies.