Search as you type (SAYT) should be able to search the google search appliance index and not just the .txt file

56 views
Skip to first unread message

anonymousgsa

unread,
Jul 25, 2011, 12:06:35 PM7/25/11
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Initial setup of SAYT with the sample .txt file works fine. However,
if it has to be implemented for large amounts of data, is there a way
to have our code directly fetch keywords or suggestions from the
database where google search appliance (GSA) stores the indexed data.
If so, where is that database used by GSA to store all it's indexed
data? If not, how can we have our code dynamically fetch the keywords/
suggestions?

Richard Haine

unread,
Jul 25, 2011, 12:13:49 PM7/25/11
to google-search-...@googlegroups.com
You can POST a request to the GSA to get a list of query suggestions using <GSA>/suggest?<Query params>. You will then have to process the response and format the results as you want them displayed.
 
Thanks,
Richard

--
You received this message because you are subscribed to the Google Groups "Google Search Appliance/Google Mini" group.
To post to this group, send email to Google-Search-...@googlegroups.com.
To unsubscribe from this group, send email to Google-Search-Applia...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/Google-Search-Appliance-Help?hl=en.




--
Thanks,
Richard Haine
richar...@gmail.com

anonymousgsa

unread,
Jul 25, 2011, 12:23:49 PM7/25/11
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Thank you for the reply. However, could you explain it in more detail?
Also, is the PHP file good to be modified or would you suggest to use
java, jsp or something else?

On Jul 25, 12:13 pm, Richard Haine <richard.ha...@gmail.com> wrote:
> You can POST a request to the GSA to get a list of query suggestions using
> <GSA>/suggest?<Query params>. You will then have to process the response and
> format the results as you want them displayed.
>
> Thanks,
> Richard
> On 25 July 2011 17:06, anonymousgsa <peta...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > Initial setup of SAYT with the sample .txt file works fine. However,
> > if it has to be implemented for large amounts of data, is there a way
> > to have our code directly fetch keywords or suggestions from the
> > database where google search appliance (GSA) stores the indexed data.
> > If so, where is that database used by GSA to store all it's indexed
> > data? If not, how can we have our code dynamically fetch the keywords/
> > suggestions?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Search Appliance/Google Mini" group.
> > To post to this group, send email to
> > Google-Search-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > Google-Search-Applia...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/Google-Search-Appliance-Help?hl=en.
>
> --
> Thanks,
> Richard Haine
> richard.ha...@gmail.com

Dave Watts

unread,
Jul 25, 2011, 12:29:28 PM7/25/11
to google-search-...@googlegroups.com
> Thank you for the reply. However, could you explain it in more detail?

https://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#QuerySuggestionServicesuggestProtocol

> Also, is the PHP file good to be modified or would you suggest to use
> java, jsp or something else?

You can use any language you like - use whatever you're most
comfortable with. The API is just HTTP calls.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

Richard Haine

unread,
Jul 25, 2011, 12:34:14 PM7/25/11
to google-search-...@googlegroups.com
Hi,
 
We have implemented SAYT using a js file and the PHP. This is based on the sample SAYT code from Google calling the API to get the results and then combining the results from the text file and the GSA suggestions.
 

the Documentation is available:
 
and sample code is
 
 
I suspect you already have the code.
 
Richard
richar...@gmail.com

anonymousgsa

unread,
Jul 25, 2011, 1:34:13 PM7/25/11
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,

I already have the sample code. I also tried to modify the PHP code
based on the sample text file and GSA suggestions (by reading the
documentation). But I don't get any response.
It's returning me this response: { "query": <query>, "results": [] }.
I followed the documentation and passed this query in the URL:
http://hostname/suggest?q=offices&btnG=Google+Search&access=p&spell=1&client=sayt_testfrontend&format=os&max=15&filter=0&output=xml_no_dtd&proxystylesheet=sayt_testfrontend&oe=UTF-8&ie=UTF-8&ud=1&sort=date%3AD%3AL%3Ad1&entsp=a__mbke_policy&exclude_apps=1&site=default_collection

I'd really appreciate if you could help me?

Thank you.

On Jul 25, 12:34 pm, Richard Haine <richard.ha...@gmail.com> wrote:
> Hi,
>
> We have implemented SAYT using a js file and the PHP. This is based on the
> sample SAYT code from Google calling the API to get the results and then
> combining the results from the text file and the GSA suggestions.
>
> the Documentation is available:https://code.google.com/apis/searchappliance/documentation/68/xml_ref...
>
> and sample code ishttp://code.google.com/p/search-as-you-type/
>
> I suspect you already have the code.
>
> Richard
>
> richard.ha...@gmail.com

Richard Haine

unread,
Jul 25, 2011, 2:53:10 PM7/25/11
to google-search-...@googlegroups.com
I'd start by removing some of your parameters and check that you have suggestions for the sayt_testfrontend.

If you still have the default frontend, try enabling the google internal query suggestions from the search box config .

It took a couple of days to build up the suggestions we used for testing (automated performance test scripts). We were using version 6.4 of the GSA at the time so the process may have changed.

Richard

anonymousgsa

unread,
Jul 25, 2011, 3:29:43 PM7/25/11
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,

We have the internal suggestions enabled for quite sometime now.

When I passed this query
http://hostname/suggest?q=office&max=10&site=default_collection&client=sayt_testfrontend&access=p&format=rich
, this is the outcome I got: { "query":"office", "results":
[ {"name":"offices", "type":"suggest"}] }

If that is correct, then what is the next step?

Thank you once again.

On Jul 25, 2:53 pm, Richard Haine <richard.ha...@gmail.com> wrote:
> I'd start by removing some of your parameters and check that you have suggestions for the sayt_testfrontend.
>
> If you still have the default frontend, try enabling the google internal query suggestions from the search box config .
>
> It took a couple of days to build up the suggestions we used for testing (automated performance test scripts). We were using version 6.4 of the GSA at the time so the process may have changed.
>
> Richard
>
> On 25 Jul 2011, at 18:34, anonymousgsa <peta...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I already have the sample code. I also tried to modify the PHP code
> > based on the sample text file and GSA suggestions (by reading the
> > documentation). But I don't get any response.
> > It's returning me this response: { "query": <query>, "results": [] }.
> > I followed the documentation and passed this query in the URL:
> >http://hostname/suggest?q=offices&btnG=Google+Search&access=p&spell=1...

anonymousgsa

unread,
Jul 25, 2011, 4:16:26 PM7/25/11
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,

Another thing I noticed is that I don't get the results/response for
any other query other than 'office'. So what does that mean?
The other question I had is whether the response to the query is
coming from the suggestions that we've enabled?

Please let me know.

Thanks in advance.

On Jul 25, 3:29 pm, anonymousgsa <peta...@gmail.com> wrote:
> Hi,
>
> We have the internal suggestions enabled for quite sometime now.
>
> When I passed this queryhttp://hostname/suggest?q=office&max=10&site=default_collection&clien...
Reply all
Reply to author
Forward
0 new messages