did you push 'syns.txt' to ZooKeeper into the same place your schema is? Best, Erick
On Mon, Jan 29, 2018 at 7:34 AM, beji dhia <dhiabej...@gmail.com> wrote: > hello, > I'm beginner with solrand I have some difficulties to manipulate resources. > In fact, I m using solr 7.2. in cloud mode using zookeper. > 1/ I create collection named films > 2/ I wanted to add synonyms file called "syns.txt" so I added it into > "server/solr/configsets/_default/conf/" > 3/ i execute command line > > curl -X POST -H 'Content-type:application/json' --data-binary '{ > "replace-field-type":{ > "name":"_text_", > "class":"solr.TextField", > "positionIncrementGap":"100", > "analyzer":{ > "charFilters":[{ > "class":"solr.PatternReplaceCharFilterFactory", > "replacement":"$1$1", > "pattern":"([a-zA-Z])\\\\1+" }], > "tokenizer":{ > "class":"solr.UAX29URLEmailTokenizerFactory" }, > "filters":[{ > "class":"solr.StopFilterFactory", > "ignoreCase":true, > "words":"stopwords.txt" > }, > { "class":"solr.LowerCaseFilterFactory" }, > { "class":"solr.ASCIIFoldingFilterFactory" }, > { "class":"solr.EnglishPossessiveFilterFactory" }, > { "class":"solr.SynonymFilterFactory","synonyms":"syns.txt"} > ]}}, > "replace-field" : { > "name":"_text_", > "type":"_text_", > "stored":true, > "multiValued":true, > "indexed":true > } > }' http://localhost:8983/solr/films/schema > > the problem is that I get Can't find resource 'syns.txt' in classpath or > '/configs/films' cwd=/home/solr-7.2.1/server\nCan't find resource > 'syns.txt' in classpath or '/configs/films'. > > Can anyone help me please?