Re: Solr learning to rank features question

2017-09-13 Thread Ryan Yacyshyn
haha.. all good! I'm trying to find my way there now too. On Wed, Sep 13, 2017, 17:01 Diego Ceccarelli wrote: > Hey man, how's life? > Are you at the conference? I'm going a the reception now, see you there in > case :) > > On 29 Aug 2017 12:10, "Brian Yee" wrote: > > > Thank you Diego! This wo

Re: Solr learning to rank features question

2017-09-13 Thread Diego Ceccarelli
Hey man, how's life? Are you at the conference? I'm going a the reception now, see you there in case :) On 29 Aug 2017 12:10, "Brian Yee" wrote: > Thank you Diego! This works with some small changes. My feature ended up > looking like this: > > { > "name" : "FeatureA", > "store" : "commonFea

Re: Solr learning to rank features question

2017-08-29 Thread Brian Yee
Thank you Diego! This works with some small changes. My feature ended up looking like this: { "name" : "FeatureA", "store" : "commonFeatureStore", "class" : "org.apache.solr.ltr.feature.SolrFeature", "params" : { "q" : "{!func}if(gt(ms(CutoffDate,NOW),0),exists(query({!v= PreZones:${zo

Re: Solr learning to rank features question

2017-08-29 Thread Diego Ceccarelli
Hi Brian, The plugin doesn't allow you to express multiple function queries in the same feature. Maybe in this case you can express both the tw queries in one unique function query, using the if function. Something like: "fq":"if(gt(ms(NOW,mydatefield),0,query(PreCutOffZones:${zone}), query( Pos

Solr learning to rank features question

2017-08-29 Thread Brian Yee
Hello, I have a somewhat complex solr filter query that I am hoping to turn into a feature for learning to rank, but I am not sure if it's possible. I would like to OR two fq together for one of my features. I have a cutoff date and I need to check one field if NOW is before the cutoff, and a diff

Fwd: Solr learning to rank features question

2017-08-29 Thread Brian Yee
Hello, I have a somewhat complex solr filter query that I am hoping to turn into a feature for learning to rank, but I am not sure if it's possible. I would like to OR two fq together for one of my features. I have a cutoff date and I need to check one field if NOW is before the cutoff, and a diff