moteur de recherche par annees

  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:da379e37d172830fbfa08468046e74f0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour à tous,</p>\n<p>Ori-Oai-Indexing vient de passer en version 1.4.1.</p>\n<p>Voici les la liste des modifications :<br />\n - Correction d\'un bug concernant la mise en cache du plein texte<br />\n - Correction d\'un bug lors de la recherche depuis l\'IHM du module<br />\n - Ajout de champs pour le LOM (densité sémantique et niveau<br />\nd\'intéractivité)<br />\n - Correction d\'un bug lors de la recherche concernant certaine\n</div>\n', created = 1507747960, expire = 1507834360, headers = '', serialized = 0 WHERE cid = '4:da379e37d172830fbfa08468046e74f0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:da379e37d172830fbfa08468046e74f0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour à tous,</p>\n<p>Ori-Oai-Indexing vient de passer en version 1.4.1.</p>\n<p>Voici les la liste des modifications :<br />\n - Correction d\'un bug concernant la mise en cache du plein texte<br />\n - Correction d\'un bug lors de la recherche depuis l\'IHM du module<br />\n - Ajout de champs pour le LOM (densité sémantique et niveau<br />\nd\'intéractivité)<br />\n - Correction d\'un bug lors de la recherche concernant certaine\n</div>\n', created = 1507747960, expire = 1507834360, headers = '', serialized = 0 WHERE cid = '4:da379e37d172830fbfa08468046e74f0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:684ee90d3235ee852b79570248ab2b34' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Arial\">Bonjour,<br>\n<br>\nJe souhaite proposer une recherche par ann&eacute;es sur les th&egrave;ses de l\'INSA.\nLe champ dc:date pr&eacute;sent dans mes fiches est de la forme aaammjj et je\nsouhaiterai donc ne traiter que les 4 1ers caract&egrave;res.<br>\n1&egrave;re question sur le principe : est-ce qu\'il vaut mieux cr&eacute;er un index\nparticulier qui ne contient que les ann&eacute;es ou est-ce qu\'il vaut mieux\nfaire le traitement dans la cr&eacute;ation du vocabulaire pour le moteur de\nrecherche ?<br>\nDans les deux cas, je ne vois pas comment d&eacute;couper ma cha&icirc;ne pour\nn\'avoir que les 4 premiers caract&egrave;res... <br>\nEst-ce que quelqu\'un aurait une id&eacute;e ?<br>\n<br>\nMerci pour votre aide.<br>\nNolwen<br>\n</font></font>\n<pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nM&egrave;l : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</body>\n<br />-- \n<br />Ce message a été vérifié par\n<br />pour des virus ou des polluriels et rien de\n<br />suspect n\'a été trouvé.\n</html>\n</div>', created = 1507747960, expire = 1507834360, headers = '', serialized = 0 WHERE cid = '4:684ee90d3235ee852b79570248ab2b34' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:298b6d67a3b84ff491ea7edfa180d1fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Salut Nolwen,</p>\n<p>Une première idée:</p>\n<p>--> un vocabulaire statique avec un term par année. Ensuite, chaque term est<br />\nde la forme<br />\n<vdex:term validIndex=\"true\"><br />\n <vdex:termIdentifier>2009</vdex:termIdentifier><br />\n <vdex:caption><br />\n <vdex:langstring language=\"fr\">Année 2009</vdex:langstring><br />\n </vdex:caption><br />\n <vdex:metadata><br />\n <orioai:value>2009*</orioai:value><br />\n </vdex:metadata><br />\n</vdex:term></p>\n<p>--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant<br />\nsur la métadonnée //dc:date</p>\n<p>Normalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de<br />\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc<br />\ntoutes les fiches où dc:date commence par 2009</p>\n<p>Yohan<br />\n--<br />\nCe message a\n</div>\n', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:298b6d67a3b84ff491ea7edfa180d1fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:c5dcb7476bd016cf228531258b1d5ba7' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour,</p>\n<p>Je rebondis : nous avions mis en place (en test,non utilisé en prod)<br />\ncette recherche thématique pour nos thèses en ligne en utilisant cette<br />\nméthode : elle fonctionne parfaitement bien.</p>\n<p>Karen Raynal.</p>\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Salut Nolwen,<br />\n><br />\n> Une première idée:<br />\n><br />\n> --> un vocabulaire statique avec un term par année. Ensuite, chaque term est<br />\n> de la forme<br />\n> <vdex:term validIndex=\"true\"><br />\n> <vdex:termIdentifier>2009</vdex:termIdentifier><br />\n> <vdex:caption><br />\n> <vdex:langstring language=\"fr\">Année 2009</vdex:langstring><br />\n> </vdex:caption><br />\n> <vdex:metadata><br />\n> <orioai:value>2009*</orioai:value><br />\n> </vdex:metadata><br />\n> </vdex:term><br />\n><br />\n> --> tu crées une recherche thématique utilisant ce vocabulaire et recherchant<br />\n> sur la métadonnée //dc:date<br />\n><br />\n> Normalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de<br />\n> recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc<br />\n> toutes les fiches où dc:date commence par 2009<br />\n><br />\n> Yohan</div>\n</blockquote>\n<p>--<br />\nCe message a\n</div>\n', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:c5dcb7476bd016cf228531258b1d5ba7' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:71d347be315d0b925a664fdb4ee13d70' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Arial\">Salut Yohan,<br>\n<br>\nMerci pour ta réponse.<br>\n<br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées.<br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire...<br>\n<br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée.<br>\n<br>\nA+<br>\nNolwen<br>\n</font></font><br>\nYohan Colmant a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <pre wrap=\"\">Salut Nolwen,\n\nUne première idée:\n\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque term est\nde la forme\n&lt;vdex:term validIndex=\"true\"&gt;\n &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;\n &lt;vdex:caption&gt;\n &lt;vdex:langstring language=\"fr\"&gt;Année 2009&lt;/vdex:langstring&gt;\n &lt;/vdex:caption&gt;\n &lt;vdex:metadata&gt;\n &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;\n &lt;/vdex:metadata&gt;\n&lt;/vdex:term&gt;\n\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et recherchant\nsur la métadonnée //dc:date\n\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc\ntoutes les fiches où dc:date commence par 2009\n\nYohan</pre>\n</blockquote></div></div>\n<br>\n<pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:71d347be315d0b925a664fdb4ee13d70' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:de70fd6b3ce3b53478226488f868b2af' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=ISO-8859-1\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Verdana\">Salut Nolwen,<br>\n<br>\nUne premi&egrave;re id&eacute;e:<br>\n<br>\n--&gt; un vocabulaire statique avec un term par ann&eacute;e. Ensuite, chaque\nterm est de la forme<br>\n&lt;vdex:term validIndex=\"true\"&gt;<br>\n&nbsp;&nbsp;&nbsp; &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;<br>\n&nbsp;&nbsp;&nbsp; &lt;vdex:caption&gt;<br>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vdex:langstring language=\"fr\"&gt;Ann&eacute;e\n2009&lt;/vdex:langstring&gt;<br>\n&nbsp;&nbsp;&nbsp; &lt;/vdex:caption&gt;<br>\n&nbsp;&nbsp;&nbsp; &lt;vdex:metadata&gt;<br>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;<br>\n&nbsp;&nbsp;&nbsp; &lt;/vdex:metadata&gt;<br>\n&lt;/vdex:term&gt;<br>\n<br>\n--&gt; tu cr&eacute;es une recherche th&eacute;matique utilisant ce vocabulaire et\nrecherchant sur la m&eacute;tadonn&eacute;e //dc:date<br>\n<br>\nNormalement avec cette config, en cliquant sur \"Ann&eacute;e 2009\" dans le\nmoteur de recherche, la recherche qui sera faite sera //dc:date=2009*\net renverra donc toutes les fiches o&ugrave; dc:date commence par 2009<br>\n<br>\nYohan<br>\n</font></font><br>\nNolwen Huet a &eacute;crit&nbsp;:\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote><font\n size=\"-1\"><font face=\"Arial\">Bonjour,<br>\n <br>\nJe souhaite proposer une recherche par ann&eacute;es sur les th&egrave;ses de l\'INSA.\nLe champ dc:date pr&eacute;sent dans mes fiches est de la forme aaammjj et je\nsouhaiterai donc ne traiter que les 4 1ers caract&egrave;res.<br>\n1&egrave;re question sur le principe : est-ce qu\'il vaut mieux cr&eacute;er un index\nparticulier qui ne contient que les ann&eacute;es ou est-ce qu\'il vaut mieux\nfaire le traitement dans la cr&eacute;ation du vocabulaire pour le moteur de\nrecherche ?<br>\nDans les deux cas, je ne vois pas comment d&eacute;couper ma cha&icirc;ne pour\nn\'avoir que les 4 premiers caract&egrave;res... <br>\nEst-ce que quelqu\'un aurait une id&eacute;e ?<br>\n <br>\nMerci pour votre aide.<br>\nNolwen<br>\n </font></font>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nM&egrave;l : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n <br>\n-- <br>\nCe message a &eacute;t&eacute; v&eacute;rifi&eacute; par <br>\npour des virus ou des polluriels et rien de <br>\nsuspect n\'a &eacute;t&eacute; trouv&eacute;.\n</blockquote></div></div>\n</body>\n<br />-- \n<br />Ce message a été vérifié par\n<br />pour des virus ou des polluriels et rien de\n<br />suspect n\'a été trouvé.\n</html>\n</div>', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:de70fd6b3ce3b53478226488f868b2af' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:421d09d2f8ae0df9656d2cc275c30227' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\nSalut Nolwen,<br>\n<br>\nPour l\'expression Xpath, tu peux utiliser quelque choses comme :<br>\n<br>\nsubstring(//dc:date,1,4)<br>\n<br>\nou bien popur le lom :<br>\n<br>\nsubstring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)<br>\n<br>\nFrançois<br>\n<br>\n<br>\nNolwen Huet a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Arial\">Salut Yohan,<br>\n <br>\nMerci pour ta réponse.<br>\n <br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées.<br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire...<br>\n <br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée.<br>\n <br>\nA+<br>\nNolwen<br>\n </font></font><br>\nYohan Colmant a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote\n cite=\"mid:<span id=\"919301b5c518c9ff00d1a59ebc883be5\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'919301b5c518c9ff00d1a59ebc883be5\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\" type=\"cite\">\n <pre wrap=\"\">Salut Nolwen,\n\nUne première idée:\n\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque term est\nde la forme\n&lt;vdex:term validIndex=\"true\"&gt;\n &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;\n &lt;vdex:caption&gt;\n &lt;vdex:langstring language=\"fr\"&gt;Année 2009&lt;/vdex:langstring&gt;\n &lt;/vdex:caption&gt;\n &lt;vdex:metadata&gt;\n &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;\n &lt;/vdex:metadata&gt;\n&lt;/vdex:term&gt;\n\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et recherchant\nsur la métadonnée //dc:date\n\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc\ntoutes les fiches où dc:date commence par 2009\n\nYohan</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</blockquote></div></div>\n<br>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:421d09d2f8ae0df9656d2cc275c30227' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:a8b52baabd94a1696c45aa8ad0bc969e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Arial\">Salut François,<br>\n<br>\nJ\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml mais\nje n\'ai pas réussi à obtenir un index. <br>\nJ\'ai lancé Yannick sur l\'affaire... à suivre.<br>\n<br>\nA+<br>\nNolwen<br>\n</font></font><br>\nFrancois Jannin a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\nSalut Nolwen,<br>\n <br>\nPour l\'expression Xpath, tu peux utiliser quelque choses comme :<br>\n <br>\nsubstring(//dc:date,1,4)<br>\n <br>\nou bien popur le lom :<br>\n <br>\nsubstring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)<br>\n <br>\nFrançois<br>\n <br>\n <br>\nNolwen Huet a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Arial\">Salut Yohan,<br>\n <br>\nMerci pour ta réponse.<br>\n <br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées.<br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire...<br>\n <br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée.<br>\n <br>\nA+<br>\nNolwen<br>\n </font></font><br>\nYohan Colmant a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote\n cite=\"mid:<span id=\"a3d5e92c57484df32761ceb295829e87\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'a3d5e92c57484df32761ceb295829e87\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\" type=\"cite\">\n <pre wrap=\"\">Salut Nolwen,\n\nUne première idée:\n\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque term est\nde la forme\n&lt;vdex:term validIndex=\"true\"&gt;\n &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;\n &lt;vdex:caption&gt;\n &lt;vdex:langstring language=\"fr\"&gt;Année 2009&lt;/vdex:langstring&gt;\n &lt;/vdex:caption&gt;\n &lt;vdex:metadata&gt;\n &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;\n &lt;/vdex:metadata&gt;\n&lt;/vdex:term&gt;\n\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et recherchant\nsur la métadonnée //dc:date\n\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc\ntoutes les fiches où dc:date commence par 2009\n\nYohan</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n </blockquote></div>\n <br>\n</blockquote></div></div>\n<br>\n<pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:a8b52baabd94a1696c45aa8ad0bc969e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:9a0d9b06b0b65b4864371177ee28c811' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <title></title>\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\nBonjour Nolwen,<br>\n<br>\nLes xpaths donnés par François sont corrects. Par contre le code de\nLius n\'est pas en mesure de traiter de tels xpaths.<br>\nJe t\'ai envoyé une version modifiée du code d\'une classe pour répondre\nà ton besoin.<br>\n<br>\nPeux-tu tester pour voir ce que ça donne?<br>\n<br>\nMerci<br>\n<br>\nYannick<br>\n<br>\nNolwen Huet a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Arial\">Salut François,<br>\n <br>\nJ\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml mais\nje n\'ai pas réussi à obtenir un index. <br>\nJ\'ai lancé Yannick sur l\'affaire... à suivre.<br>\n <br>\nA+<br>\nNolwen<br>\n </font></font><br>\nFrancois Jannin a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\nSalut Nolwen,<br>\n <br>\nPour l\'expression Xpath, tu peux utiliser quelque choses comme :<br>\n <br>\nsubstring(//dc:date,1,4)<br>\n <br>\nou bien popur le lom :<br>\n <br>\nsubstring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)<br>\n <br>\nFrançois<br>\n <br>\n <br>\nNolwen Huet a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Arial\">Salut Yohan,<br>\n <br>\nMerci pour ta réponse.<br>\n <br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées.<br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire...<br>\n <br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée.<br>\n <br>\nA+<br>\nNolwen<br>\n </font></font><br>\nYohan Colmant a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote\n cite=\"mid:<span id=\"e390b2fbe7141abbf400b0017fdabd65\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'e390b2fbe7141abbf400b0017fdabd65\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#50;&#51;&#53;&#48;&#52;&#49;&#53;&#54;&#53;&#46;&#49;&#57;&#53;&#51;&#57;&#46;&#51;&#49;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\" type=\"cite\">\n <pre wrap=\"\">Salut Nolwen,\n\nUne première idée:\n\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque term est\nde la forme\n&lt;vdex:term validIndex=\"true\"&gt;\n &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;\n &lt;vdex:caption&gt;\n &lt;vdex:langstring language=\"fr\"&gt;Année 2009&lt;/vdex:langstring&gt;\n &lt;/vdex:caption&gt;\n &lt;vdex:metadata&gt;\n &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;\n &lt;/vdex:metadata&gt;\n&lt;/vdex:term&gt;\n\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et recherchant\nsur la métadonnée //dc:date\n\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc\ntoutes les fiches où dc:date commence par 2009\n\nYohan</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n </blockquote></div>\n <br>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n <br>\n-- <br>\nCe message a �t� v�rifi� par\n <br>\npour des virus ou des polluriels et rien de\n <br>\nsuspect n\'a �t� trouv�.\n</blockquote></div></div>\n<br>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:9a0d9b06b0b65b4864371177ee28c811' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:576fe0789b750586d0b8ce0dae0a8e00' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Salut Yannick,<br />\nQuelle est la modif à faire ?<br />\n(peux-tu envoyer directement le fichier .java sur la liste ?)<br />\nMerci,<br />\nVincent.</p>\n<p>Yannick Caillaux wrote:<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour Nolwen,<br />\n><br />\n> Les xpaths donnés par François sont corrects. Par contre le code de<br />\n> Lius n\'est pas en mesure de traiter de tels xpaths.<br />\n> Je t\'ai envoyé une version modifiée du code d\'une classe pour répondre<br />\n> à ton besoin.<br />\n><br />\n> Peux-tu tester pour voir ce que ça donne?<br />\n><br />\n> Merci<br />\n><br />\n> Yannick<br />\n><br />\n> Nolwen Huet a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>> Salut François,<br />\n>><br />\n>> J\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml mais<br />\n>> je n\'ai pas réussi à obtenir un index.<br />\n>> J\'ai lancé Yannick sur l\'affaire... à suivre.<br />\n>><br />\n>> A+<br />\n>> Nolwen<br />\n>><br />\n>> Francois Jannin a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_2\"><p>>>> Salut Nolwen,<br />\n>>><br />\n>>> Pour l\'expression Xpath, tu peux utiliser quelque choses comme :<br />\n>>><br />\n>>> substring(//dc:date,1,4)<br />\n>>><br />\n>>> ou bien popur le lom :<br />\n>>><br />\n>>> substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)<br />\n>>><br />\n>>> François<br />\n>>><br />\n>>><br />\n>>> Nolwen Huet a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_3\"><p>>>>> Salut Yohan,<br />\n>>>><br />\n>>>> Merci pour ta réponse.<br />\n>>>><br />\n>>>> Le problème d\'un vocabulaire statique est qu\'il faut lui ajouter<br />\n>>>> une nouvelle valeur tous les ans (et plus pour le retrospectif) ou<br />\n>>>> avoir un vocabulaire beaucoup plus important que les valeurs<br />\n>>>> réellement présentes dans l\'index et à ce moment là, enlever pour<br />\n>>>> l\'affichage celles qui ne sont pas utilisées.<br />\n>>>> D\'où mon idée d\'un vocabulaire dynamique. En particulier, pour<br />\n>>>> préciser ma question, je pensais le créer à partir d\'un nouvel<br />\n>>>> index qui ne contiendrait que la partie année de l\'élément dc:date.<br />\n>>>> Le problème est que Lucène attend un XPath et que je ne vois pas<br />\n>>>> comment l\'écrire...<br />\n>>>><br />\n>>>> Si je ne trouve pas comment faire autrement, je suivrai ton idée.<br />\n>>>><br />\n>>>> A+<br />\n>>>> Nolwen<br />\n>>>><br />\n>>>> Yohan Colmant a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_4\"><p>>>>>> Salut Nolwen,<br />\n>>>>><br />\n>>>>> Une première idée:<br />\n>>>>><br />\n>>>>> --> un vocabulaire statique avec un term par année. Ensuite, chaque term est<br />\n>>>>> de la forme<br />\n>>>>> <vdex:term validIndex=\"true\"><br />\n>>>>> <vdex:termIdentifier>2009</vdex:termIdentifier><br />\n>>>>> <vdex:caption><br />\n>>>>> <vdex:langstring language=\"fr\">Année 2009</vdex:langstring><br />\n>>>>> </vdex:caption><br />\n>>>>> <vdex:metadata><br />\n>>>>> <orioai:value>2009*</orioai:value><br />\n>>>>> </vdex:metadata><br />\n>>>>> </vdex:term><br />\n>>>>><br />\n>>>>> --> tu crées une recherche thématique utilisant ce vocabulaire et recherchant<br />\n>>>>> sur la métadonnée //dc:date<br />\n>>>>><br />\n>>>>> Normalement avec cette config, en cliquant sur \"Année 2009\" dans le moteur de<br />\n>>>>> recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc<br />\n>>>>> toutes les fiches où dc:date commence par 2009<br />\n>>>>><br />\n>>>>> Yohan</p></blockquote>\n<blockquote class=\"emailFilter_Author_3\"><p>>>>><br />\n>>>> --<br />\n>>>> Nolwen CLEMENT-HUET<br />\n>>>> Coordinateur Fonctionnel du projet ORI-OAI<br />\n>>>> Doc\'INSA - INSA de Lyon<br />\n>>>> Mèl : <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a><br />\n>>>> Tel : 04 72 43 70 32<br />\n>>>> Web : <a href=\"http://docinsa.insa-lyon.fr\" title=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </p></blockquote>\n<blockquote class=\"emailFilter_Author_2\"><p>>>></p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>><br />\n>> --<br />\n>> Nolwen CLEMENT-HUET<br />\n>> Coordinateur Fonctionnel du projet ORI-OAI<br />\n>> Doc\'INSA - INSA de Lyon<br />\n>> Mèl : <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a><br />\n>> Tel : 04 72 43 70 32<br />\n>> Web : <a href=\"http://docinsa.insa-lyon.fr\" title=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a><br />\n>><br />\n>> --<br />\n>> Ce message a �t� v�rifi� par<br />\n>> pour des virus ou des polluriels et rien de<br />\n>> suspect n\'a �t� trouv�. </p></blockquote>\n<blockquote class=\"emailFilter_Author_0\"><p>><br />\n><br />\n> --<br />\n> Ce message a �t� v�rifi� par<br />\n> pour des virus ou des polluriels et rien de<br />\n> suspect n\'a �t� trouv�. </div>\n</blockquote>\n<p>--<br />\nCe message a\n</div>\n', created = 1507747961, expire = 1507834361, headers = '', serialized = 0 WHERE cid = '4:576fe0789b750586d0b8ce0dae0a8e00' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:40ebc6502bb142f832d3dbe45549e625' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Salut Vincent,</p>\n<p>Le fichier est en pièce jointe.</p>\n<p>Donc pour intégrer ça dans indexing :</p>\n<p>1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :<br />\n<luceneField name =\"substring%28%2F%2Fdc%3Adate%2C1%2C4%29\"<br />\nxpathSelect=\"substring(//dc:date,1,4)\" type=\"Text\" /><br />\nPenser aussi à ajouter ce qu\'il faut dans les 2 autres endroits de<br />\nliusConfig pour faire de la recherche sur cet élément.</p>\n<p>2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer</p>\n<p>3) Redéployer le module</p>\n<p>Par contre je ne connais pas l\'impact réel d\'une telle modification dans<br />\nles autres modules d\'ORI-OAI. Donc cette modification est à prendre avec<br />\nprécautions et il me semble dangereux pour la stabilité de l\'application<br />\nd\'utiliser ce fichier en production tant qu\'il ne sera pas intégré (donc<br />\ntesté) dans la prochaine version d\'Ori-Oai-Indexing.</p>\n<p>Yannick</p>\n<p>Vincent Bonamy a écrit :<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Salut Yannick,<br />\n> Quelle est la modif à faire ?<br />\n> (peux-tu envoyer directement le fichier .java sur la liste ?)<br />\n> Merci,<br />\n> Vincent.<br />\n><br />\n><br />\n> Yannick Caillaux wrote:</p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>> Bonjour Nolwen,<br />\n>><br />\n>> Les xpaths donnés par François sont corrects. Par contre le code de<br />\n>> Lius n\'est pas en mesure de traiter de tels xpaths.<br />\n>> Je t\'ai envoyé une version modifiée du code d\'une classe pour<br />\n>> répondre à ton besoin.<br />\n>><br />\n>> Peux-tu tester pour voir ce que ça donne?<br />\n>><br />\n>> Merci<br />\n>><br />\n>> Yannick<br />\n>><br />\n>> Nolwen Huet a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_2\"><p>>>> Salut François,<br />\n>>><br />\n>>> J\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml<br />\n>>> mais je n\'ai pas réussi à obtenir un index.<br />\n>>> J\'ai lancé Yannick sur l\'affaire... à suivre.<br />\n>>><br />\n>>> A+<br />\n>>> Nolwen<br />\n>>><br />\n>>> Francois Jannin a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_3\"><p>>>>> Salut Nolwen,<br />\n>>>><br />\n>>>> Pour l\'expression Xpath, tu peux utiliser quelque choses comme :<br />\n>>>><br />\n>>>> substring(//dc:date,1,4)<br />\n>>>><br />\n>>>> ou bien popur le lom :<br />\n>>>><br />\n>>>> substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)<br />\n>>>><br />\n>>>><br />\n>>>> François<br />\n>>>><br />\n>>>><br />\n>>>> Nolwen Huet a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_4\"><p>>>>>> Salut Yohan,<br />\n>>>>><br />\n>>>>> Merci pour ta réponse.<br />\n>>>>><br />\n>>>>> Le problème d\'un vocabulaire statique est qu\'il faut lui ajouter<br />\n>>>>> une nouvelle valeur tous les ans (et plus pour le retrospectif) ou<br />\n>>>>> avoir un vocabulaire beaucoup plus important que les valeurs<br />\n>>>>> réellement présentes dans l\'index et à ce moment là, enlever pour<br />\n>>>>> l\'affichage celles qui ne sont pas utilisées.<br />\n>>>>> D\'où mon idée d\'un vocabulaire dynamique. En particulier, pour<br />\n>>>>> préciser ma question, je pensais le créer à partir d\'un nouvel<br />\n>>>>> index qui ne contiendrait que la partie année de l\'élément<br />\n>>>>> dc:date. Le problème est que Lucène attend un XPath et que je ne<br />\n>>>>> vois pas comment l\'écrire...<br />\n>>>>><br />\n>>>>> Si je ne trouve pas comment faire autrement, je suivrai ton idée.<br />\n>>>>><br />\n>>>>> A+<br />\n>>>>> Nolwen<br />\n>>>>><br />\n>>>>> Yohan Colmant a écrit :</p></blockquote>\n<blockquote class=\"emailFilter_Author_5\"><p>>>>>>> Salut Nolwen,<br />\n>>>>>><br />\n>>>>>> Une première idée:<br />\n>>>>>><br />\n>>>>>> --> un vocabulaire statique avec un term par année. Ensuite,<br />\n>>>>>> chaque term est<br />\n>>>>>> de la forme<br />\n>>>>>> <vdex:term validIndex=\"true\"><br />\n>>>>>> <vdex:termIdentifier>2009</vdex:termIdentifier><br />\n>>>>>> <vdex:caption><br />\n>>>>>> <vdex:langstring language=\"fr\">Année 2009</vdex:langstring><br />\n>>>>>> </vdex:caption><br />\n>>>>>> <vdex:metadata><br />\n>>>>>> <orioai:value>2009*</orioai:value><br />\n>>>>>> </vdex:metadata><br />\n>>>>>> </vdex:term><br />\n>>>>>><br />\n>>>>>> --> tu crées une recherche thématique utilisant ce vocabulaire et<br />\n>>>>>> recherchant<br />\n>>>>>> sur la métadonnée //dc:date<br />\n>>>>>><br />\n>>>>>> Normalement avec cette config, en cliquant sur \"Année 2009\" dans<br />\n>>>>>> le moteur de<br />\n>>>>>> recherche, la recherche qui sera faite sera //dc:date=2009* et<br />\n>>>>>> renverra donc<br />\n>>>>>> toutes les fiches où dc:date commence par 2009<br />\n>>>>>><br />\n>>>>>> Yohan</p></blockquote>\n<blockquote class=\"emailFilter_Author_4\"><p>>>>>><br />\n>>>>> --<br />\n>>>>> Nolwen CLEMENT-HUET<br />\n>>>>> Coordinateur Fonctionnel du projet ORI-OAI<br />\n>>>>> Doc\'INSA - INSA de Lyon<br />\n>>>>> Mèl : <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a><br />\n>>>>> Tel : 04 72 43 70 32<br />\n>>>>> Web : <a href=\"http://docinsa.insa-lyon.fr\" title=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </p></blockquote>\n<blockquote class=\"emailFilter_Author_3\"><p>>>>></p></blockquote>\n<blockquote class=\"emailFilter_Author_2\"><p>>>><br />\n>>> --<br />\n>>> Nolwen CLEMENT-HUET<br />\n>>> Coordinateur Fonctionnel du projet ORI-OAI<br />\n>>> Doc\'INSA - INSA de Lyon<br />\n>>> Mèl : <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a><br />\n>>> Tel : 04 72 43 70 32<br />\n>>> Web : <a href=\"http://docinsa.insa-lyon.fr\" title=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a><br />\n>>> --<br />\n>>> Ce message a �t� v�rifi� par<br />\n>>> pour des virus ou des polluriels et rien de<br />\n>>> suspect n\'a �t� trouv�. </p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>><br />\n>><br />\n>> --<br />\n>> Ce message a �t� v�rifi� par<br />\n>> pour des virus ou des polluriels et rien de<br />\n>> suspect n\'a �t� trouv�. </p></blockquote>\n<blockquote class=\"emailFilter_Author_0\"><p>><br />\n></div>\n</blockquote>\n<p>--<br />\nCe message a\n</div>\n', created = 1507747962, expire = 1507834362, headers = '', serialized = 0 WHERE cid = '4:40ebc6502bb142f832d3dbe45549e625' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:b19db10c5288c68fd90194eee0b2a438' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Arial\">Salut à tous les 2,<br>\n<br>\nRetour d\'utilisation : merci Yannick pour les modifications, l\'index\nest bien créé et contient les bonnes valeurs.<br>\nPar contre, le module vocabulaire ne créé pas le vocabulaire\ncorrespondant.<br>\n<br>\nL\'ajout de code que j\'ai écrit pour créer le vocabulaire correspondant\ndans domain/indexingVocabularies.xml : <br>\n    &lt;bean id=\"indexed_thesis_years_vcard\"<br>\n       \nclass=\"org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider\"\ninit-method=\"init\"&gt;<br>\n        &lt;property name=\"categoryId\" value=\"thesis_years\" /&gt;<br>\n        &lt;property name=\"indexingService\" ref=\"indexingService\" /&gt;<br>\n        &lt;property name=\"validIndex\" value=\"true\"/&gt;<br>\n        &lt;property name=\"indexingXpath\"<br>\n            value=\"substring(//dc:date,1,4)\" /&gt;<br>\n    &lt;/bean&gt;<br>\n<br>\nLe message d\'erreur dans les logs du vocabulary :<br>\n<br>\nERROR context.ContextLoader initWebApplicationContext[200]  - Context\ninitialization failed<br>\norg.springframework.beans.factory.BeanCreationException: Error creating\nbean with name \'indexed_thesis_years_vcard\' defined in class path\nresource [properties/domain/indexingVocabulary.xml]: Initialization of\nbean failed; nested exception is\norg.springframework.beans.InvalidPropertyException: Invalid property\n\'indexingXpath\' of bean class\n[org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]:\nNo property \'indexingXpath\' found<br>\nCaused by: <br>\norg.springframework.beans.InvalidPropertyException: Invalid property\n\'indexingXpath\' of bean class\n[org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]:\nNo property \'indexingXpath\' found<br>\n    at\norg.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1085)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br>\n    at\norg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)<br>\n    at\norg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)<br>\n    at\norg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)<br>\n    at\norg.orioai.commons.spring.PluginContextLoader.createWebApplicationContext(PluginContextLoader.java:94)<br>\n    at\norg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>\n    at\norg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)<br>\n    at\norg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)<br>\n    at\norg.apache.catalina.core.StandardContext.start(StandardContext.java:4216)<br>\n    at\norg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)<br>\n    at\norg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br>\n    at\norg.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)<br>\n    at\norg.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)<br>\n    at\norg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)<br>\n    at\norg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br>\n    at\norg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)<br>\n    at\norg.apache.catalina.core.StandardHost.start(StandardHost.java:736)<br>\n    at\norg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)<br>\n    at\norg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br>\n    at\norg.apache.catalina.core.StandardService.start(StandardService.java:448)<br>\n    at\norg.apache.catalina.core.StandardServer.start(StandardServer.java:700)<br>\n    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br>\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>\n    at\nsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>\n    at\nsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>\n    at java.lang.reflect.Method.invoke(Method.java:585)<br>\n    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)<br>\n    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)<br>\n<br>\nMerci pour votre aide<br>\nNolwen<br>\n<br>\n</font></font><br>\nYannick Caillaux a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>Salut\nVincent,\n <br>\n <br>\nLe fichier est en pièce jointe.\n <br>\n <br>\nDonc pour intégrer ça dans indexing :\n <br>\n <br>\n1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :\n <br>\n&lt;luceneField name =\"substring%28%2F%2Fdc%3Adate%2C1%2C4%29\"\nxpathSelect=\"substring(//dc:date,1,4)\" type=\"Text\" /&gt;\n <br>\nPenser aussi à ajouter ce qu\'il faut dans les 2 autres endroits de\nliusConfig pour faire de la recherche sur cet élément.\n <br>\n <br>\n2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer\n <br>\n <br>\n3) Redéployer le module\n <br>\n <br>\n <br>\nPar contre je ne connais pas l\'impact réel d\'une telle modification\ndans les autres modules d\'ORI-OAI. Donc cette modification est à\nprendre avec précautions et il me semble dangereux pour la stabilité de\nl\'application d\'utiliser ce fichier en production tant qu\'il ne sera\npas intégré (donc testé) dans la prochaine version d\'Ori-Oai-Indexing.\n <br>\n <br>\nYannick\n <br>\n <br>\n <br>\nVincent Bonamy a écrit :\n <br>\n <div class=\"emailFilter_Author_1\"><blockquote type=\"cite\">Salut Yannick,\n <br>\nQuelle est la modif à faire ?\n <br>\n(peux-tu envoyer directement le fichier .java sur la liste ?)\n <br>\nMerci,\n <br>\nVincent.\n <br>\n <br>\n <br>\nYannick Caillaux wrote:\n <br>\n <div class=\"emailFilter_Author_2\"><blockquote type=\"cite\">Bonjour Nolwen,\n <br>\n <br>\nLes xpaths donnés par François sont corrects. Par contre le code de\nLius n\'est pas en mesure de traiter de tels xpaths.\n <br>\nJe t\'ai envoyé une version modifiée du code d\'une classe pour répondre\nà ton besoin.\n <br>\n <br>\nPeux-tu tester pour voir ce que ça donne?\n <br>\n <br>\nMerci\n <br>\n <br>\nYannick\n <br>\n <br>\nNolwen Huet a écrit :\n <br>\n <div class=\"emailFilter_Author_3\"><blockquote type=\"cite\">Salut François,\n <br>\n <br>\nJ\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml mais\nje n\'ai pas réussi à obtenir un index.\n <br>\nJ\'ai lancé Yannick sur l\'affaire... à suivre.\n <br>\n <br>\nA+\n <br>\nNolwen\n <br>\n <br>\nFrancois Jannin a écrit :\n <br>\n <div class=\"emailFilter_Author_4\"><blockquote type=\"cite\">Salut Nolwen,\n <br>\n <br>\nPour l\'expression Xpath, tu peux utiliser quelque choses comme :\n <br>\n <br>\nsubstring(//dc:date,1,4)\n <br>\n <br>\nou bien popur le lom :\n <br>\n <br>\nsubstring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)\n <br>\n <br>\nFrançois\n <br>\n <br>\n <br>\nNolwen Huet a écrit :\n <br>\n <div class=\"emailFilter_Author_5\"><blockquote type=\"cite\">Salut Yohan,\n <br>\n <br>\nMerci pour ta réponse.\n <br>\n <br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées.\n <br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire...\n <br>\n <br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée.\n <br>\n <br>\nA+\n <br>\nNolwen\n <br>\n <br>\nYohan Colmant a écrit :\n <br>\n <div class=\"emailFilter_Author_6\"><blockquote type=\"cite\">Salut Nolwen,\n <br>\n <br>\nUne première idée:\n <br>\n <br>\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque\nterm est\n <br>\nde la forme\n <br>\n&lt;vdex:term validIndex=\"true\"&gt;\n <br>\n    &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt;\n <br>\n    &lt;vdex:caption&gt;\n <br>\n    &lt;vdex:langstring language=\"fr\"&gt;Année\n2009&lt;/vdex:langstring&gt;\n <br>\n    &lt;/vdex:caption&gt;\n <br>\n    &lt;vdex:metadata&gt;\n <br>\n    &lt;orioai:value&gt;2009*&lt;/orioai:value&gt;\n <br>\n    &lt;/vdex:metadata&gt;\n <br>\n&lt;/vdex:term&gt;\n <br>\n <br>\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et\nrecherchant\n <br>\nsur la métadonnée //dc:date\n <br>\n <br>\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le\nmoteur de\n <br>\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra\ndonc\n <br>\ntoutes les fiches où dc:date commence par 2009\n <br>\n <br>\nYohan\n <br>\n </blockquote></div>\n <br>\n-- <br>\nNolwen CLEMENT-HUET\n <br>\nCoordinateur Fonctionnel du projet ORI-OAI\n <br>\nDoc\'INSA - INSA de Lyon\n <br>\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\n <br>\nTel : 04 72 43 70 32\n <br>\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </blockquote></div>\n <br>\n </blockquote></div>\n <br>\n-- <br>\nNolwen CLEMENT-HUET\n <br>\nCoordinateur Fonctionnel du projet ORI-OAI\n <br>\nDoc\'INSA - INSA de Lyon\n <br>\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\n <br>\nTel : 04 72 43 70 32\n <br>\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a>\n <br>\n-- <br>\nCe message a �t� v�rifi� par\n <br>\npour des virus ou des polluriels et rien de\n <br>\nsuspect n\'a �t� trouv�. </blockquote></div>\n <br>\n <br>\n-- <br>\nCe message a �t� v�rifi� par\n <br>\npour des virus ou des polluriels et rien de\n <br>\nsuspect n\'a �t� trouv�. </blockquote></div>\n <br>\n <br>\n </blockquote></div>\n <br>\n <br>\n</blockquote></div></div>\n<br>\n<pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747962, expire = 1507834362, headers = '', serialized = 0 WHERE cid = '4:b19db10c5288c68fd90194eee0b2a438' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:8662a8cd28f0bf5a6e02b7f232099cd6' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n</head>\n<body bgcolor=\"#ffffff\" text=\"#000000\">\n<font size=\"-1\"><font face=\"Arial\">Bonjour,<br>\n<br>\nErreur trouvée (due à un mauvais copier/coller) : il faut écrire<br>\n<br>\n</font></font><font size=\"-1\"><font face=\"Arial\">&lt;bean\nid=\"indexed_thesis_years_vcard\"<br>\n       \nclass=\"org.orioai.vocabulary.domain.providers.indexing.<font\n color=\"#009900\">OriIndexerVocabularyProvider</font>\"\ninit-method=\"init\"&gt;<br>\n<br>\n... et ça marche.<br>\n<br>\nMerci Yannick et Yohan.<br>\nA+<br>\nNolwen<br>\n</font></font><br>\nNolwen Huet a écrit :\n<div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Arial\">Salut à tous les 2,<br>\n <br>\nRetour d\'utilisation : merci Yannick pour les modifications, l\'index\nest bien créé et contient les bonnes valeurs.<br>\nPar contre, le module vocabulaire ne créé pas le vocabulaire\ncorrespondant.<br>\n <br>\nL\'ajout de code que j\'ai écrit pour créer le vocabulaire correspondant\ndans domain/indexingVocabularies.xml : <br>\n    &lt;bean id=\"indexed_thesis_years_vcard\"<br>\n       \nclass=\"org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider\"\ninit-method=\"init\"&gt;<br>\n        &lt;property name=\"categoryId\" value=\"thesis_years\" /&gt;<br>\n        &lt;property name=\"indexingService\" ref=\"indexingService\" /&gt;<br>\n        &lt;property name=\"validIndex\" value=\"true\"/&gt;<br>\n        &lt;property name=\"indexingXpath\"<br>\n            value=\"substring(//dc:date,1,4)\" /&gt;<br>\n    &lt;/bean&gt;<br>\n <br>\nLe message d\'erreur dans les logs du vocabulary :<br>\n <br>\nERROR context.ContextLoader initWebApplicationContext[200]  - Context\ninitialization failed<br>\norg.springframework.beans.factory.BeanCreationException: Error creating\nbean with name \'indexed_thesis_years_vcard\' defined in class path\nresource [properties/domain/indexingVocabulary.xml]: Initialization of\nbean failed; nested exception is\norg.springframework.beans.InvalidPropertyException: Invalid property\n\'indexingXpath\' of bean class\n[org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]:\nNo property \'indexingXpath\' found<br>\nCaused by: <br>\norg.springframework.beans.InvalidPropertyException: Invalid property\n\'indexingXpath\' of bean class\n[org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]:\nNo property \'indexingXpath\' found<br>\n    at\norg.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1085)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835)<br>\n    at\norg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br>\n    at\norg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br>\n    at\norg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)<br>\n    at\norg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)<br>\n    at\norg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)<br>\n    at\norg.orioai.commons.spring.PluginContextLoader.createWebApplicationContext(PluginContextLoader.java:94)<br>\n    at\norg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>\n    at\norg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)<br>\n    at\norg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)<br>\n    at\norg.apache.catalina.core.StandardContext.start(StandardContext.java:4216)<br>\n    at\norg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)<br>\n    at\norg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br>\n    at\norg.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)<br>\n    at\norg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)<br>\n    at\norg.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)<br>\n    at\norg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)<br>\n    at\norg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br>\n    at\norg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)<br>\n    at\norg.apache.catalina.core.StandardHost.start(StandardHost.java:736)<br>\n    at\norg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)<br>\n    at\norg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br>\n    at\norg.apache.catalina.core.StandardService.start(StandardService.java:448)<br>\n    at\norg.apache.catalina.core.StandardServer.start(StandardServer.java:700)<br>\n    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br>\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>\n    at\nsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>\n    at\nsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>\n    at java.lang.reflect.Method.invoke(Method.java:585)<br>\n    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)<br>\n    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)<br>\n <br>\nMerci pour votre aide<br>\nNolwen<br>\n <br>\n </font></font><br>\nYannick Caillaux a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>Salut\nVincent, <br>\n <br>\nLe fichier est en pièce jointe. <br>\n <br>\nDonc pour intégrer ça dans indexing : <br>\n <br>\n1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :\n <br>\n&lt;luceneField name =\"substring%28%2F%2Fdc%3Adate%2C1%2C4%29\"\nxpathSelect=\"substring(//dc:date,1,4)\" type=\"Text\" /&gt; <br>\nPenser aussi à ajouter ce qu\'il faut dans les 2 autres endroits de\nliusConfig pour faire de la recherche sur cet élément. <br>\n <br>\n2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer <br>\n <br>\n3) Redéployer le module <br>\n <br>\n <br>\nPar contre je ne connais pas l\'impact réel d\'une telle modification\ndans les autres modules d\'ORI-OAI. Donc cette modification est à\nprendre avec précautions et il me semble dangereux pour la stabilité de\nl\'application d\'utiliser ce fichier en production tant qu\'il ne sera\npas intégré (donc testé) dans la prochaine version d\'Ori-Oai-Indexing. <br>\n <br>\nYannick <br>\n <br>\n <br>\nVincent Bonamy a écrit : <br>\n <div class=\"emailFilter_Author_2\"><blockquote type=\"cite\">Salut Yannick, <br>\nQuelle est la modif à faire ? <br>\n(peux-tu envoyer directement le fichier .java sur la liste ?) <br>\nMerci, <br>\nVincent. <br>\n <br>\n <br>\nYannick Caillaux wrote: <br>\n <div class=\"emailFilter_Author_3\"><blockquote type=\"cite\">Bonjour Nolwen, <br>\n <br>\nLes xpaths donnés par François sont corrects. Par contre le code de\nLius n\'est pas en mesure de traiter de tels xpaths. <br>\nJe t\'ai envoyé une version modifiée du code d\'une classe pour répondre\nà ton besoin. <br>\n <br>\nPeux-tu tester pour voir ce que ça donne? <br>\n <br>\nMerci <br>\n <br>\nYannick <br>\n <br>\nNolwen Huet a écrit : <br>\n <div class=\"emailFilter_Author_4\"><blockquote type=\"cite\">Salut François, <br>\n <br>\nJ\'ai essayé d\'utiliser la fonction substring dans liusConfig.xml mais\nje n\'ai pas réussi à obtenir un index. <br>\nJ\'ai lancé Yannick sur l\'affaire... à suivre. <br>\n <br>\nA+ <br>\nNolwen <br>\n <br>\nFrancois Jannin a écrit : <br>\n <div class=\"emailFilter_Author_5\"><blockquote type=\"cite\">Salut Nolwen, <br>\n <br>\nPour l\'expression Xpath, tu peux utiliser quelque choses comme : <br>\n <br>\nsubstring(//dc:date,1,4) <br>\n <br>\nou bien popur le lom : <br>\n <br>\nsubstring(//lom:lifeCycle/lom:contribute[lom:role/lom:value=\'author\']/lom:date/lom:dateTime,1,4)\n <br>\n <br>\nFrançois <br>\n <br>\n <br>\nNolwen Huet a écrit : <br>\n <div class=\"emailFilter_Author_6\"><blockquote type=\"cite\">Salut Yohan, <br>\n <br>\nMerci pour ta réponse. <br>\n <br>\nLe problème d\'un vocabulaire statique est qu\'il faut lui ajouter une\nnouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un\nvocabulaire beaucoup plus important que les valeurs réellement\nprésentes dans l\'index et à ce moment là, enlever pour l\'affichage\ncelles qui ne sont pas utilisées. <br>\nD\'où mon idée d\'un vocabulaire dynamique. En particulier, pour préciser\nma question, je pensais le créer à partir d\'un nouvel index qui ne\ncontiendrait que la partie année de l\'élément dc:date. Le problème est\nque Lucène attend un XPath et que je ne vois pas comment l\'écrire... <br>\n <br>\nSi je ne trouve pas comment faire autrement, je suivrai ton idée. <br>\n <br>\nA+ <br>\nNolwen <br>\n <br>\nYohan Colmant a écrit : <br>\n <div class=\"emailFilter_Author_7\"><blockquote type=\"cite\">Salut Nolwen, <br>\n <br>\nUne première idée: <br>\n <br>\n--&gt; un vocabulaire statique avec un term par année. Ensuite, chaque\nterm est <br>\nde la forme <br>\n&lt;vdex:term validIndex=\"true\"&gt; <br>\n    &lt;vdex:termIdentifier&gt;2009&lt;/vdex:termIdentifier&gt; <br>\n    &lt;vdex:caption&gt; <br>\n    &lt;vdex:langstring language=\"fr\"&gt;Année\n2009&lt;/vdex:langstring&gt; <br>\n    &lt;/vdex:caption&gt; <br>\n    &lt;vdex:metadata&gt; <br>\n    &lt;orioai:value&gt;2009*&lt;/orioai:value&gt; <br>\n    &lt;/vdex:metadata&gt; <br>\n&lt;/vdex:term&gt; <br>\n <br>\n--&gt; tu crées une recherche thématique utilisant ce vocabulaire et\nrecherchant <br>\nsur la métadonnée //dc:date <br>\n <br>\nNormalement avec cette config, en cliquant sur \"Année 2009\" dans le\nmoteur de <br>\nrecherche, la recherche qui sera faite sera //dc:date=2009* et renverra\ndonc <br>\ntoutes les fiches où dc:date commence par 2009 <br>\n <br>\nYohan <br>\n </blockquote></div>\n <br>\n-- <br>\nNolwen CLEMENT-HUET <br>\nCoordinateur Fonctionnel du projet ORI-OAI <br>\nDoc\'INSA - INSA de Lyon <br>\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a> <br>\nTel : 04 72 43 70 32 <br>\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </blockquote></div>\n <br>\n </blockquote></div>\n <br>\n-- <br>\nNolwen CLEMENT-HUET <br>\nCoordinateur Fonctionnel du projet ORI-OAI <br>\nDoc\'INSA - INSA de Lyon <br>\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a> <br>\nTel : 04 72 43 70 32 <br>\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> <br>\n-- <br>\nCe message a �t� v�rifi� par <br>\npour des virus ou des polluriels et rien de <br>\nsuspect n\'a �t� trouv�. </blockquote></div>\n <br>\n <br>\n-- <br>\nCe message a �t� v�rifi� par <br>\npour des virus ou des polluriels et rien de <br>\nsuspect n\'a �t� trouv�. </blockquote></div>\n <br>\n <br>\n </blockquote></div>\n <br>\n <br>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</blockquote></div></div>\n<br>\n<pre class=\"moz-signature\" cols=\"72\">-- \nNolwen CLEMENT-HUET\nCoordinateur Fonctionnel du projet ORI-OAI\nDoc\'INSA - INSA de Lyon\nMèl : <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;\">&#110;&#111;&#108;&#119;&#101;&#110;&#46;&#104;&#117;&#101;&#116;&#64;&#105;&#110;&#115;&#97;&#45;&#108;&#121;&#111;&#110;&#46;&#102;&#114;</a>\nTel : 04 72 43 70 32\nWeb : <a class=\"moz-txt-link-freetext\" href=\"http://docinsa.insa-lyon.fr\">http://docinsa.insa-lyon.fr</a> </pre>\n</body>\n<br />-- \n<br />Ce message a </div>', created = 1507747962, expire = 1507834362, headers = '', serialized = 0 WHERE cid = '4:8662a8cd28f0bf5a6e02b7f232099cd6' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
