Re: Get results in multiple orders (multiple boosts)

2017-08-23 Thread Susheel Kumar
This is just an dummy code to show you how you can add a request handler in solrconfig and utilise that to sort by custom field based on your criteria. You can do lot here like using pow function etc. and create more local params etc based on your need. *:* explicit

Re: Get results in multiple orders (multiple boosts)

2017-08-23 Thread Susheel Kumar
Hi Luca, Sorry, I was out. Let me try to put some dummy code as an example. Will be putting it shortly. Thnx On Tue, Aug 22, 2017 at 6:08 AM, Rick Leir wrote: > Luca, > Did you say _slower_ mySQL? It is blazing fast, I used it with over 10m > records and no appreciable latency. The underlying

Re: Get results in multiple orders (multiple boosts)

2017-08-22 Thread Rick Leir
Luca, Did you say _slower_ mySQL? It is blazing fast, I used it with over 10m records and no appreciable latency. The underlying InnoDB is excellent. Design your schema using mySQLworkbench. Cheers -- Rick On August 22, 2017 2:16:07 AM EDT, Luca Dall'Osto wrote: >Hello, >thank you for your res

Re: Get results in multiple orders (multiple boosts)

2017-08-21 Thread Luca Dall'Osto
Hello, thank you for your responses. Ok, therefore I have to archive this problem with no appropriate solution in Solr, and try to do it with a relation-based DB such as mySQL or Postgres. Build the custom sort function could be a valid solution instead of use the slower mySQL or try Postgres (I

Re: Get results in multiple orders (multiple boosts)

2017-08-18 Thread Rick Leir
Luca Walter has got the best word on this, you should use SQL for sorting (maybe mySQL or Postgres). If you also need searching, you can create a Solr index by ingesting from the SQL database. The Solr index would be just used for searching. Cheers -- Rick -- Sorry for being brief. Alternate em

Re: Get results in multiple orders (multiple boosts)

2017-08-18 Thread Walter Underwood
Why do you want to do this in Solr? This would be pretty easy in SQL. If you want to sort, use a relational database. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Aug 18, 2017, at 2:52 AM, Luca Dall'Osto > wrote: > > Hello Tom, > thanks for yo

Re: Get results in multiple orders (multiple boosts)

2017-08-18 Thread Luca Dall'Osto
Hello Tom, thanks for you reply. As say in last email, I made the custom function in JS.I posted in pastebin right now: https://pastebin.com/faXNi0fR What I have to do is create the same function in Solr... I will take a look to your link and try to create the custom function. Thanks Luca

Re: Get results in multiple orders (multiple boosts)

2017-08-18 Thread Tom Evans
On Fri, Aug 18, 2017 at 8:21 AM, Luca Dall'Osto wrote: > > Yes, of course, and excuse me for the misunderstanding. > > > In my scenario I have to display a list with hundreds of documents. > An user can show this documents in a particular order, this order is decided > by user in a settings view.

Re: Get results in multiple orders (multiple boosts)

2017-08-18 Thread Luca Dall'Osto
t; >>>> >Luca >>>> > >>>> >On Tuesday, July 18, 2017 4:18 PM, alessandro.benedetti >>>> > wrote: >>>> > >>>> > >>>> >"I have different "sort preferences", so I can't bui

Re: Get results in multiple orders (multiple boosts)

2017-08-16 Thread Rick Leir
uot;, so I can't build a index and >>>use >>>> >for >>>> >sorting.Maybe I have to sort by category then by source and by >>>language >>>> >or >>>> >by source, then by category and by date" >>>> >

Re: Get results in multiple orders (multiple boosts)

2017-08-16 Thread Luca Dall'Osto
function and sort at query time, but I >>am >>> >curious to explore why an index time solution should not be ok. >>> >You can have these distinct fields : >>> >source_priority >>> >language_priority >>> >category_priority >>> &g

Re: Get results in multiple orders (multiple boosts)

2017-08-08 Thread Rick Leir
function and sort at query time, but I >>am >>> >curious to explore why an index time solution should not be ok. >>> >You can have these distinct fields : >>> >source_priority >>> >language_priority >>> >category_priority >>> >ect >>> > >>> >This values can be assigned

Re: Get results in multiple orders (multiple boosts)

2017-08-07 Thread Luca Dall'Osto
gt; >category_priority >> >ect >> > >> >This values can be assigned at the documents at indexing time ( >using >> >for >> >example a custom update request processor). >> >Then at query time you can easily sort on those values in a multi >

Re: Get results in multiple orders (multiple boosts)

2017-08-04 Thread Rick Leir
y_priority >> >ect >> > >> >This values can be assigned at the documents at indexing time ( >using >> >for >> >example a custom update request processor). >> >Then at query time you can easily sort on those values in a multi >> >layered >> >approach : &g

Re: Get results in multiple orders (multiple boosts)

2017-08-04 Thread Luca Dall'Osto
ery time you can easily sort on those values in a multi > >layered > >approach : > >sort:source_priority desc, category_priority  desc > >Of course, if the priority for a source changes quite often or if it's > >user > >dependent, a query time solution would be preferred. > > >

Re: Get results in multiple orders (multiple boosts)

2017-07-19 Thread Susheel Kumar
ort on those values in a multi > >layered > >approach : > >sort:source_priority desc, category_priority desc > >Of course, if the priority for a source changes quite often or if it's > >user > >dependent, a query time solution would be preferred. > > > > > > > > > > > >

Re: Get results in multiple orders (multiple boosts)

2017-07-19 Thread Rick Leir
gt;approach : >sort:source_priority desc, category_priority  desc >Of course, if the priority for a source changes quite often or if it's >user >dependent, a query time solution would be preferred. > > > > > >- >--- >Alessandro Benedetti

Re: Get results in multiple orders (multiple boosts)

2017-07-19 Thread Luca Dall'Osto
://lucene.472066.n3.nabble.com/Get-results-in-multiple-orders-multiple-boosts-tp4346304p4346559.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Get results in multiple orders (multiple boosts)

2017-07-18 Thread alessandro.benedetti
-- Alessandro Benedetti Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io -- View this message in context: http://lucene.472066.n3.nabble.com/Get-results-in-multiple-orders-multiple-boosts-tp4346304p4346559.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Get results in multiple orders (multiple boosts)

2017-07-18 Thread Susheel Kumar
(that way, you can see/test how your boosting > affects the results)? > > In a similar scenario, I am using fixed value boosts for specific field > values; "^=[boost]" instead of "^[factor]", for example: > > > > category:9500^=20 source:(5^=20 OR 9^=1

Re: Get results in multiple orders (multiple boosts)

2017-07-18 Thread Luca Dall'Osto
imentation.) > > Regards, > Florian > > -Ursprüngliche Nachricht- > Von: Luca Dall'Osto [mailto:tenacious...@yahoo.it.INVALID] > Gesendet: Montag, 17. Juli 2017 12:20 > An: solr-user@lucene.apache.org > Betreff: Get results in multiple orders (multiple boosts) >

Re: Get results in multiple orders (multiple boosts)

2017-07-17 Thread Erick Erickson
ctual fixed values open for experimentation.) > > Regards, > Florian > > -Ursprüngliche Nachricht- > Von: Luca Dall'Osto [mailto:tenacious...@yahoo.it.INVALID] > Gesendet: Montag, 17. Juli 2017 12:20 > An: solr-user@lucene.apache.org > Betreff: Get results in multiple orders

AW: Get results in multiple orders (multiple boosts)

2017-07-17 Thread Florian Waltersdorfer
lucene.apache.org Betreff: Get results in multiple orders (multiple boosts) Hello, I'm new in Solr (and in mailing lists..), and I have a question about querying contents in multiple custom orders. I 'm trying to query some documents boosted by 2 (or more) fields: I'm able to m

Get results in multiple orders (multiple boosts)

2017-07-17 Thread Luca Dall'Osto
Hello, I'm new in Solr (and in mailing lists..), and I have a question about querying contents in multiple custom orders. I 'm trying to query some documents boosted by 2 (or more) fields: I'm able to make a search of 2 day and return results boosted by category field, like this: ?indent=on &def