Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Hello Mikhail, yes i did. I read all the page at https://issues.apache.org/jira/browse/LUCENE-8099 I still do not understand where/how to start to write a class to be embedded in solr8. All available example since 2012 where written around Cu

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
Hi Federico, Could you give more details on what is the score that you want to produce? how big is the collection? Is the score affected by the query? if not, would be possible to store the score with the document? Cheers, Diego From: java-user@lucene.apache.org At: 05/09/19 08:13:35To: j

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Well, my index is basically a list of documents of users. so i could say i got a couple of millions of documents per user. I need to produce a score that is unrelated with search term (something like “give me documents that are the most important to user”). I would search for documents of a us

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
why would you need to reindex all the users documents everynight? is the score affected by the number of documents per user? Also for scores, you might be able to use in-place updates: https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-In-PlaceUp

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Yes this was an option, and it solves a part of the problem. But let’s consider this use case: for each user index we need to calculate some important informations based on the most relevant terms, the “starred” documents, the number of times the were opened by user (and other key factors based

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Alessandro Benedetti
What about external fields? https://lucene.apache.org/solr/guide/6_6/working-with-external-files-and-processes.html I admit I have not read in details all the thread, but from a superficial reading, it could help. Apologies if it's not helpful enough! Cheers On Thu, May 9, 2019 at 12:57 PM Feder

Unsupported queries in Lucene XML CoreParser

2019-05-09 Thread hariram ravichandran
We are using Lucene 4.10.4 We parse query in one server and search happens in other servers(RMI call). Since the lucene query object is not serializable, we try to use XML Query Parser

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Diego it could be a nice workaround in case i was not able to perform custom scoring (or in case custom scoring function would generate a slow query) Thanks I still hope i will be able to implement a custom score function in some way I was almost able to achieve such result with ValueSourcePars

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
Have you seen the rerank plugin [1] ? maybe you could apply your custom scoring function only to the top documents? [1] https://lucene.apache.org/solr/6_6_0//solr-core/org/apache/solr/search/ReRankQParserPlugin.html From: java-user@lucene.apache.org At: 05/09/19 16:24:07To: java-user@lucene

Re: About custom score using Solr8/Lucene8

2019-05-09 Thread Federico Pici
Yes i saw it. But it allows me to give a different ranking (and a different order) for the top N documents that match a search. We would like to give documents an order in absence of a query. to be more precise if do something like /solr/collection_1/select/?q=*.* i normally wouldn’t get a scor