Google site search - How to only get autocompletions from a specifed label - google-search-api

I am using the paid version of Google Site Search. We have various labels used to limit the search to certain parts of our site.
The autocompletions seem to be generated across all labels. I want to only have suggestions from the sites specified by a certain label.
I have tried setting the defaultToRefinement attribute on the element. I have also tried to use "more:" in the q parameter when calling http://clients1.google.com/complete/search.
But it doesn't work.
Any suggestions?

Related

How can I use Algolia on Shopify to show accurate search results when I input more than one word in the search box?

I am using algolia app for my shopify project. When I tried to input two words in the search box, the autocomplete results are really accurate. The problem is that when I hit enter key to go to instant search page, the results are not accurate anymore. Is there any settings to help me fix this problem?
This is the screenshot on my problem:
If you already enabled Instant Search on your shop and still have the default Shopify search results page, it's most likely the provided CSS Selector is incorrect.
The Instant Search widget provided by our Plugin needs a CSS Selector in order to render the results in the search results page.
If you wonder how to find the proper CSS Selector value, please read this post that explains how to do it.

How to search category and fill site parameters automatically

I have seen some sites where you search (in Google) for a particular item category and when you click the link found in Google it automatically goes to the site clicked with the search criteria filled in displaying the categorised products.
Hypothetical Example
Go into Google type in Sony TV , click to search.
Results are displayed.
Clicking one of the links takes me to a website which shows all the Sony TV models beginning with AA.
Looking at the search options on the page some fields have been automatically filled in (in other words if you did this search manually the site would prompt you to enter some search criteria) - Not sure if this is relevant but thought to mention.
How is this done? Do i need to setup something in our Google account to get the same results?
It's fairly simple. You pass parameters in your URLs that identify the product, and then you just read the URL parameters when pre-populating the search form on the page. When building your site / sitemap / internal & external links you use those page URLs and Google will naturally pick them up.
In your example, you search for Sony TV. One of the results may be
example.com/index.php?product=sony-tv
The website has the variable sony-tv, which it gets from the URL and pre-populates on the search form.
The important part to note is that the site will have built its URL structure in this method typically and the page you're presented with just happens to look like the site dynamically searched based on your query (it hasn't).

Add web chart part to page

I already created a list in which I added a content type. The list is for Research. There are different kinds of Research, so all of them will be placed in this list. Every Research type has its own chart. When the user is adding values in the form (list), the chart must be updated. I tried to add the web chart, but when I tried to connect it to the web part of the Research type, it says "Your page does not contain any Web Parts that are capable of providing data to your chart Web Part". How can I achieve my goal?
use highcharts . which is basically works with jQuery

How do i get google cse to just search images

Google's Custom search engine is really good. Though im having problems with it. Whenever i search on it, it has 2 tabs. (Web and Image). How do i get it to have the image tab to be the default tab when something is searched.
Thanks
You can use "defaultToImageSearch" param in your search box configuration:
It is explained here:
https://developers.google.com/custom-search/docs/element#supported_attributes

Extend Page Property with custom controls in Sharepoint

Sharepoint is quite limited when it comes to multi-Lookups because it saves that information in strings. So I changed the Page-Property
"Elements (MultiLookup-> elementIds" on the propertyPage
to an inserted List "PageElements":
"
(SingleLookup)pageId , (singleLookup) elementId"
Because this is quite hard to maintain for my content admins I want that they can enter that information in the page properties like before instead of adding lines into "PageElements"
Therefore I want to add a control that handles that.
I do not need a solution for the task how to achieve that specific function, but a general hint how to add any custom control into a Page property.
I starting point link would be very nice. I just doen't seem to find the right words to feed google with my topic.
Solved this by using a custom field type with that logic. Basicly Described here: http://avinashkt.blogspot.de/2011/07/creating-custom-field-in-sharepoint.html