How can I enable scoring on a DocList rather than a DocSet

2021-02-25 Thread krishan goyal
Hi, I want to match and score on a sorted DocList. The use case is something like this - Cache sorted results (with scores) of certain queries in the queryCache (This is a DocList) - New queries are superset of these cached queries and have dynamic scoring clauses - At runtime, I

Re: How to use query function inside a function query in Solr LTR

2020-09-22 Thread krishan goyal
This is solved by using local parameters. So {!func}sub(num_tokens_int,query({!dismax qf=field_name v=${text}})) works On Mon, Sep 21, 2020 at 7:43 PM krishan goyal wrote: > Hi, > > I have use cases of features which require a query function and some more > math on top of the r

How to use query function inside a function query in Solr LTR

2020-09-21 Thread krishan goyal
Hi, I have use cases of features which require a query function and some more math on top of the result of the query function Eg of a feature : no of extra terms in the document from input text I am trying various ways of representing this feature but always getting an exception java.lang.Runtim

Solr LTR Performance Issues

2020-09-21 Thread krishan goyal
I was observing a high degradation in performance when adding more features to my solr LTR model even if the model complexity (no of trees, depth of tree) remains same. I am using the MultipleAdditiveTreesModel model Moreover, if model complexity increases keeping no of features constant, performa

Re: Issues deploying LTR into SolrCloud

2020-09-21 Thread krishan goyal
Not sure how solr cloud works but if your still facing issues, can try this 1. Deploy the features and models as a _schema_feature-store.json and _schema_model-store.json file in the right config set. 2. Can either deploy to all nodes (works for me) or add these files to confFiles in /replication

Unable to get test cases running in Intellij via maven / ant

2020-09-10 Thread krishan goyal
Hi, I downloaded the solr source from https://github.com/apache/lucene-solr and checked out to branch_7_7 Configured intellij using the steps on https://cwiki.apache.org/confluence/display/LUCENE/HowtoConfigureIntelliJ. Configured the project SDK too as mentioned. Facing the following problems

Re: Creating a phrase match feature in LTR

2020-09-09 Thread krishan goyal
Hi, Can anyone help me on this ? I am stuck on this for days. On Tue, Sep 8, 2020 at 3:02 PM krishan goyal wrote: > Thanks Dmitry. > > Using > "q": "{!complexphrase inOrder=true}fieldName:${input}" > works for single token queries but raises same ex

Re: Creating a phrase match feature in LTR

2020-09-08 Thread krishan goyal
lrFeature", > "params": { > "q": "{!complexphrase inOrder=true}fieldName:${input}" > }, > "store": "_DEFAULT_" > } > > or even: > > { > "name": "phraseMatch", > "class":

Creating a phrase match feature in LTR

2020-08-24 Thread krishan goyal
Hi, I am trying to create a phrase match feature (what "pf" does in dismax/edismax parsers) I've tried various ways to set it up { "name": "phraseMatch", "class": "org.apache.solr.ltr.feature.SolrFeature", "params": { "q": "{!complexphrase inOrder=true}query(fieldName:${input})" },

Re: Replication of Solr Model and feature store

2020-08-07 Thread krishan goyal
R 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?

Re: Replication of Solr Model and feature store

2020-07-28 Thread krishan goyal
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 > wrote: > > > Bump. Any one has an idea how to pro

Re: Replication of Solr Model and feature store

2020-07-22 Thread krishan goyal
goyal wrote: > Bump. Any one has an idea how to proceed here ? > > On Wed, Jul 8, 2020 at 5:41 PM krishan goyal > wrote: > >> Hi, >> >> How do I enable replication of the model and feature store ? >> >> Thanks >> Krishan >> >

Re: Replication of Solr Model and feature store

2020-07-22 Thread krishan goyal
Bump. Any one has an idea how to proceed here ? On Wed, Jul 8, 2020 at 5:41 PM krishan goyal wrote: > Hi, > > How do I enable replication of the model and feature store ? > > Thanks > Krishan >

Re: Solr fails to start with G1 GC

2020-07-16 Thread krishan goyal
HeapRegionSize=8m \ > -XX:MaxGCPauseMillis=200 \ > -XX:+UseLargePages \ > -XX:+AggressiveOpts \ > " > > wunder > Walter Underwood > wun...@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > > On Jul 15, 2020, at 4:24 AM, krishan goyal > wrote: > &g

Solr fails to start with G1 GC

2020-07-15 Thread krishan goyal
Hi, I am using Solr 7.7 I am trying to start my solr server with G1 GC instead of the default CMS but the solr service doesn't get up. The command I use to start solr is bin/solr start -p 25280 -a "-Dsolr.solr.home= -Denable.slave=true -Denable.master=false -XX:+UseG1GC -XX:MaxGCPauseMillis=500

Replication of Solr Model and feature store

2020-07-08 Thread krishan goyal
Hi, How do I enable replication of the model and feature store ? Thanks Krishan

LTR feature computation caching

2020-07-07 Thread krishan goyal
Hi, I am adding few features to my LTR model which re-uses the same value for different features. For example, I have features that compare different similarities for each document with the input text: "token1 token2 token3 token4" My features are - No of common terms - No of common terms

Solr boolean query with phrase match

2019-03-24 Thread krishan goyal
Hi, I want to execute a solr query with boolean clauses using the eDismax Query Parser. But the phrase match is executed on the complete query and not on the individual queries which are created. Is it possible to have both boolean conditions in query and phrase matches ? Eg: Query - (gear