12 messages / 0 nouveaux
Dernière contribution
Nolwen Huet
moteur de recherche par annees
Bonjour,

Je souhaite proposer une recherche par années sur les thèses de l'INSA. Le champ dc:date présent dans mes fiches est de la forme aaammjj et je souhaiterai donc ne traiter que les 4 1ers caractères.
1ère question sur le principe : est-ce qu'il vaut mieux créer un index particulier qui ne contient que les années ou est-ce qu'il vaut mieux faire le traitement dans la création du vocabulaire pour le moteur de recherche ?
Dans les deux cas, je ne vois pas comment découper ma chaîne pour n'avoir que les 4 premiers caractères...
Est-ce que quelqu'un aurait une idée ?

Merci pour votre aide.
Nolwen
-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a été vérifié par
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
Yohan Colmant
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme

2009

Année 2009


2009*

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan
--
Ce message a

karenraynal
Bonjour,

Je rebondis : nous avions mis en place (en test,non utilisé en prod)
cette recherche thématique pour nos thèses en ligne en utilisant cette
méthode : elle fonctionne parfaitement bien.

Karen Raynal.

> Salut Nolwen,
>
> Une première idée:
>
> --> un vocabulaire statique avec un term par année. Ensuite, chaque term est
> de la forme
>
> 2009
>
> Année 2009
>

