Hi Janit,

we had same problem, and used an XML External Entity.

First we moved all files into a subdirectory inside collection config.

/configs/collectionName/custom_synonyms/...

Then inside your schema.xml you can reference all files in you need using
ENTITY:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE schema [

<!ENTITY custom_synonyms
"custom_synonyms/file1,custom_synonyms/file2,custom_synonyms/file3"
>
]>
<schema name="example" version="1.5" xmlns:xi="
http://www.w3.org/2001/XInclude";>
[... omissis...]

At last, when you need, use &custom_synonyms;

For example:

<filter class="solr.SynonymFilterFactory" synonyms="&custom_synonyms;" />

Hope this helps.

Best,
Vincenzo




On Mon, Feb 1, 2016 at 11:22 AM, Janit Anjaria <jani...@gmail.com> wrote:

> Hi,
>
> We had a similar problem. We solved it by splitting up the file into
> various
> files < 1MB.
>
> In our case, the comma separated list of synonym file names did not work.
> So
> we actually had consecutive synonym filters defined in the required order
> with the corresponding synonym file name. I think this should solve the
> problem.
>
> Janit.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/SolrCloud-with-large-synonym-files-tp3473568p4254370.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Vincenzo D'Amore
email: v.dam...@gmail.com
skype: free.dev
mobile: +39 349 8513251

Reply via email to