i have 2 sites crawled: mgmgrand.com and luxor.com. i'm working on
puttting the search box on each of the site, however, when i do a
search for luxor, i only want results from the luxor site and not the
mgmgrand.com site. how do i do that?
does that mean i have to create 2 collection for each url?
please someone help me understand this.
thanks,
amy
You also have the option of adding "inurl" or "allinurl" to the search
string. More info can be found in section 2.3 Query Terms of the
Google Search Appliance Help center documentation.
Define collection 1 as: MGMGrand
Use the rule: contains:mgmgrand.com
Define collection 2 as: Luxor
Use the rule: contains:luxor.com
(Haven't tested those rules, but they should be right... there are a
number of ways to define them.)
Then, when you submit a search, use the parameter
"&site=collectionName" to only get results from the collection.
ex. search.luxor.com/search?
q=searchterm&site=Luxor&client=frontEndName
Now that I got the collections to work, I have to add the search box
onto the actual website.
And then just use the parameter that you stated below:
"&site=collectionName" to only get results from the collection.
ex. search.luxor.com/search?
q=searchterm&site=Luxor&client=frontEndName
Now, once they hit submit to get the results, how do I go about having
the results display in the website?
I already changed the xslt through the stylesheet editor and I assume
all I have to do is create some sort of web services so that my site
can pull the information from google?
This is all new to me and i've never dealt with webservices or
anything so that's why i just want to make sure so i know how to go
about doing things.
1)
Create a front-end. When you submit the search request to the google
appliance, use the "&client=frontEndName" parameter as in the example
in previous posts. The Google Appliance will serve the results page -
by default in a google format, but you can add xsl to format the
results as html (sounds like you already did).
2)
In lieu of or in addition to a front-end, you can use the following
parameter: &output=xml_no_dtd
That will return the search results in xml so you can format and serve
the results page yourself through whatever means you like (HTML,
Flash, whatever).
No web services are necessary, though you could use them if you
like... the interface with the google appliances are all URL-based and
return XML or whatever format your XSLT spits out.
1) the client parameter defines which set of rules to use when
processing the query. A frontend can be set up to have specific
keymatch, synonyms, oneboxes and etc..
The proxystylesheet parameter defines which xslt to use when parsing
the results. note, there is a 1 to 1 relationship between stylesheet
and front end. you could have something like
client=myfrontend1&proxystylesheet=myfrontend2
2) the output=xml_no_dtd tells the GSA to return the XML with or with
out the dtd definition. There are specific ramifications of this, but
if you simply want XML back you should just remove the proxystylesheet
parameter.
They are all described in great detail here:
http://code.google.com/apis/searchappliance/documentation/46/xml_reference.html
M
Wanna learn how to do social bookmarking and social networking with
your mini? Check out our webinar...
http://www.mcplusa.com/connect/connectbeam.html
> > about doing things.- Hide quoted text -
>
> - Show quoted text -