>
> 2009*
>

>

>
> --> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
> sur la métadonnée //dc:date
>
> Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
> recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
> toutes les fiches où dc:date commence par 2009
>
> Yohan

--
Ce message a

Nolwen Huet
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
	<vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
	<orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a
Yohan Colmant
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
        <vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
        <orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc toutes les fiches où dc:date commence par 2009

Yohan

Nolwen Huet a écrit :
Bonjour,

Je souhaite proposer une recherche par années sur les thèses de l'INSA. Le champ dc:date présent dans mes fiches est de la forme aaammjj et je souhaiterai donc ne traiter que les 4 1ers caractères.
1ère question sur le principe : est-ce qu'il vaut mieux créer un index particulier qui ne contient que les années ou est-ce qu'il vaut mieux faire le traitement dans la création du vocabulaire pour le moteur de recherche ?
Dans les deux cas, je ne vois pas comment découper ma chaîne pour n'avoir que les 4 premiers caractères...
Est-ce que quelqu'un aurait une idée ?

Merci pour votre aide.
Nolwen
-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a été vérifié par
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.

--
Ce message a été vérifié par
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
francoisjannin
Salut Nolwen,

Pour l'expression Xpath, tu peux utiliser quelque choses comme :

substring(//dc:date,1,4)

ou bien popur le lom :

substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)

