Re: Why does Solr sort on _docid_ with rows=0 ?

2020-03-05 Thread S G
Thanks Hoss. Yes, that jira seems like a good one to fix. And the variable name definitely does not explain why it will not cause any sort operation. -SG On Mon, Mar 2, 2020 at 10:06 AM Chris Hostetter wrote: > : docid is the natural order of the posting lists, so there is no sorting > effort.

Re: Why does Solr sort on _docid_ with rows=0 ?

2020-03-02 Thread Chris Hostetter
: docid is the natural order of the posting lists, so there is no sorting effort. : I expect that means “don’t sort”. basically yes, as documented in the comment right above hte lines of code linked to. : > So no one knows this then? : > It seems like a good opportunity to get some performance!

Re: Why does Solr sort on _docid_ with rows=0 ?

2020-02-28 Thread Walter Underwood
docid is the natural order of the posting lists, so there is no sorting effort. I expect that means “don’t sort”. Also, cross-posting is probably not good. I’m replying only to solr-user. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Feb 28, 2020,

Re: Why does Solr sort on _docid_ with rows=0 ?

2020-02-28 Thread S G
So no one knows this then? It seems like a good opportunity to get some performance! On Tue, Feb 25, 2020 at 2:01 PM S G wrote: > Hi, > > I see a lot of such queries in my Solr 7.6.0 logs: > > > *path=/select > params={q=*:*&distrib=false&sort=_docid_+asc&rows=0&wt=javabin&version=2} > hits=2871

Why does Solr sort on _docid_ with rows=0 ?

2020-02-25 Thread S G
Hi, I see a lot of such queries in my Solr 7.6.0 logs: *path=/select params={q=*:*&distrib=false&sort=_docid_+asc&rows=0&wt=javabin&version=2} hits=287128180 status=0 QTime=7173* On some searching, this is the code seems to fire the above: https://github.com/apache/lucene-solr/blob/f80e8e11672d3

Re: Solr sort by score not working properly

2018-06-22 Thread Shawn Heisey
On 6/22/2018 9:29 AM, Prathyusha Kondeti wrote: > when I search for java using below query > > curl > http://localhost:8983/solr/test/select?fl=score,id&q=(java)&wt=json&sort=score > desc > > I am expecting the content with *Id :2* should come first as it contains > more matches related to java.Bu

Re: Solr sort by score not working properly

2018-06-22 Thread Alessandro Benedetti
Hi, if you add to the request the param : debugQuery=on you will see what happens under the hood and understand how the score is assigned. If you are new to the Lucene Similarity that Solr version uses ( BM25[1]) you can paste here the debug score response and we can briefly explain it to you the

Solr sort by score not working properly

2018-06-22 Thread Prathyusha Kondeti
Hi, I am using *Solr v6.2.1* .We are not getting accurate results using "sort score desc". let's assume we have a list of documents in our index as below [{ "id": "1", "content": ["*java* developer"] }, { "id": "2", "content": ["*Java* is object oriented.*Java* robust language.Core *java* "] },

Re: Solr sort multivalued field

2018-06-12 Thread Shawn Heisey
On 6/12/2018 2:56 AM, Marc Lammers wrote: I want to sort my data by a multivalued field. I add this to my query „*sort=field(foo,min) asc“*. The configuration in the schema for this field is The documentation for the field function says that the field must contain numeric docvalues.  Your fi

Solr sort multivalued field

2018-06-12 Thread Marc Lammers
Hi All. I want to sort my data by a multivalued field. I add this to my query „*sort=field(foo,min) asc“*. The configuration in the schema for this field is The solr documentation says that i have to add the docValues="true" attribute for this field. After this I deleted the collection an

Solr sort on latest upcoming timestamp value on multivalued field

