This project is read-only.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestGSA
public partial class Form1 : Form
public Form1()

private void button1_Click(object sender, EventArgs e)

GSALib.GSA.Query q = new GSALib.GSA.Query();

q.setSiteCollections(new string[] { "default_collection" });






GSALib.GSA.QueryTerm term = new GSALib.GSA.QueryTerm("rio de janeiro");


GSALib.GSA.ClientAccess ca = new GSALib.GSA.ClientAccess();

GSALib.GSA.Response res = ca.getGSAResponse(q, null);

catch (GSALib.Exceptions.GSANeedNetworkCredentailsException ex)

Last edited Nov 5, 2007 at 12:47 AM by mbcizmar, version 1


Shobhitgupta012 Sep 1, 2014 at 6:33 AM 
i'm getting this exception
in line
"GSALib.GSA.ClientAccess ca = new GSALib.GSA.ClientAccess();"
Can u help me with this

girishsoni Feb 24, 2012 at 11:30 AM 
Hello All,

I want to implement narrow your search in my search page. can anybody suggest me how we can do that? it will be great if someone can share sample code.

Thanks In advance

zzeeshann Nov 4, 2009 at 9:21 PM 
I get this error in ClientAccess.cs class while running this code in winforms

Invalid URI: The format of the URI could not be determined

ojemuyiwa May 15, 2008 at 12:47 PM 
Thanks! I already figured out how to implement this and return results using an ascx control its fantastic and works a treat! A huge thank you to the developers and every one involved in this project.



kentrob May 15, 2008 at 9:49 AM 
Re docs: I found that the original documentation for the Java API tells you most of what you need to know.

ojemuyiwa Mar 5, 2008 at 12:30 PM 
hiya, silly of me to create new discussion when this already exists. Is there any chance of obtaining some documentation? I would like to ideally integrate this solution via dll in a web user control. This will be integrated into a dotnet website. I would like to be able to obtain the search results to display in grid, repeater or templated control? Is this possible?