François


Nolwen Huet a écrit :
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
" type="cite">
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
	<vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
	<orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 


--
Ce message a
Nolwen Huet
Salut François,

J'ai essayé d'utiliser la fonction substring dans liusConfig.xml mais je n'ai pas réussi à obtenir un index.
J'ai lancé Yannick sur l'affaire... à suivre.

A+
Nolwen

Francois Jannin a écrit :
Salut Nolwen,

Pour l'expression Xpath, tu peux utiliser quelque choses comme :

substring(//dc:date,1,4)

ou bien popur le lom :

substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)

François


Nolwen Huet a écrit :
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
" type="cite">
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
	<vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
	<orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 


-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a
yannickcaillaux
Bonjour Nolwen,

Les xpaths donnés par François sont corrects. Par contre le code de Lius n'est pas en mesure de traiter de tels xpaths.
Je t'ai envoyé une version modifiée du code d'une classe pour répondre à ton besoin.

Peux-tu tester pour voir ce que ça donne?

Merci

Yannick

Nolwen Huet a écrit :
Salut François,

J'ai essayé d'utiliser la fonction substring dans liusConfig.xml mais je n'ai pas réussi à obtenir un index.
J'ai lancé Yannick sur l'affaire... à suivre.

A+
Nolwen

Francois Jannin a écrit :
Salut Nolwen,

