Re: fl=value equals?

2015-11-13 Thread simon
Please do push your script to github - I (re)-compile custom code infrequently and never remember how to setup the environment. On Thu, Nov 12, 2015 at 5:14 AM, Upayavira wrote: > Okay, makes sense. As to your question - making a new ValueSourceParser > that handles 'equals'

Re: fl=value equals?

2015-11-13 Thread William Bell
How about we just add a new function called equals() and put into the solution? On Fri, Nov 13, 2015 at 11:36 AM, simon wrote: > Please do push your script to github - I (re)-compile custom code > infrequently and never remember how to setup the environment. > > On Thu, Nov

Re: fl=value equals?

2015-11-12 Thread billnbell
fl=$b tells me it works. Or I can do a sort=$b asc The idea is to calculate a score but only include geo if it is not a national search. Do we want to send in a parameter into the QT which allows us to omit geo from national searches Bill Bell Sent from mobile > On Nov 11, 2015, at 1:15

Re: fl=value equals?

2015-11-12 Thread Upayavira
Okay, makes sense. As to your question - making a new ValueSourceParser that handles 'equals' sounds pretty straight-forward. If it helps, I have somewhere an Ant project that will unpack Solr and compile custom components against it. I could push that to github or something. Upayavira On Thu,

Re: fl=value equals?

2015-11-11 Thread Upayavira
I concur with Jan - what does b= do? Also asking, how did you identify that it worked? Upayavira On Wed, Nov 11, 2015, at 02:58 AM, William Bell wrote: > I was able to get it to work kinda with a map(). > > http://localhost:8983/solr/select?q=*:*=1= >

Re: fl=value equals?

2015-11-10 Thread Jan Høydahl
Where is your “b” parameter used? I think that instead of trying to set a new “b” http param (which solr will not evaluate as a function), you should instead try to insert your function or switch qParser directly where the “b” param is used, e.g. in a bq or similar. A bit heavy weight, but you

fl=value equals?

2015-11-10 Thread William Bell
We are trying to look at a value, and change another value based on that. For example, for national search we want to pass in radius=national, and then set another variable equal to 0, else set the other variable = to geodist() calculation. We tried {!switch} but this only appears to work on

Re: fl=value equals?

2015-11-10 Thread William Bell
I was able to get it to work kinda with a map(). http://localhost:8983/solr/select?q=*:*=1= map($radius,1,1,0,geodist()) Where 1= National Do you have an example of a SearchComponent? It would be