Hi Shawn,

thanks for your answer.

I apologise for my english, for "floating results" I meant random results
in queries.

As far as I know, we should split the synonyms file because of zookeeper,
there is a limit in the size of files (1MB).
All my synonyms are about 10MB.

I have tried again in dev environment these steps:
1. put into zookeeper an updated synonym file sinonimi_freeling/sfak (added
just one new synonym )
2. reload the core using Core Admin UI

Then I started to receive random results executing a simple query like:

http://src-dev-3:8080/solr/0bis/select/?q=smartphone&fl=*&rows=24

There are random numFound in

<result name="response" numFound="641" start="0" maxScore="4.653946">

and the order of documents vary.

So, now I'm pretty afraid to update such synonyms because I cannot stop and
start all instances in production.

I'll take a look at how reload the entire collection through the Collection
API.

thanks again for your suggestions.

On Fri, Apr 17, 2015 at 3:04 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 4/17/2015 6:02 AM, Vincenzo D'Amore wrote:
> > I have solr synonyms stored in multiple files as defined in the schema:
> >
> > <!ENTITY sinonimi_freeling
> >
> "sinonimi_freeling/sfaa,sinonimi_freeling/sfab,sinonimi_freeling/sfac,sinonimi_freeling/sfad,sinonimi_freeling/sfae,sinonimi_freeling/sfaf,sinonimi_freeling/sfag,sinonimi_freeling/sfah,sinonimi_freeling/sfai,sinonimi_freeling/sfaj,sinonimi_freeling/sfak">
> >
> > so that I can specify synonym resource in this way:
> >
> > <filter class="solr.SynonymFilterFactory" synonyms="&sinonimi_freeling;"
> > expand="false" ignoreCase="true" />
> >
> > I'm quite worried because I tried to update one synonym file adding at
> the
> > end the new synonyms. SolrCloud didn't update its synonyms list.
> > So I reloaded the core and then I started to have floating results
> querying
> > solrcloud.
> >
> > I had to stop and restart all the tomcat instances to stop this strange
> > behaviour.
> >
> > Is there a best practice to update synonyms when you are using
> > SynonymFilterFactory?
> >
> > How can I updated the synonym resources, why cannnot I simply upload the
> > new file into zookeeper?
>
> I've not encountered the !ENTITY syntax or used more than one synonym
> file.  I'll have to take your word for it that this works.
>
> When you update a config resource, you must reload or restart for it to
> take effect.  If the resource is used in index analysis, you must
> reindex after reloading.  Resources used in query analysis will take
> effect immediately.
>
> With SolrCloud, you should reload the entire collection (with the
> Collections API), not just a core (with the CoreAdmin API).
>
> I don't know what you mean by "floating results" above.
>
> Thanks,
> Shawn
>
>

Reply via email to