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 : >

Re: Custom Sort option to apply at SOLR index

2018-01-09 Thread padmanabhan
Thank you Erick, it worked. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Custom Sort option to apply at SOLR index

2017-08-02 Thread Erick Erickson
I guess I don't see the problem, just store it as a string and sort on the field. # sorts before numbers which sort before characters. Or I'm reading the ASCII chart wrong. Best, Erick On Wed, Aug 2, 2017 at 6:55 AM, padmanabhan wrote: > Hello Solr Geeks, > > Am newbie to SOLR. I have a require

Re: Custom Sort(0.2*relervanceScore + 0.8*numberic_field_value)

2013-08-19 Thread 刘健
7 AM To: "solr-user"; Subject: Re: Custom Sort(0.2*relervanceScore + 0.8*numberic_field_value) Edismax applies the multiplicative boost ("boost") after applying the additive boost functions ("bf"). I think (0.2*relervance score + 0.8* specified_numberic_fie

Re: Custom Sort(0.2*relervanceScore + 0.8*numberic_field_value)

2013-08-19 Thread Jack Krupansky
Edismax applies the multiplicative boost ("boost") after applying the additive boost functions ("bf"). I think (0.2*relervance score + 0.8* specified_numberic_field) should be equivalent to: 0.2*(relevance score + (0.8/0.2)* specified_numeric_field) or 0.2*(relevance score + 4.0* specified_nu

Re: Custom sort

2009-07-10 Thread dontthinktwice
okobloko wrote: > > It could be that you should be providing an implementation of > "SortComparatorSource" > I have missed the earlier part of this thread, I assume you're trying to > implement some form of custom search? > > B > Yes, exactly. What I'm trying to do is sort the results of a

Re: Custom sort

2009-07-10 Thread Ben
It could be that you should be providing an implementation of "SortComparatorSource" I have missed the earlier part of this thread, I assume you're trying to implement some form of custom search? B dontthinktwice wrote: Marc Sturlese wrote: I have been able to create my custom field. The

Re: Custom sort

2009-07-10 Thread dontthinktwice
Marc Sturlese wrote: > > I have been able to create my custom field. The problem is that I have > laoded in the solr core a couple of HashMaps > from a DB with values that will influence in the sort. My problem is that > I don't know how to let my custom sort have access to this HashMaps. > I a

Re: Custom sort

2009-05-29 Thread Marc Sturlese
I have been able to create my custom field. The problem is that I have laoded in the solr core a couple of HashMaps from a DB with values that will influence in the sort. My problem is that I don't know how to let my custom sort have access to this HashMaps. I am a bit confused now. I think that w

Re: Custom sort

2009-05-26 Thread Yonik Seeley
The custom Field type similar to RandomSortField is definitely the way to go over a custom component since it's much less invasive - then everything else like distributed search should work. But see SOLR-... I'm in the process of converting Solr to use the new FieldComparatorSource. -Yonik ht

Re: Custom sort based on arbitrary order

2009-04-14 Thread Chris Hostetter
: custom order that is fairly simple: there is a list of venues and some of : them are more relevant than others (there is no logic, it's arbitrary, it's : not an alphabetic order), it'd be something like this: : : Orange venue = 1 : Red venu = 2 : Blue venue = 3 : : So results where venue is "o

Re: Custom sort (score + custom value)

2008-11-04 Thread George
Todd: Yes, I looked into these arguments before I found the problem I described in the first email. Yonik: It's exactly what I was looking for. George On Mon, Nov 3, 2008 at 7:10 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 12:37 PM, George <[EMAIL PROTECTED]> wrote: > >

Re: Custom sort (score + custom value)

2008-11-03 Thread Yonik Seeley
On Mon, Nov 3, 2008 at 12:37 PM, George <[EMAIL PROTECTED]> wrote: > Ok Yonik, thank you. > > I've tried to execute the following query: "{!boost b=log(myrank) > defType=dismax}q" and it works great. > > Do you know if I can do the same (combine a DisjunctionMaxQuery with a > BoostedQuery) in solrc

RE: Custom sort (score + custom value)

2008-11-03 Thread Feak, Todd
Monday, November 03, 2008 9:38 AM To: solr-user@lucene.apache.org Subject: Re: Custom sort (score + custom value) Ok Yonik, thank you. I've tried to execute the following query: "{!boost b=log(myrank) defType=dismax}q" and it works great. Do you know if I can do the same (c

Re: Custom sort (score + custom value)

2008-11-03 Thread George
Ok Yonik, thank you. I've tried to execute the following query: "{!boost b=log(myrank) defType=dismax}q" and it works great. Do you know if I can do the same (combine a DisjunctionMaxQuery with a BoostedQuery) in solrconfig.xml? George On Sun, Nov 2, 2008 at 3:01 PM, Yonik Seeley <[EMAIL PROTEC

Re: Custom sort (score + custom value)

2008-11-02 Thread Yonik Seeley
On Sun, Nov 2, 2008 at 5:09 AM, George <[EMAIL PROTECTED]> wrote: > I want to implement a custom sort in Solr based on a combination of > relevance (Solr gives me it yet => score) and a custom value I've calculated > previously for each document. I see two options: > > 1. Use a function query (I'm