Pour l'expression Xpath, tu peux utiliser quelque choses comme :

substring(//dc:date,1,4)

ou bien popur le lom :

substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)

François


Nolwen Huet a écrit :
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
" type="cite">
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
	<vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
	<orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 


-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a �t� v�rifi� par
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.


--
Ce message a
vincentbonamy
Salut Yannick,
Quelle est la modif à faire ?
(peux-tu envoyer directement le fichier .java sur la liste ?)
Merci,
Vincent.

Yannick Caillaux wrote:

> Bonjour Nolwen,
>
> Les xpaths donnés par François sont corrects. Par contre le code de
> Lius n'est pas en mesure de traiter de tels xpaths.
> Je t'ai envoyé une version modifiée du code d'une classe pour répondre
> à ton besoin.
>
> Peux-tu tester pour voir ce que ça donne?
>
> Merci
>
> Yannick
>
> Nolwen Huet a écrit :

>> Salut François,
>>
>> J'ai essayé d'utiliser la fonction substring dans liusConfig.xml mais
>> je n'ai pas réussi à obtenir un index.
>> J'ai lancé Yannick sur l'affaire... à suivre.
>>
>> A+
>> Nolwen
>>
>> Francois Jannin a écrit :

>>> Salut Nolwen,
>>>
>>> Pour l'expression Xpath, tu peux utiliser quelque choses comme :
>>>
>>> substring(//dc:date,1,4)
>>>
>>> ou bien popur le lom :
>>>
>>> substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)
>>>
>>> François
>>>
>>>
>>> Nolwen Huet a écrit :

