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
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
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
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
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
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
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
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.
t;
>>>> >Luca
>>>> >
>>>> >On Tuesday, July 18, 2017 4:18 PM, alessandro.benedetti
>>>> > wrote:
>>>> >
>>>> >
>>>> >"I have different "sort preferences", so I can't bui
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"
>>>> >
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
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
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
>
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
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.
> >
>
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.
> >
> >
> >
> >
> >
> >
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
://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.
--
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.
(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
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)
>
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
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
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
24 matches
Mail list logo