Fork me on GitHub

Solr server for Lutece


This plugin embeds SolR server in Lutece portal. The goal is to expose SolR read only for everyone and read/write for lutece portal administrators.

This plugin can be use with module-solrserver-directory

Solr will be accessible at http://lutece-portal-uri/solr/

Request solR on this URI http://lutece-portal-uri/solr/select/?q=id:*

Post content in solR on this URI http://lutece-portal-uri/solr/update/...
You need to be authentify as a Lutece admin to be able to access /solr/update

Index CSV files

One can index CSV files in solR embeded in Lutece portal from the backoffice

The CSV file must be format like :

The column names are important.
You need to have a "id" column to identify a document in SolR.
Column suffix can be "_t" for text content and "_i" for integer content.


Visit SolrQuerySyntax to learn how to request solR


It's possible to request SolR throw javascript :
    url: "/solr/select?q=*:*&facet=true&facet.field=EX1&rows=0&wt=json&indent=on",
    success: function(data){
        $.each(data.facet_counts.facet_fields.EX1, function(i,EX1){
dataType: 'jsonp',
jsonp: 'json.wrf'