Re: Solr - custom ordering

2018-01-05 Thread Erik Hatcher
Vineet - Solr’s QueryElevationComponent can do this. Or you could use a query like: q=id:C^=300 id:B^=200 id:A^=100 The ^= is a constant score syntax, so you can assign a “score” to a clause (in this case a single document with a unique id). Erik > On Jan 4, 2018, at 11:47

Re: Solr - custom ordering

2018-01-05 Thread Emir Arnautović
Hi, Solr can return documents by score or some field value. In case of all docs having the same score, it’ll use its internal id to sort docs. That being said, you have two choices: 1. sort jobids in your fq and sort by jobid (in this case you should use terms query parser) 2. use q instead of

Solr - custom ordering

2018-01-04 Thread Vineet Mangla
Hi, We have a Solr cloud core where "jobid" is our primary key. We have a use case where we have a list of 15000 jobids in a particular order in an external system. We are calling solr with these 15000 jobids as filter query and in result, we want all the jobids after filtering in the same