Re: Custom sort function

2019-11-27 Thread Sripra deep
My exact requirement is, I will have a new field for a set of documents for sorting. So the number of fields is growing like 10k fields(custom_sort1,custom_sort2.,etc), for 10k groups, each group grouping a set of documents. Since the documents can reside in more than one group I cannot use a sing

Re: Custom sort function

2019-11-27 Thread Jörn Franke
Maybe can you do it as part of the loading to calculate the score? Which Solr version are you using? Are you doing some heavily lifting into the constructor or your filter? > Am 27.11.2019 um 09:34 schrieb Sripra deep : > >  > Hi Jörn Franke, > > I modified the custom function to just return

Re: Custom sort function

2019-11-27 Thread Sripra deep
Hi Jörn Franke, I modified the custom function to just return a constant value as 1.0 for all the docs and ran the load again, the latency is worst like more than 20sec. The filter I am using will fetch 15k documents (so this function is called 15k times). And if I don't call this function in my

Re: Custom sort function

2019-11-26 Thread Jörn Franke
And have you tried how fast it is if you don’t do anything in this method? > Am 27.11.2019 um 07:52 schrieb Sripra deep : > > Hi Team, > I wrote a custom sort function that will read the field value and parse > and returns a float value that will be used for sorting. this field is > indexed, s

Re: Custom sort function

2019-11-26 Thread Jörn Franke
What methods do you use for your condition checks? Regexes ? Then you could for instance precompile the regexes (saves a lot of time). Any other method? I don’t ask about the exact condition check but only the methods you use within those checks. > Am 27.11.2019 um 07:52 schrieb Sripra deep : >