In case I dont want to write a plugin code for that, what is the option that I am left with ?
As I see it, one of the solution is to add a new a ranking field and query on the basis of ascending/descending values of the ranking filed. To change the sort order change the value of the ranking field by re-creating indexes. Is there any other way of doing it ? Shalin Shekhar Mangar wrote: > > Well that is not very well defined. I suppose if you can mathematically > defined an ordering, you can implement it by writing some plugin code. > > On Mon, Sep 29, 2008 at 9:57 AM, tushar kapoor < > [EMAIL PROTECTED]> wrote: > >> >> What I need is a specific sorting order in which the documents are >> retrieved. >> The only way I know that this is possible is using something like this - >> >> widescreen AND HDTV^2; popular desc, score desc; >> >> as given on >> http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 >> http://wiki.apache.org/solr/SolrRelevancyCookbook?highlight=%28ranking%29 >> >> Can I specify an order other than ascending or descending. >> >> >> For instance, if I have a 'Product' field in indexes with values >> P1,P2,P3,P4.... >> >> If I query like this - (queryString);Product desc; >> >> Result would be - ....,P4,P3,P2,P1 >> >> Now I want the order to be ....,P3,P2,P1,P4. Is this possible ? >> >> >> >> >> Grant Ingersoll-6 wrote: >> > >> > Can you give an example of what you mean? >> > >> > On Sep 26, 2008, at 11:28 AM, tushar kapoor wrote: >> > >> >> >> >> I want to specify a particular pattern in which results are >> >> retrieved for a >> >> query. Can a pattern of ranks be specified in the query ? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19690731.html >> >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >> > >> > -------------------------- >> > Grant Ingersoll >> > http://www.lucidimagination.com >> > >> > Lucene Helpful Hints: >> > http://wiki.apache.org/lucene-java/BasicsOfPerformance >> > http://wiki.apache.org/lucene-java/LuceneFAQ >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19718201.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-specify-a-pattern-of-Ranking-while-querying-the-indexes--tp19690731p19719048.html Sent from the Solr - User mailing list archive at Nabble.com.