lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujatha Arun <suja.a...@gmail.com>
Subject Re: XInclude in data-config.xml
Date Fri, 12 Apr 2013 12:16:03 GMT
Hi Andre,

In 3.6.1 version when we used the entities in schema.xml for language
analyzers ,it  gave errors on server restart and core would not load .

Regards,
Sujatha


2013/4/12 Andre Bois-Crettez <andre.bois@kelkoo.com>

> On 04/12/2013 09:31 AM, stockii wrote:
>
>> hello.
>>
>> is it possible to include some entities with XInclude in my
>> data-config.xml?
>>
>
> We first struggled with XInclude, and then switched to use custom
> entities, which worked much better for our needs (reusing  common parts
> in several SearchHandlers).
> ex. in solrconfig.xml :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE config [
> <!ENTITY solrconfigcommon SYSTEM "solrconfig_common.xml">
>         ]>
> <config>
> ...
> <requestHandler name="search" class="solr.SearchHandler" default="true">
> <lst name="defaults">
> &solrconfigcommon;
> </lst>
> ...
>
> </config>
>
> in solrconfig_common.xml :
>
> <!-- XML fragment used as entity in solrconfig.xml -->
> <str name="echoParams">explicit</**str>
> <str name="defType">edismax</str>
> <str name="qf">title^4 description^1</str>
> <str name="q">*:*</str>
> <str name="q.alt">*:*</str>
> <str name="rows">20</str>
> <str name="q.op">AND</str>
> <str name="pf">title~2^2.0</str>
>
> HTH
> André
>
>
> Kelkoo SAS
> Société par Actions Simplifiée
> Au capital de € 4.168.964,30
> Siège social : 8, rue du Sentier 75002 Paris
> 425 093 069 RCS Paris
>
> Ce message et les pièces jointes sont confidentiels et établis à
> l'attention exclusive de leurs destinataires. Si vous n'êtes pas le
> destinataire de ce message, merci de le détruire et d'en avertir
> l'expéditeur.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message