2018-04-17 Thread sayantan94
I have a multivalued field for session timings (where i store timestamps) of groups document. e.g. session_timings: [1526882026, 1513882026, 1533882026 ]. My sorting logic is the groups should be listed sorted based on their upcoming session time. For example, Group A has three session_timings = [

Re: Solr sort incorrectly

2017-08-21 Thread amukherjee10
Thanks a lot Erick! -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-incorrectly-tp4351419p4351463.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sort incorrectly

2017-08-21 Thread Erick Erickson
on top when sorted in desc manner, but text1 is > coming on top. > > Can anyone tell me what is going wrong here? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-sort-incorrectly-tp4351419.html > Sent from the Solr - User mailing list archive at Nabble.com.

Solr sort incorrectly

2017-08-21 Thread amukherjee10
ng on top. Can anyone tell me what is going wrong here? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-incorrectly-tp4351419.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr sort

2016-07-01 Thread Erick Erickson
Please review: http://wiki.apache.org/solr/UsingMailingLists There is precisely no information here that would allow us to diagnose the root of your problem. The only general advice would be use DocValues. Erick On Thu, Jun 30, 2016 at 11:09 PM, 闲鹤/mamao wrote: > data:1T > Solr Sort

solr sort

2016-07-01 Thread ????/mamao
data:1T Solr Sort occurs the memory overflow query is normal

RE: Solr sort preferences number vs space vs character

2016-03-14 Thread vkrishna
Yes Andy, I am using field configured with KeywordTokenizerFactory. Thanks, Vamsi. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-preferences-number-vs-space-vs-character-tp4263527p4263728.html Sent from the Solr - User mailing list archive at Nabble.com.

RE: Solr sort preferences number vs space vs character

2016-03-14 Thread Andrew Chillrud
e what you expect. - Andy - -Original Message- From: vkrishna [mailto:vamsikrishna_t...@yahoo.com] Sent: Monday, March 14, 2016 1:14 PM To: solr-user@lucene.apache.org Subject: Re: Solr sort preferences number vs space vs character Shawn, I think you did saw my required result order i

Re: Solr sort preferences number vs space vs character

2016-03-14 Thread vkrishna
ct: Re: Solr sort preferences number vs space vs character To: "vkrishna" Date: Monday, March 14, 2016, 9:58 AM On 3/14/2016 10:28 AM, vkrishna wrote: > I completely forgot to mention that this kind of sorting is working fine in 1.4 version now we are upgrading to 5.4. I

Re: Solr sort preferences number vs space vs character

2016-03-14 Thread Shawn Heisey
On 3/14/2016 10:28 AM, vkrishna wrote: > I completely forgot to mention that this kind of sorting is working fine in > 1.4 version now we are upgrading to 5.4. I know solr made many changes > between, because it's been years. Do you know when and in which version they > made changes for sorting.

RE: Solr sort preferences number vs space vs character

2016-03-14 Thread vkrishna
ishna. On Mon, 3/14/16, chillra [via Lucene] wrote: Subject: RE: Solr sort preferences number vs space vs character To: "vkrishna" Date: Monday, March 14, 2016, 8:21 AM No experience with this personally, but it seems like you are de

RE: Solr sort preferences number vs space vs character

2016-03-14 Thread Andrew Chillrud
AM To: solr-user@lucene.apache.org Subject: Re: Solr sort preferences number vs space vs character On 3/14/2016 12:05 AM, vkrishna wrote: > Hey Shawn, > > Is there any way to use ASCII? so I can get the result I want. I do not know whether Solr has any config facility to incorporate

Re: Solr sort preferences number vs space vs character

2016-03-14 Thread Shawn Heisey
On 3/14/2016 12:05 AM, vkrishna wrote: > Hey Shawn, > > Is there any way to use ASCII? so I can get the result I want. I do not know whether Solr has any config facility to incorporate a custom Lucene sorting class. I tried to look at the Lucene code to see if I could figure out how/where the sor

Re: Re: Solr sort preferences number vs space vs character

2016-03-14 Thread Toke Eskildsen
On Sun, 2016-03-13 at 23:05 -0700, vkrishna wrote: > Is there any way to use ASCII? so I can get the result I want. If you use a plain StrField and stick to ASCII in your input, the sorting should be ASCII: https://en.wikipedia.org/wiki/ASCII#Unicode - Toke Eskildsen, State and University Librar

Re: Re: Solr sort preferences number vs space vs character

2016-03-13 Thread vkrishna
Hey Shawn, Is there any way to use ASCII? so I can get the result I want. Thanks, Vamsi. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-preferences-number-vs-space-vs-character-tp4263527p4263551.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sort preferences number vs space vs character

2016-03-13 Thread Shawn Heisey
On 3/13/2016 8:18 PM, Jiangenbo wrote: > sorry for disturbing you all. > Who can tell me how to cancel( unsubscribe) this mailing list The information about how to unsubscribe is in the same place as the information about how to subscribe: http://lucene.apache.org/solr/resources.html#mailing-lis

Re: Re: Solr sort preferences number vs space vs character

2016-03-13 Thread Jiangenbo
Hi, sorry for disturbing you all. Who can tell me how to cancel( unsubscribe) this mailing list Thanks very much! Best, From: Shawn Heisey Date: 2016-03-14 10:00 To: solr-user Subject: Re: Solr sort preferences number vs space vs character On 3/13/2016 4:58 PM, vkrishna wrote: > I am new

Re: Solr sort preferences number vs space vs character

2016-03-13 Thread Shawn Heisey
On 3/13/2016 4:58 PM, vkrishna wrote: > I am new to solr and using 5.4 version. Everything is good up to now, but I > am facing a problem with sorting order. When I query for some thing let's > say for 'a', I am getting the expected results in sorting order but it is > giving more preference to num

Solr sort preferences number vs space vs character

2016-03-13 Thread vkrishna
, Krishna. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-preferences-number-vs-space-vs-character-tp4263527.html Sent from the Solr - User mailing list archive at Nabble.com.

Solr sort and facet of nested doc fields

2016-03-01 Thread Jhon Smith
I am looking for a solr solution of this model: Product (common fields) ->SKU (color, size) and STORE(store_name) <-(price)-> SKU Listing contains only products but other facets (store names, colors) and sorting (by min price) should work either. I can have 3 types of docs: products, skus and re

Re: Solr sort by fixed id list

2014-09-04 Thread davyme
. I'm actually looking for a more effencient way. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-by-fixed-id-list-tp4156854p4156888.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sort by fixed id list

2014-09-04 Thread Mikhail Khludnev
> > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-sort-by-fixed-id-list-tp4156854.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com>

Solr sort by fixed id list

2014-09-04 Thread davyme
Hi, I'm search Solr by querying a list of id's. I want to get the solr search results in the same order as the id list in the query. Can this be done? Thanks! Davy -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-by-fixed-id-list-tp4156854.html Sen

solr sort groups by the sum of the scores of the documents within each group

2014-05-04 Thread frank shi
..], "score":4.347174}] }}, [...] With the release of sorting by Function Query (https://issues.apache.org/jira/browse/SOLR-1297), it seems that there should be a way to use the sum() function (http://wiki.apache.org/solr/FunctionQuery). But it's not quite close enough since the "score" field is not part of the documents. I feel like I'm close but I'm missing some obvious piece. I'm using Solr 4.6. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-sort-groups-by-the-sum-of-the-scores-of-the-documents-within-each-group-tp4134605.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr sort facets by name

2013-11-18 Thread Toke Eskildsen
On Wed, 2013-11-06 at 01:00 +0100, PeterKerk wrote: > By default solr sorts facets by the amount of hits for each result. However, > I want to sort by facetnames alphabetically. That is currently not possible in Solr. You can return then in Unicode order, as Koji and manju16832003 suggests, but th

Re: solr sort facets by name

2013-11-06 Thread PeterKerk
That works, thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/solr-sort-facets-by-name-tp4099499p4099572.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr sort facets by name

2013-11-05 Thread manju16832003
Yes it is facet.sort=index would return facet result set in alphabetical order -- View this message in context: http://lucene.472066.n3.nabble.com/solr-sort-facets-by-name-tp4099499p4099522.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr sort facets by name

2013-11-05 Thread Koji Sekiguchi
(13/11/06 9:00), PeterKerk wrote: By default solr sorts facets by the amount of hits for each result. However, I want to sort by facetnames alphabetically. Earlier I sorted the facets on the client or via my .NET code, however, this time I need solr to return the results with alphabetically sorte

solr sort facets by name

2013-11-05 Thread PeterKerk
this message in context: http://lucene.472066.n3.nabble.com/solr-sort-facets-by-name-tp4099499.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: custom solr sort

2013-01-07 Thread Chris Hostetter
: "mysearch" requesthandler(see following codes), I found that custom sort : just effect on the current page when I got multiple page results, but the : sort is expected when I sets the rows which contains all the results. Does : anybody know how to solve it or the reason? I haven't familiarized

Re: custom solr sort

2013-01-07 Thread andy
Thanks you guys, I got the reason now, there'is something wrong with compareBottom method in my source,it's not consistent with compare method -- View this message in context: http://lucene.472066.n3.nabble.com/custom-solr-sort-tp4031014p4031444.html Sent from the Solr - User ma

Re: custom solr sort

2013-01-07 Thread andy
lain why you want to implement a different sort first? There > may be other ways of achieving the same thing. > > Upayavira > > On Sun, Jan 6, 2013, at 01:32 AM, andy wrote: >> Hi, >> >> Maybe this is an old thread or maybe it's different with previous one. &g

Re: custom solr sort

2013-01-07 Thread Upayavira
Can you explain why you want to implement a different sort first? There may be other ways of achieving the same thing. Upayavira On Sun, Jan 6, 2013, at 01:32 AM, andy wrote: > Hi, > > Maybe this is an old thread or maybe it's different with previous one. > > I want to

Re: custom solr sort

2013-01-07 Thread Uwe Reh
Am 06.01.2013 02:32, schrieb andy: I want to custom solr sort and pass solr param from client to solr server, Hi Andy, not a answer of your question, but maybe an other approach to solve your initial question. Instead of writing a new SearchComponent I decided to (miss)use the function

custom solr sort

2013-01-05 Thread andy
Hi, Maybe this is an old thread or maybe it's different with previous one. I want to custom solr sort and pass solr param from client to solr server, so I implemented SearchComponent which named MySortComponent in my code, and also implemented FieldComparatorSource and FieldComparator. w

Re: Solr sort param behavior clarification

2012-02-02 Thread Erick Erickson
o clarify if this is what the sort param is doing) > Somewhat like this: > select * from (select * from videos order by upload_dt desc) limit 5 > > If I cannot do this by sort, I guess boost/boost function is the way to go. > > Thanks again :). Sorry for the long post. First time using s