>>>> Salut Yohan,
>>>>
>>>> Merci pour ta réponse.
>>>>
>>>> Le problème d'un vocabulaire statique est qu'il faut lui ajouter
>>>> une nouvelle valeur tous les ans (et plus pour le retrospectif) ou
>>>> avoir un vocabulaire beaucoup plus important que les valeurs
>>>> réellement présentes dans l'index et à ce moment là, enlever pour
>>>> l'affichage celles qui ne sont pas utilisées.
>>>> D'où mon idée d'un vocabulaire dynamique. En particulier, pour
>>>> préciser ma question, je pensais le créer à partir d'un nouvel
>>>> index qui ne contiendrait que la partie année de l'élément dc:date.
>>>> Le problème est que Lucène attend un XPath et que je ne vois pas
>>>> comment l'écrire...
>>>>
>>>> Si je ne trouve pas comment faire autrement, je suivrai ton idée.
>>>>
>>>> A+
>>>> Nolwen
>>>>
>>>> Yohan Colmant a écrit :

>>>>> Salut Nolwen,
>>>>>
>>>>> Une première idée:
>>>>>
>>>>> --> un vocabulaire statique avec un term par année. Ensuite, chaque term est
>>>>> de la forme
>>>>>
>>>>> 2009
>>>>>
>>>>> Année 2009
>>>>>

