| |
|
Voir le sujet précédent :: Voir le sujet suivant
|
| Auteur |
Message |
| |
|
tandco Nouveau WRInaute
Inscrit le: 22 Avr 2008 Messages: 2 Localisation: Nancy
|
Posté le : Jeu Avr 24, 2008 9:19 Sujet du message: Google -> Moteurs de recherche personnalisés par lien :) |
|
|
Ah, heureusement qu'il y a ce forum, moi je donne ma langue au chat!
Voilà le thème: après avoir mis en ligne un annuaire (base freeglobes) pour l'industrie mécanique, j'essaye de mettre en place un simple moteur de recherche avec google déstiné à améliorer les résultats pour mes visiteurs (centrés sur l'industrie)
Le lien: search.mecaindex.fr
Le but étant que le résultat favorise le contenu de l'annuaire mecaindex.fr et affiche des résultats de google en rapport avec l'industrie.
Pour sa, j'ai essayé de mettre en pratique le "Moteurs de recherche personnalisés par lien" de google.
Voilà le lien pour doc: http://www.google.fr/coop/docs/cse/cref.html
Alors j'ai repris tous les fichiers de cette page que j'ai modifié pour essayer d'obtenir un résultat concret.
Mauvaise idée n'étant pas habitué au *.xml sa n'a rien donné de bon!
Enfaite je ne sais se que sont les "labels", à priori pas des variables.. quelqun de plus callé peut m'expliquer?lol
Voici les sources de mes fichiers:
cref_cse.xml
| Code: |
<?xml version="1.0" encoding="UTF-8" ?>
<GoogleCustomizations>
<CustomSearchEngine keywords="industrie, mecaindex, search.mecaindex">
<Title>Search.mecaindex.fr</Title>
<Description>Moteur de recherche pour l'industrie</Description>
<Context>
<BackgroundLabels>
<Label name="industrie" mode="BOOST" />
</BackgroundLabels>
</Context>
<LookAndFeel nonprofit="true">
<!-- In the spirit of solar, this search engine has a yellow background with orange titles -->
<Colors url="#FF6600" background="#FFFFFF" border="#FF6600" title="#FF3300" text="#000000" visited="#663399" light="#FF0077"/>
</LookAndFeel>
</CustomSearchEngine>
<!-- The Annotations section. This example illustrates the 3 different ways of specifying annotations -->
<!-- Link to a XML annotations files -->
<Include type="Annotations" href="http://www.mecaindex.fr/search/cref_anno.xml"/>
<!-- Use a tool provided by Google (or anyone else) to automatically generate a set of annotations. This will grabs all the links from http://dmoz.org/Science/Technology/Energy/Renewable/Solar/ and assign the label solar_example to those links. You can add as many &label= parameters as you want. -->
<Include type="Annotations" href="http://www.google.com/cse/tools/makeannotations?url=http://www.dmoz.org/World/Fran%c3%a7ais/Commerce_et_%c3%a9conomie/Produits_et_services_industriels/&label=industrie" />
<Include type="Annotations" href="http://www.google.com/cse/tools/makeannotations?url=http://www.dmoz.org/World/Fran%c3%a7ais/Commerce_et_%c3%a9conomie/Services_aux_entreprises/&label=industrie" />
</GoogleCustomizations> |
et cref_anno.xml
| Code: |
<?xml version="1.0" encoding="UTF-8" ?>
<GoogleCustomizations>
<Annotations>
<!-- annotate pages under en.wikipedia.org/wiki/ which have the term 'Solar' in the url with the label solar_example -->
<Annotation about="http://www.mecaindex.fr/*">
<Label name="industrie"/>
</Annotation>
<Annotation about="http://www.google.com/cse/tools/makecse?url=http://www.google.fr/search?hl=fr&q=industrie&meta=">
<Label name="industrie"/>
</Annotation>
<Annotation about="http://www.google.com/cse/tools/makecse?url=http://www.google.fr/search?hl=fr&q=usinage&meta=">
<Label name="industrie"/>
</Annotation>
<Annotation about="http://www.google.com/cse/tools/makecse?url=http://www.google.fr/search?hl=fr&q=d%C3%A9colletage&meta=">
<Label name="industrie"/>
</Annotation> |
Si quelqu'un de plus expert a une idée de se que j'ai bugué là dedans ...
A+ |
|
| |
|
 |
tandco Nouveau WRInaute
Inscrit le: 22 Avr 2008 Messages: 2 Localisation: Nancy
|
Posté le : Mar Mai 06, 2008 0:06 Sujet du message: Google -> Moteurs de recherche personnalisés par lien :) |
|
|
| Pour info: http://search.mecaindex.fr |
|
| |
|
 |
| |
|
|
|
|
Autres sujets de discussion :
Définitions :
|
|