Re: Solr sort param behavior clarification

2012-02-02 Thread tiuser123
ost function is the way to go. Thanks again :). Sorry for the long post. First time using solr/lucene so I'm still grasping at straws :|. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-param-behavior-clarification-tp3709248p3710581.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr sort param behavior clarification

2012-02-02 Thread Erick Erickson
plain > the order solr/lucene executes the query params > ie. > 1 applies filter query > 2 applies query > 3 applies sort > something like this? > like in oracle where the "where" clause is applied first before "connect > by". > > Thanks. > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-sort-param-behavior-clarification-tp3709248p3709248.html > Sent from the Solr - User mailing list archive at Nabble.com.

Solr sort param behavior clarification

2012-02-02 Thread tiuser123
explain the order solr/lucene executes the query params ie. 1 applies filter query 2 applies query 3 applies sort something like this? like in oracle where the "where" clause is applied first before "connect by". Thanks. -- View this message in context: http://lucene.472066.n3

RE: OOM on Solr Sort

2008-07-22 Thread sundar shankar
Sorry for that. I didnt realise how my had finally arrived. Sorry!!! From: [EMAIL PROTECTED] To: solr-user@lucene.apache.org Subject: OOM on Solr Sort Date: Tue, 22 Jul 2008 18:33:43 + Hi, We are developing a product in a agile manner and the current implementation has a data of size

OOM on Solr Sort

2008-07-22 Thread sundar shankar
Hi,We are developing a product in a agile manner and the current implementation has a data of size just about a 800 megs in dev. The memory allocated to solr on dev (Dual core Linux box) is 128-512. My config= trueMy Field===

Re: How to custom solr sort?

2008-04-11 Thread Chris Hostetter
: I have inherited a new class from the org.apache.solr.schema.StrField and : customed a new sort algorithm by implementing the SortComparatorSource : interface.Then to export the jar file to the solr lib directory, and : configure the schema.xml file.But when I test the new feature, It does't : w

How to custom solr sort?

2008-04-10 Thread shawnliu
rk at all.Can you give some suggestions?Thanks. -- View this message in context: http://www.nabble.com/How-to-custom-solr-sort--tp16607351p16607351.html Sent from the Solr - User mailing list archive at Nabble.com.

Solr Sort

2007-08-06 Thread Jae Joo
Will anyone helps me how to sort the "text string" which length is less than 50. Thanks, Jae Joo