Google Search Appliance - Saint
Transcription
Google Search Appliance - Saint
Meta Search integration toolkit You require internet connection to access referenced documentation in this document 1- Request 2- Results Pagination 3- Restrict the search to one or more sites 4- Google Analytics 1- Request The search request is a standard HTTP GET command. http://r2d2.saintgobain.com/search?q=test&site=Global_Corporate&client=Profile_Corporate&out put=xml The main parameters are: q: query terms site: view to be used client: frontend to be used output: format of the results (most of the times, set to “xml”) All parameters are described in this document. 2- Results The Appliance returns the results in XML format. Each result is contained in a tag. You can find an example below: <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?> <!DOCTYPE GSP (View Source for full doctype...)> - <GSP VER="3.2"> <TM>0.033622</TM> <Q>mortier</Q> <PARAM name="q" value="mortier" original_value="mortier" /> <PARAM name="site" value="Global_Corporate" original_value="Global_Corporate" /> <PARAM name="client" value="Profile_Corporate" original_value="Profile_Corporate" /> <PARAM name="output" value="xml" original_value="xml" /> - - - - - - <PARAM name="ie" value="UTF-8" original_value="UTF-8" /> <PARAM name="ulang" value="fr" original_value="fr" /> <PARAM name="ip" value="10.139.36.22" original_value="10.139.36.22" /> <PARAM name="access" value="p" original_value="p" /> <PARAM name="sort" value="date:D:L:d1" original_value="date:D:L:d1" /> <PARAM name="entqr" value="3" original_value="3" /> <PARAM name="entqrm" value="0" original_value="0" /> <PARAM name="wc" value="200" original_value="200" /> <PARAM name="wc_mc" value="1" original_value="1" /> <RES SN="1" EN="10"> <M>75</M> <FI /> <WXT /> <NB> <NU>/search?q=mortier&site=Global_Corporate&lr=&ie=UTF8&output=xml&client=Profile_Corporate&access=p&sort=date:D:L:d1&start=1 0&sa=N</NU> </NB> <R N="1" L="1" MIME="text/html"> <U>http://www.saint-gobain.com/fr/activites/produits-pour-laconstruction/glossaire</U> <UE>http://www.saint-gobain.com/fr/activites/produits-pour-laconstruction/glossaire</UE> <T>Saint-Gobain | Glossaire</T> <RK>9</RK> <ENT_SOURCE>T4-D7GRSK5NM6NL7</ENT_SOURCE> <FS NAME="date" VALUE="2014-07-18" /> <S><b>...</b> Glossaire. Produits pour la Construction. Mortiers Industriels. <b>Mortier</b><br> industriel : mélange dosé et mélangé en usine. Il peut <b>...</b></S> <LANG>fr</LANG> <HAS> <L TAG="link:" /> <C SZ="17k" CID="xJbvsjHosCMJ" ENC="UTF-8" TAG="cache:" /> </HAS> </R> <R N="2" L="1" MIME="text/html"> <U>http://www.sgadfors.com/fr/Applications/ConstructionProductsHabitat/Renfortsols/Applicati onsnonbeton</U> <UE>http://www.sgadfors.com/fr/Applications/ConstructionProductsHabitat/Renfortsols/Applicati onsnonbeton</UE> <T>Applications non béton - SAINT-GOBAIN ADFORS</T> <RK>8</RK> <ENT_SOURCE>T4-D7GRSK5NM6NL7</ENT_SOURCE> <FS NAME="date" VALUE="" /> <S><b>...</b> RENFORT DES SOLS A BASE DE <b>MORTIER</b>, ENDUIT…(SANS BÉTON)<br> SAINT-GOBAIN ADFORS propose une large gamme de produits <b>...</b></S> <LANG>fr</LANG> <HAS> <L TAG="link:" /> <C SZ="9k" CID="nwAUpEqKB6QJ" ENC="UTF-8" TAG="cache:" /> - - - - </HAS> </R> <R N="3" L="1" MIME="text/html"> <U>http://www.sgadfors.com/fr/Applications/IndustrialFabrics/Plaquesmurales/Panneauxdemou sseisolante</U> <UE>http://www.sgadfors.com/fr/Applications/IndustrialFabrics/Plaquesmurales/Panneauxdemou sseisolante</UE> <T>Panneaux de mousse isolante - SAINT-GOBAIN ADFORS</T> <RK>8</RK> <ENT_SOURCE>T4-D7GRSK5NM6NL7</ENT_SOURCE> <FS NAME="date" VALUE="" /> <S><b>...</b> La grille de verre ou la grille turbinée ADFORS est appliquée entre la couche<br> de <b>mortier</b> inférieure (panneaux de mousse et <b>mortier</b>) et la couche <b>...</b></S> <LANG>fr</LANG> <HAS> <L TAG="link:" /> <C SZ="30k" CID="Ilk_0prYzrwJ" ENC="UTF-8" TAG="cache:" /> </HAS> </R> <R N="4" MIME="application/pdf" L="1"> <U>http://www.placo.fr/var/placo/storage/files/documentation/F01.001a.pdf</ U> <UE>http://www.placo.fr/var/placo/storage/files/documentation/F01.001a.pdf< /UE> <T>Les solutions d'isolation des sols et des planchers</T> <RK>8</RK> <CRAWLDATE>29 juil 2014</CRAWLDATE> <ENT_SOURCE>T4-D7GRSK5NM6NL7</ENT_SOURCE> <FS NAME="date" VALUE="2011-08-26" /> <S><b>...</b> Câble chauffant reposant sur Maxisol®, Maxissimo® ou Stisodall® Ultra<br> recouvert par une chape en <b>mortier</b> ou une dalle en béton destinée à <b>...</b></S> <LANG>fr</LANG> <HAS> <L TAG="link:" /> <C SZ="129k" CID="cA4tGzOeGo8J" ENC="UTF-8" TAG="cache:" /> </HAS> </R> You can customize the returned results by processing the returned XML form Tags are described in details in this document. Pagination The maximum number of results returned by the GSA is 1000. You can decrease the number of returned results using the "num" parameter. The "start" parameter allows you to specify what the first returned result will be. num = 500: returns the first 500 results num = 500&start = 500: returns the next 500 results 3- Restrict the search to one or more sites To search on a single site, you must add the following parameter to the query: as_sitesearch. The sample query below will return only results from the “isover.fr” site: q=exemple&as_sitesearch=www.isover.fr To search all sites except “isover.fr”, you must use the as_dt parameter that allows you to exclude a certain site from search: q=exemple&as_sitesearch=www.isover.fr&as_dt=e 4- Google Analytics You don’t have to modify the Google Analytics code already in place on the pages of your website. However, you must ensure that site search is enabled for your website. To check, go to Web PropertyViewSettings. If this is not already done, enable the site search and add the parameters you want to report (e.g. "q" parameter contains the search terms). You can find a detailed procedure here. You can find more information about the capabilities of the search engine with Google Analytics in the Google Analytics Guide.