Recherche thématique sur les années DC

  • 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 = '1:533ec44ae302b5d7530b5401999f21a4' 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: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:533ec44ae302b5d7530b5401999f21a4' 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: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:2bc70e49113a7dc8024625f3497f53ed' 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,\n<div><br></div>\n<div>Je souhaite mettre en place une recherche thématique sur les années pour le format DC.</div>\n<div><br></div>\n<div>J&#39;ai créé le vocabulaire :</div>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;bean id=&quot;indexed_dc_years&quot;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>      class=&quot;org.orioai.vocabulary.domain.providers.indexing.OriIndexerVocabularyProvider&quot; init-method=&quot;init&quot;&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;categoryLabels&quot;&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;map&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;entry key=&quot;fr&quot; value=&quot;Ann&amp;#233;e&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;entry key=&quot;en&quot; value=&quot;Year&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/map&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/property&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;categoryId&quot; value=&quot;indexed_dc_years&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;categoryLang&quot; value=&quot;fr&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;indexingService&quot; ref=&quot;indexingService&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;indexingXpath&quot; value=&quot;substring(//dc:date,1,4)&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>       &lt;property name=&quot;sort&quot; value=&quot;reverse&quot; /&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>   &lt;/bean&gt;</p></blockquote>\n</blockquote>\n<div><br></div>\n<div>\nJ&#39;ai créé l&#39;index (cet index existe dans le fichier lius, je l&#39;ai simplement décommenté) :</div>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p> &lt;luceneField name =&quot;substring%28%2F%2Fdc%3Adate%2C1%2C4%29&quot; xpathSelect=&quot;substring(//dc:date,1,4)&quot; type=&quot;Text&quot; /&gt;</p></blockquote>\n<div><br></div>\n<div>J&#39;ai configuré la recherche thématique :</div>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\">\n<p><span class=\"\" style=\"white-space:pre\"> </span>&lt;!-- Recherche thématique par annee --&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;thematic_search key=&quot;years&quot; vocabulary_id=&quot;indexed_dc_years&quot; </p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>                                         keep_navigation_session=&quot;false&quot; full_tree=&quot;false&quot;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p>                                         show_empty_categories=&quot;false&quot;&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;metadatas&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;metadata&gt;substring(//dc:date,1,4)&lt;/metadata&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/metadatas&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;hidden_fields&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;hidden_field vocabularyId=&quot;search_metadata_namespaces:dc&quot;&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;metadata&gt;md-ori-oai-namespace&lt;/metadata&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/hidden_field&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;hidden_field vocabularyId=&quot;search_repositories_href:ori_oai_workflow&quot;&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>             &lt;metadata&gt;md-ori-oai-repository(<a href=\"http://www.openarchives.org/OAI/2.0/oai_dc/\">http://www.openarchives.org/OAI/2.0/oai_dc/</a>)&lt;/metadata&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>    &lt;/hidden_field&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/hidden_fields&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;result_fields id=&quot;dc_no_fulltext&quot;/&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;sort_fields id=&quot;date_title_author&quot;/&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;rss_fields id=&quot;notice&quot;/&gt;</p></blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex\"><p><span class=\"\" style=\"white-space:pre\"> </span>&lt;/thematic_search&gt;<span class=\"\" style=\"white-space:pre\"> </span></p></blockquote>\n</blockquote>\n<div><br></div>\n<div><br></div>\n<div>Le PB : aucun résultat n&#39;est retourné.</div>\n<div><br></div>\n<div>Le module indexing retourne lors de la requête pour la valeur indexée &quot;substring(//dc:date,1,4)&quot; un ensemble de résultats différents de celui généré par le vocabulaire créé précédemment.</div>\n<div><br></div>\n<div>Qu&#39;ai-je mal fait ?</div>\n<div><br></div>\n<div>Merci<br clear=\"all\">Sébastien<br>\n</div>\n</div>\n', created = 1507765065, expire = 1507851465, headers = '', serialized = 0 WHERE cid = '4:2bc70e49113a7dc8024625f3497f53ed' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
1 message / 0 nouveaux
Dernière contribution
sebastien.pouillet
Recherche thématique sur les années DC
Bonjour,

Je souhaite mettre en place une recherche thématique sur les années pour le format DC.

J'ai créé le vocabulaire :

<bean id="indexed_dc_years"

      class="org.orioai.vocabulary.domain.providers.indexing.OriIndexerVocabularyProvider" init-method="init">

       <property name="categoryLabels">

<map>

<entry key="fr" value="Ann&#233;e" />

<entry key="en" value="Year" />

</map>

</property>

       <property name="categoryId" value="indexed_dc_years" />

       <property name="categoryLang" value="fr" />

       <property name="indexingService" ref="indexingService" />

       <property name="indexingXpath" value="substring(//dc:date,1,4)" />

       <property name="sort" value="reverse" />

   </bean>


J'ai créé l'index (cet index existe dans le fichier lius, je l'ai simplement décommenté) :

 <luceneField name ="substring%28%2F%2Fdc%3Adate%2C1%2C4%29" xpathSelect="substring(//dc:date,1,4)" type="Text" />


J'ai configuré la recherche thématique :

<!-- Recherche thématique par annee -->

<thematic_search key="years" vocabulary_id="indexed_dc_years" 

                                         keep_navigation_session="false" full_tree="false"

                                         show_empty_categories="false">

<metadatas>

<metadata>substring(//dc:date,1,4)</metadata>

</metadatas>

<hidden_fields>

<hidden_field vocabularyId="search_metadata_namespaces:dc">

<metadata>md-ori-oai-namespace</metadata>

</hidden_field>

<hidden_field vocabularyId="search_repositories_href:ori_oai_workflow">

            <metadata>md-ori-oai-repository(http://www.openarchives.org/OAI/2.0/oai_dc/)</metadata>

   </hidden_field>

</hidden_fields>

<result_fields id="dc_no_fulltext"/>

<sort_fields id="date_title_author"/>

<rss_fields id="notice"/>

</thematic_search>



Le PB : aucun résultat n'est retourné.

Le module indexing retourne lors de la requête pour la valeur indexée "substring(//dc:date,1,4)" un ensemble de résultats différents de celui généré par le vocabulaire créé précédemment.

Qu'ai-je mal fait ?

Merci
Sébastien