Re: Sorting dependent on user preferences with FunctionQuery

2013-10-01 Thread Chris Hostetter
: select?q=*%3A*&sort=query(qf=category v='Book')desc : : but Solr returns "Can't determine a Sort Order (asc or desc) in sort". the root cause of that error is that you don't have any whitespace between your query function and "desc" as for your broader goal: doing a straight sort on the users

Re: Sorting dependent on user preferences with FunctionQuery

2013-10-01 Thread Snubbel
Hello, thanks for your answers. I checked your suggestions, but I'm not quite there yet. With field collapsing, I only get the top result per category, which is not what I want, I want to have all results! And boosting is quite an interesting idea. With the following I get what I need, all resul

Re: Sorting dependent on user preferences with FunctionQuery

2013-09-26 Thread Erick Erickson
You could also group by this field (aka "field collapsing") then have the front end put whichever group first you wanted. Best, Erick On Thu, Sep 26, 2013 at 9:41 AM, Ing. Jorge Luis Betancourt Gonzalez wrote: > I think you could use boosting queries: for group A you boost one category > and fo

Re: Sorting dependent on user preferences with FunctionQuery

2013-09-26 Thread Ing. Jorge Luis Betancourt Gonzalez
I think you could use boosting queries: for group A you boost one category and for group B some other category. - Mensaje original - De: "Snubbel" Para: solr-user@lucene.apache.org Enviados: Jueves, 26 de Septiembre 2013 8:01:36 Asunto: Sorting dependent on user preferences with Function