>>>>>
>>>>> 2009*
>>>>>

>>>>>

>>>>>
>>>>> --> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
>>>>> sur la métadonnée //dc:date
>>>>>
>>>>> Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
>>>>> recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
>>>>> toutes les fiches où dc:date commence par 2009
>>>>>
>>>>> Yohan

>>>>
>>>> --
>>>> Nolwen CLEMENT-HUET
>>>> Coordinateur Fonctionnel du projet ORI-OAI
>>>> Doc'INSA - INSA de Lyon
>>>> Mèl : nolwen.huet@insa-lyon.fr
>>>> Tel : 04 72 43 70 32
>>>> Web : http://docinsa.insa-lyon.fr

>>>

>>
>> --
>> Nolwen CLEMENT-HUET
>> Coordinateur Fonctionnel du projet ORI-OAI
>> Doc'INSA - INSA de Lyon
>> Mèl : nolwen.huet@insa-lyon.fr
>> Tel : 04 72 43 70 32
>> Web : http://docinsa.insa-lyon.fr
>>
>> --
>> Ce message a �t� v�rifi� par
>> pour des virus ou des polluriels et rien de
>> suspect n'a �t� trouv�.

>
>
> --
> Ce message a �t� v�rifi� par
> pour des virus ou des polluriels et rien de
> suspect n'a �t� trouv�.

--
Ce message a

yannickcaillaux
Salut Vincent,

Le fichier est en pièce jointe.

Donc pour intégrer ça dans indexing :

1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :
xpathSelect="substring(//dc:date,1,4)" type="Text" />
Penser aussi à ajouter ce qu'il faut dans les 2 autres endroits de
liusConfig pour faire de la recherche sur cet élément.

2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer

3) Redéployer le module

Par contre je ne connais pas l'impact réel d'une telle modification dans
les autres modules d'ORI-OAI. Donc cette modification est à prendre avec
précautions et il me semble dangereux pour la stabilité de l'application
d'utiliser ce fichier en production tant qu'il ne sera pas intégré (donc
testé) dans la prochaine version d'Ori-Oai-Indexing.

Yannick

Vincent Bonamy a écrit :

> Salut Yannick,
> Quelle est la modif à faire ?
> (peux-tu envoyer directement le fichier .java sur la liste ?)
> Merci,
> Vincent.
>
>
> Yannick Caillaux wrote:

>> Bonjour Nolwen,
>>
>> Les xpaths donnés par François sont corrects. Par contre le code de
>> Lius n'est pas en mesure de traiter de tels xpaths.
>> Je t'ai envoyé une version modifiée du code d'une classe pour
>> répondre à ton besoin.
>>
>> Peux-tu tester pour voir ce que ça donne?
>>
>> Merci
>>
>> Yannick
>>
>> Nolwen Huet a écrit :

>>> Salut François,
>>>
>>> J'ai essayé d'utiliser la fonction substring dans liusConfig.xml
>>> mais je n'ai pas réussi à obtenir un index.
>>> J'ai lancé Yannick sur l'affaire... à suivre.
>>>
>>> A+
>>> Nolwen
>>>
>>> Francois Jannin a écrit :

>>>> Salut Nolwen,
>>>>
>>>> Pour l'expression Xpath, tu peux utiliser quelque choses comme :
>>>>
>>>> substring(//dc:date,1,4)
>>>>
>>>> ou bien popur le lom :
>>>>
>>>> substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)
>>>>
>>>>
>>>> François
>>>>
>>>>
>>>> Nolwen Huet a écrit :

>>>>> Salut Yohan,
>>>>>
>>>>> Merci pour ta réponse.
>>>>>
>>>>> Le problème d'un vocabulaire statique est qu'il faut lui ajouter
>>>>> une nouvelle valeur tous les ans (et plus pour le retrospectif) ou
>>>>> avoir un vocabulaire beaucoup plus important que les valeurs
>>>>> réellement présentes dans l'index et à ce moment là, enlever pour
>>>>> l'affichage celles qui ne sont pas utilisées.
>>>>> D'où mon idée d'un vocabulaire dynamique. En particulier, pour
>>>>> préciser ma question, je pensais le créer à partir d'un nouvel
>>>>> index qui ne contiendrait que la partie année de l'élément
>>>>> dc:date. Le problème est que Lucène attend un XPath et que je ne
>>>>> vois pas comment l'écrire...
>>>>>
>>>>> Si je ne trouve pas comment faire autrement, je suivrai ton idée.
>>>>>
>>>>> A+
>>>>> Nolwen
>>>>>
>>>>> Yohan Colmant a écrit :

>>>>>> Salut Nolwen,
>>>>>>
>>>>>> Une première idée:
>>>>>>
>>>>>> --> un vocabulaire statique avec un term par année. Ensuite,
>>>>>> chaque term est
>>>>>> de la forme
>>>>>>
>>>>>> 2009
>>>>>>
>>>>>> Année 2009
>>>>>>

>>>>>>
>>>>>> 2009*
>>>>>>

>>>>>>

>>>>>>
>>>>>> --> tu crées une recherche thématique utilisant ce vocabulaire et
>>>>>> recherchant
>>>>>> sur la métadonnée //dc:date
>>>>>>
>>>>>> Normalement avec cette config, en cliquant sur "Année 2009" dans
>>>>>> le moteur de
>>>>>> recherche, la recherche qui sera faite sera //dc:date=2009* et
>>>>>> renverra donc
>>>>>> toutes les fiches où dc:date commence par 2009
>>>>>>
>>>>>> Yohan

>>>>>
>>>>> --
>>>>> Nolwen CLEMENT-HUET
>>>>> Coordinateur Fonctionnel du projet ORI-OAI
>>>>> Doc'INSA - INSA de Lyon
>>>>> Mèl : nolwen.huet@insa-lyon.fr
>>>>> Tel : 04 72 43 70 32
>>>>> Web : http://docinsa.insa-lyon.fr

>>>>

>>>
>>> --
>>> Nolwen CLEMENT-HUET
>>> Coordinateur Fonctionnel du projet ORI-OAI
>>> Doc'INSA - INSA de Lyon
>>> Mèl : nolwen.huet@insa-lyon.fr
>>> Tel : 04 72 43 70 32
>>> Web : http://docinsa.insa-lyon.fr
>>> --
>>> Ce message a �t� v�rifi� par
>>> pour des virus ou des polluriels et rien de
>>> suspect n'a �t� trouv�.

>>
>>
>> --
>> Ce message a �t� v�rifi� par
>> pour des virus ou des polluriels et rien de
>> suspect n'a �t� trouv�.

>
>

--
Ce message a

Nolwen Huet
Salut à tous les 2,

Retour d'utilisation : merci Yannick pour les modifications, l'index est bien créé et contient les bonnes valeurs.
Par contre, le module vocabulaire ne créé pas le vocabulaire correspondant.

