Hi Monica, Replication is working fine for me. You just have to add the _schema_feature-store.json and _schema_model-store.json to confFiles under /replication in solrconfig.xml
I think the issue you are seeing is where the model is referencing a feature which is not present in the feature store. Or the feature weights for the model are incorrect. The issue in solr is that it doesn't return you the right exception but throws a model not found exception Try these ways to fix it 1. verify feature weights are < 1. I am not sure why having weights > 1 is an issue but apparently it is in some random cases 2. verify all features used in the model file _schema_model-store.json are actually present in the feature file _schema_feature-store.json. Another issue with solr LTR is if you have a corrupt model/feature file, you can't update/delete it via the API in some cases. you would need to change the respective _schema_model-store.json and _schema_feature-store.json files and reload the cores for the changes to take effect. Please try these and let me know if the issue still exists On Thu, Aug 6, 2020 at 11:18 PM Monica Skidmore < monica.skidm...@careerbuilder.com> wrote: > I would be interested in the answer here, as well. We're using LTR > successfully on Solr 7.3 and Solr 8.3 in cloud mode, but we're struggling > to load a simple, test model on 8.3 in master/slave mode. The > FeatureStore appears to load, but we're not sure it's loading correctly, > either. Here are some details from the engineer on our team who is leading > that effort: > > "I'm getting a ClassCastException when uploading a Model. Using the > debugger, was able to see the line throwing the exception is: > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:488) > > Apparently it cannot find: org.apache.solr.ltr.model.LinearModel, although > the features appear to be created without issues with the following class: > org.apache.solr.ltr.feature.FieldValueFeature > > Another thing we were able to see is that the List<Feature> features has a > list of null elements, so that made us think there may be some issues when > creating the instances of Feature. > > We had begun to believe this might be related to the fact that we are > running Solr in Master/Slave config. Was LTR ever tested on non-cloud > deployments?? > > Any help is appreciated." > > Monica D Skidmore > Lead Engineer, Core Search > > > > CareerBuilder.com <https://www.careerbuilder.com/> | Blog < > https://www.careerbuilder.com/advice> | Press Room < > https://press.careerbuilder.com/> > > > > > On 7/24/20, 7:58 AM, "Christine Poerschke (BLOOMBERG/ LONDON)" < > cpoersc...@bloomberg.net> wrote: > > Hi Krishan, > > Could you share what version of Solr you are using? > > And I wonder if the observed behaviour could be reproduced e.g. with > the techproducts example, changes not applying after reload [1] sounds like > a bug if so. > > Hope that helps. > > Regards, > > Christine > > [1] > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flucene.apache.org%2Fsolr%2Fguide%2F8_6%2Flearning-to-rank.html%23applying-changes&data=01%7C01%7CMonica.Skidmore%40careerbuilder.com%7C65581e5e79414c90832508d82fc8ce21%7C7cc1677566a34e8b80fd5b1f1db15061%7C0&sdata=mMqgPhnkjb8h7ETQNaySOBJQ8x%2FP2dtzM%2FgSE1K1FZg%3D&reserved=0 > > From: solr-user@lucene.apache.org At: 07/22/20 14:00:59To: > solr-user@lucene.apache.org > Subject: Re: Replication of Solr Model and feature store > > Adding more details here > > I need some help on how to enable the solr LTR model and features on > all > nodes of a solr cluster. > > I am unable to replicate the model and the feature store though from > any > master to its slaves with the replication API ? And unable to find any > documentation for the same. Is replication possible? > > Without replication, would I have to individually update all nodes of a > cluster ? Or can the feature and model files be read as a resource > (like > config or schema) so that I can replicate the file or add the file to > my > deployments. > > > On Wed, Jul 22, 2020 at 5:53 PM krishan goyal <krishan1...@gmail.com> > wrote: > > > Bump. Any one has an idea how to proceed here ? > > > > On Wed, Jul 8, 2020 at 5:41 PM krishan goyal <krishan1...@gmail.com> > > wrote: > > > >> Hi, > >> > >> How do I enable replication of the model and feature store ? > >> > >> Thanks > >> Krishan > >> > > > > > >