EPrints Technical Mailing List Archive

Message: #05205


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Xapian indexing



Hello,

we use Xapian for our simple search.


The Xapian indexing  is correct when a reference is validated in the archive (eprint_status:buffer => archive)

But, if the correction is made on a  "namedsets" field, the document indexing is not launched!
If the modification is made on a  "type text" field, indexing is launched.
Have you ever had this problem reported?  How to make sure re-indexing is launched on any field type modifications?

Sorry for my English.

Sincerly
Josée Lessard


eprint_search_simple.pl

$c->{search}->{simple} =
{
    search_fields => [
        {
            id => 'q',
            meta_fields => [
                'documents',
                'eprintid',
                'title',
                'abstract',
                'date',
                'type',
                'statut_indexation',
                'indexeur',
...
            ]
        },
    ],
    preamble_phrase => 'cgi/search:preamble',
    title_phrase => 'cgi/search:simple_search',
    citation => 'result',
    page_size => 20,
    order_methods => {
        'byyear'      => '-date/creators_name/title',
        'byyearoldest'     => 'date/creators_name/title',
        'byname'       => 'creators_name/-date/title',
        'bytitle'      => 'title/creators_name/-date',
        'bytype'      => 'type/-date/title',
        'byti'             => '-full_text_status/-date/title',
    },
    default_order => 'byyear',
    show_zero_results => 1,
};



/opt/www/eprints-3.3.12/archives/agritrop/cfg/namedsets/statut_indexation


a_classer
a_indexer
a_indexer_indexeur
en_cours_d_indexation
a_indexer_electronique
a_indexer_papier
document_a_numeriser
notice_indexee


__________________________________

Correction eprints



Résultat :


title

"Publications et travaux du SAR 1996"

eprint_status

"archive"

statut_indexation

"en_cours_d_indexation"


Indexation Xapian :

  • title:1996
  • title:du
  • title:et
  • title:publications
  • title:sar
  • title:travaux
  • statut_indexation:notice_indexee
  • lastmod:20150909

 

 

 

--
--

Josée Lessard

Documentaliste

Cirad-Dgdrs-Délégation à l'information scientifique et technique

TA 183/05 - Avenue Agropolis - 34398 Montpellier Cedex 5 (Tél: +33 4 67 61 57 37)