L'ajout de code que j'ai écrit pour créer le vocabulaire correspondant dans domain/indexingVocabularies.xml :
    <bean id="indexed_thesis_years_vcard"
        class="org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider" init-method="init">
        <property name="categoryId" value="thesis_years" />
        <property name="indexingService" ref="indexingService" />
        <property name="validIndex" value="true"/>
        <property name="indexingXpath"
            value="substring(//dc:date,1,4)" />
    </bean>

Le message d'erreur dans les logs du vocabulary :

ERROR context.ContextLoader initWebApplicationContext[200]  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexed_thesis_years_vcard' defined in class path resource [properties/domain/indexingVocabulary.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'indexingXpath' of bean class [org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]: No property 'indexingXpath' found
Caused by:
org.springframework.beans.InvalidPropertyException: Invalid property 'indexingXpath' of bean class [org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]: No property 'indexingXpath' found
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1085)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
    at org.orioai.commons.spring.PluginContextLoader.createWebApplicationContext(PluginContextLoader.java:94)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

Merci pour votre aide
Nolwen


Yannick Caillaux a écrit :
Salut Vincent,

Le fichier est en pièce jointe.

Donc pour intégrer ça dans indexing :

1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :
<luceneField name ="substring%28%2F%2Fdc%3Adate%2C1%2C4%29" xpathSelect="substring(//dc:date,1,4)" type="Text" />
Penser aussi à ajouter ce qu'il faut dans les 2 autres endroits de liusConfig pour faire de la recherche sur cet élément.

2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer

3) Redéployer le module


Par contre je ne connais pas l'impact réel d'une telle modification dans les autres modules d'ORI-OAI. Donc cette modification est à prendre avec précautions et il me semble dangereux pour la stabilité de l'application d'utiliser ce fichier en production tant qu'il ne sera pas intégré (donc testé) dans la prochaine version d'Ori-Oai-Indexing.

Yannick


Vincent Bonamy a écrit :
Salut Yannick,
Quelle est la modif à faire ?
(peux-tu envoyer directement le fichier .java sur la liste ?)
Merci,
Vincent.


Yannick Caillaux wrote:
Bonjour Nolwen,

Les xpaths donnés par François sont corrects. Par contre le code de Lius n'est pas en mesure de traiter de tels xpaths.
Je t'ai envoyé une version modifiée du code d'une classe pour répondre à ton besoin.

Peux-tu tester pour voir ce que ça donne?

Merci

Yannick

Nolwen Huet a écrit :
Salut François,

J'ai essayé d'utiliser la fonction substring dans liusConfig.xml mais je n'ai pas réussi à obtenir un index.
J'ai lancé Yannick sur l'affaire... à suivre.

A+
Nolwen

Francois Jannin a écrit :
Salut Nolwen,

Pour l'expression Xpath, tu peux utiliser quelque choses comme :

substring(//dc:date,1,4)

ou bien popur le lom :

substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)

François


Nolwen Huet a écrit :
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
    <vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
    <orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr


-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr
-- 
Ce message a �t� v�rifi� par
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.


-- 
Ce message a �t� v�rifi� par
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.





-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a
Nolwen Huet
Bonjour,

Erreur trouvée (due à un mauvais copier/coller) : il faut écrire

<bean id="indexed_thesis_years_vcard"
        class="org.orioai.vocabulary.domain.providers.indexing.OriIndexerVocabularyProvider" init-method="init">

... et ça marche.

Merci Yannick et Yohan.
A+
Nolwen

Nolwen Huet a écrit :
Salut à tous les 2,

Retour d'utilisation : merci Yannick pour les modifications, l'index est bien créé et contient les bonnes valeurs.
Par contre, le module vocabulaire ne créé pas le vocabulaire correspondant.

L'ajout de code que j'ai écrit pour créer le vocabulaire correspondant dans domain/indexingVocabularies.xml :
    <bean id="indexed_thesis_years_vcard"
        class="org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider" init-method="init">
        <property name="categoryId" value="thesis_years" />
        <property name="indexingService" ref="indexingService" />
        <property name="validIndex" value="true"/>
        <property name="indexingXpath"
            value="substring(//dc:date,1,4)" />
    </bean>

Le message d'erreur dans les logs du vocabulary :

ERROR context.ContextLoader initWebApplicationContext[200]  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexed_thesis_years_vcard' defined in class path resource [properties/domain/indexingVocabulary.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'indexingXpath' of bean class [org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]: No property 'indexingXpath' found
Caused by:
org.springframework.beans.InvalidPropertyException: Invalid property 'indexingXpath' of bean class [org.orioai.vocabulary.domain.providers.indexing.OriIndexerVCARDVocabularyProvider]: No property 'indexingXpath' found
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1085)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
    at org.orioai.commons.spring.PluginContextLoader.createWebApplicationContext(PluginContextLoader.java:94)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

Merci pour votre aide
Nolwen


Yannick Caillaux a écrit :
Salut Vincent,

Le fichier est en pièce jointe.

Donc pour intégrer ça dans indexing :

1) Dans le fichier liusConfig, il faut ajouter cette ligne pour le dc :
<luceneField name ="substring%28%2F%2Fdc%3Adate%2C1%2C4%29" xpathSelect="substring(//dc:date,1,4)" type="Text" />
Penser aussi à ajouter ce qu'il faut dans les 2 autres endroits de liusConfig pour faire de la recherche sur cet élément.

2) Remplacer le fichier dans src/org/orioai/indexing/index/indexer

3) Redéployer le module


Par contre je ne connais pas l'impact réel d'une telle modification dans les autres modules d'ORI-OAI. Donc cette modification est à prendre avec précautions et il me semble dangereux pour la stabilité de l'application d'utiliser ce fichier en production tant qu'il ne sera pas intégré (donc testé) dans la prochaine version d'Ori-Oai-Indexing.

Yannick


Vincent Bonamy a écrit :
Salut Yannick,
Quelle est la modif à faire ?
(peux-tu envoyer directement le fichier .java sur la liste ?)
Merci,
Vincent.


Yannick Caillaux wrote:
Bonjour Nolwen,

Les xpaths donnés par François sont corrects. Par contre le code de Lius n'est pas en mesure de traiter de tels xpaths.
Je t'ai envoyé une version modifiée du code d'une classe pour répondre à ton besoin.

Peux-tu tester pour voir ce que ça donne?

Merci

Yannick

Nolwen Huet a écrit :
Salut François,

J'ai essayé d'utiliser la fonction substring dans liusConfig.xml mais je n'ai pas réussi à obtenir un index.
J'ai lancé Yannick sur l'affaire... à suivre.

A+
Nolwen

Francois Jannin a écrit :
Salut Nolwen,

Pour l'expression Xpath, tu peux utiliser quelque choses comme :

substring(//dc:date,1,4)

ou bien popur le lom :

substring(//lom:lifeCycle/lom:contribute[lom:role/lom:value='author']/lom:date/lom:dateTime,1,4)

François


Nolwen Huet a écrit :
Salut Yohan,

Merci pour ta réponse.

Le problème d'un vocabulaire statique est qu'il faut lui ajouter une nouvelle valeur tous les ans (et plus pour le retrospectif) ou avoir un vocabulaire beaucoup plus important que les valeurs réellement présentes dans l'index et à ce moment là, enlever pour l'affichage celles qui ne sont pas utilisées.
D'où mon idée d'un vocabulaire dynamique. En particulier, pour préciser ma question, je pensais le créer à partir d'un nouvel index qui ne contiendrait que la partie année de l'élément dc:date. Le problème est que Lucène attend un XPath et que je ne vois pas comment l'écrire...

Si je ne trouve pas comment faire autrement, je suivrai ton idée.

A+
Nolwen

Yohan Colmant a écrit :
Salut Nolwen,

Une première idée:

--> un vocabulaire statique avec un term par année. Ensuite, chaque term est
de la forme
<vdex:term validIndex="true">
    <vdex:termIdentifier>2009</vdex:termIdentifier>
    <vdex:caption>
    <vdex:langstring language="fr">Année 2009</vdex:langstring>
    </vdex:caption>
    <vdex:metadata>
    <orioai:value>2009*</orioai:value>
    </vdex:metadata>
</vdex:term>

--> tu crées une recherche thématique utilisant ce vocabulaire et recherchant
sur la métadonnée //dc:date

Normalement avec cette config, en cliquant sur "Année 2009" dans le moteur de
recherche, la recherche qui sera faite sera //dc:date=2009* et renverra donc
toutes les fiches où dc:date commence par 2009

Yohan

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr


-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr
-- 
Ce message a �t� v�rifi� par
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.


-- 
Ce message a �t� v�rifi� par
pour des virus ou des polluriels et rien de
suspect n'a �t� trouv�.





-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

-- 
Nolwen CLEMENT-HUET
Coordinateur Fonctionnel du projet ORI-OAI
Doc'INSA - INSA de Lyon
Mèl : nolwen.huet@insa-lyon.fr
Tel : 04 72 43 70 32
Web : http://docinsa.insa-lyon.fr 

--
Ce message a

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur « Enregistrer les paramètres » pour activer vos changements.
Sujet clos