Re: Using custom scoring formula

2019-08-08 Thread Chee Yee Lim
Hi Arnold, One way to approach this is to store the topic vector you calculated with each of the associated Solr document into a pseudo-vector field (i.e. formatted string field). Then parse the string field into actual vector for calculation when you need it. Something similar to this,

Using custom scoring formula

2019-08-07 Thread Arnold Bronley
Hi, I have a topic verctor calculated for each of the Solr document in a collection. Topic vector is calculated using LDA ( https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation). Now I want to return the similar document to a given document from this collection. I can simply use normalized

Re: Solr cache when using custom scoring

2015-07-09 Thread amid
Mikhail, We've now override the equal hashcode of the custom query to use this new param as well, and it works like charm. Thanks allot, Ami -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-cache-when-using-custom-scoring-tp4216419p4216496.html Sent from the Solr

Solr cache when using custom scoring

2015-07-08 Thread amid
Hi, We are using solr and implemented our own custom scoring. The custom scoring code use a parameter which passed to the solr query, different parameter value will change the score of the same query. The problem which we have is that this parameter is not part of the query caching so running

Re: Solr cache when using custom scoring

2015-07-08 Thread Mikhail Khludnev
On Wed, Jul 8, 2015 at 11:30 PM, amid a...@donanza.com wrote: The custom scoring code use a parameter which passed to the solr query, this param should be evaluated in equals() and hashcode(). isn;t it? -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics http

Re: Solr cache when using custom scoring

2015-07-08 Thread amid
of documents requested) Searching for a good way to make sure this parameter will be used as well so different parameters values with the same query will create different cache keys -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-cache-when-using-custom-scoring

Antwort: Custom Scoring Question

2015-04-29 Thread Stephan Schubert
: 29.04.2015 14:10 Betreff:Custom Scoring Question Hi, I am entirely new to the world of SOLR programming and I have the following questions: In addition to our regular searches we need to implement a specialised form of range search and ranking. We have implemented a CustomScoreQuery

Custom Scoring Question

2015-04-29 Thread Johannes Ruscheinski
Hi, I am entirely new to the world of SOLR programming and I have the following questions: In addition to our regular searches we need to implement a specialised form of range search and ranking. We have implemented a CustomScoreQuery and a CustomScoreProvider. I now have a few questions:

Re: Antwort: Custom Scoring Question

2015-04-29 Thread Johannes Ruscheinski
Ruscheinski johannes.ruschein...@uni-tuebingen.de An: solr-user@lucene.apache.org, Kopie: Oliver Obenland oliver.obenl...@uni-tuebingen.de Datum: 29.04.2015 14:10 Betreff:Custom Scoring Question Hi, I am entirely new to the world of SOLR programming and I have the following

Filter results based on custom scoring and _val_

2012-10-10 Thread jimtronic
/Filter-results-based-on-custom-scoring-and-val-tp4012968.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom scoring question

2012-03-30 Thread Tomás Fernández Löbbe
kind of dismax? I'm not searching for known terms at query time. If not, what is the best way to implement a custom scoring handler to perform this calculation and re-score/sort the results? thanks for any tips!!!

Custom scoring question

2012-03-29 Thread Darren Govoni
to the distribution of field terms within field text. Which is a per document calculation. Can this be done with any kind of dismax? I'm not searching for known terms at query time. If not, what is the best way to implement a custom scoring handler to perform this calculation and re-score/sort the results

Re: Custom scoring question

2012-03-29 Thread Darren Govoni
of dismax? I'm not searching for known terms at query time. If not, what is the best way to implement a custom scoring handler to perform this calculation and re-score/sort the results? thanks for any tips!!!

Re: Custom scoring question

2012-03-29 Thread Tomás Fernández Löbbe
to implement a custom scoring handler to perform this calculation and re-score/sort the results? thanks for any tips!!!

Re: Custom scoring question

2012-03-29 Thread Darren Govoni
of dismax? I'm not searching for known terms at query time. If not, what is the best way to implement a custom scoring handler to perform this calculation and re-score/sort the results? thanks for any tips!!!

Re: custom scoring

2012-02-20 Thread Carlos Gonzalez-Cadenas
Hello all: We've done some tests with Em's approach of putting a BooleanQuery in front of our user query, that means: BooleanQuery must (DismaxQuery) should (FunctionQuery) The FunctionQuery obtains the SOLR IR score by means of a QueryValueSource, then does the SQRT of this value, and

Re: custom scoring

2012-02-20 Thread Em
Carlos, nice to hear that the approach helped you! Could you show us how your query-request looks like after reworking? Regards, Em Am 20.02.2012 13:30, schrieb Carlos Gonzalez-Cadenas: Hello all: We've done some tests with Em's approach of putting a BooleanQuery in front of our user

Re: custom scoring

2012-02-20 Thread Carlos Gonzalez-Cadenas
Yeah Em, it helped a lot :) Here it is (for the user query hoteles): *+(stopword_shortened_phrase:hoteles | stopword_phrase:hoteles | wildcard_stopword_shortened_phrase:hoteles | wildcard_stopword_phrase:hoteles) * *product(pow(query((stopword_shortened_phrase:hoteles | stopword_phrase:hoteles

Re: custom scoring

2012-02-20 Thread Em
Could you please provide me the original request (the HTTP-request)? I am a little bit confused to what query_score refers. As far as I can see it isn't a magic-value. Kind regards, Em Am 20.02.2012 14:05, schrieb Carlos Gonzalez-Cadenas: Yeah Em, it helped a lot :) Here it is (for the user

Re: custom scoring

2012-02-20 Thread Carlos Gonzalez-Cadenas
Hi Em: The HTTP request is not gonna help you a lot because we use a custom QParser (that builds the query that I've pasted before). In any case, here it is: http://localhost:8080/solr/core0/select?shards=…(shards

Re: custom scoring

2012-02-20 Thread Em
Hi Carlos, query_score is a field that is indexed and stored with every document. Thanks for clarifying that, now the whole query-string makes more sense to me. Did you check whether query() - without product() and pow() - is also much slower than a normal query? I guess, if the

Re: custom scoring

2012-02-17 Thread Carlos Gonzalez-Cadenas
Thanks Em, Robert, Chris for your time and valuable advice. We'll make some tests and will let you know soon. On Thu, Feb 16, 2012 at 11:43 PM, Em mailformailingli...@yahoo.de wrote: Hello Carlos, I think we missunderstood eachother. As an example: BooleanQuery ( clauses: (

custom scoring

2012-02-16 Thread Carlos Gonzalez-Cadenas
Hello all: We'd like to score the matching documents using a combination of SOLR's IR score with another application-specific score that we store within the documents themselves (i.e. a float field containing the app-specific score). In particular, we'd like to calculate the final score doing

Re: custom scoring

2012-02-16 Thread Em
Hello carlos, could you show us how your Solr-call looks like? Regards, Em Am 16.02.2012 14:34, schrieb Carlos Gonzalez-Cadenas: Hello all: We'd like to score the matching documents using a combination of SOLR's IR score with another application-specific score that we store within the

Re: custom scoring

2012-02-16 Thread Carlos Gonzalez-Cadenas
Hello Em: The URL is quite large (w/ shards, ...), maybe it's best if I paste the relevant parts. Our q parameter is: q:_val_:\product(query_score,max(query($q8),max(query($q7),max(query($q4),query($q3)\, The subqueries q8, q7, q4 and q3 are regular queries, for example:

Re: custom scoring

2012-02-16 Thread Em
Hello Carlos, well, you must take into account that you are executing up to 8 queries per request instead of one query per request. I am not totally sure about the details of the implementation of the max-function-query, but I guess it first iterates over the results of the first max-query,

Re: custom scoring

2012-02-16 Thread Carlos Gonzalez-Cadenas
Hello Em: Thanks for your answer. Yes, we initially also thought that the excessive increase in response time was caused by the several queries being executed, and we did another test. We executed one of the subqueries that I've shown to you directly in the q parameter and then we tested this

Re: custom scoring

2012-02-16 Thread Em
Hello Carlos, We have some more tests on that matter: now we're moving from issuing this large query through the SOLR interface to creating our own QueryParser. The initial tests we've done in our QParser (that internally creates multiple queries and inserts them inside a DisjunctionMaxQuery)

Re: custom scoring

2012-02-16 Thread Carlos Gonzalez-Cadenas
Hello Em: 1) Here's a printout of an example DisMax query (as you can see mostly MUST terms except for some SHOULD terms used for boosting scores for stopwords) * * *((+stopword_shortened_phrase:hoteles +stopword_shortened_phrase:barcelona stopword_shortened_phrase:en) | (+stopword_phrase:hoteles

Re: custom scoring

2012-02-16 Thread Chris Hostetter
: We'd like to score the matching documents using a combination of SOLR's IR : score with another application-specific score that we store within the : documents themselves (i.e. a float field containing the app-specific : score). In particular, we'd like to calculate the final score doing some :

Re: custom scoring

2012-02-16 Thread Robert Muir
On Thu, Feb 16, 2012 at 8:34 AM, Carlos Gonzalez-Cadenas c...@experienceon.com wrote: Hello all: We'd like to score the matching documents using a combination of SOLR's IR score with another application-specific score that we store within the documents themselves (i.e. a float field

Re: custom scoring

2012-02-16 Thread Em
Hello Carlos, I think we missunderstood eachother. As an example: BooleanQuery ( clauses: ( MustMatch( DisjunctionMaxQuery( TermQuery(stopword_field, barcelona), TermQuery(stopword_field, hoteles) ) ),

Re: custom scoring

2012-02-16 Thread Em
I just modified some TestCases a little bit to see how the FunctionQuery behaves. Given that you got an index containing 14 docs, where 13 of them containing the term batman and two contain the term superman, a search for q=+text:superman _val_:query($qq)qq=text:superman Leads to two hits and

custom scoring

2012-02-13 Thread Carlos Gonzalez-Cadenas
Hello all: We'd like to score the matching documents using a combination of SOLR's IR score with another application-specific score that we store within the documents themselves (i.e. a float field containing the app-specific score). In particular, we'd like to calculate the final score doing

How to do custom scoring using query parameters?

2011-06-01 Thread ngaurav2005
query parameters, which are required for score calculation. Also, once score is calculated, how can I sort those results based on scores? Regards, Gaurav -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-do-custom-scoring-using-query-parameters-tp3013788p3013788.html Sent

Re: Custom Scoring relying on another server.

2011-05-31 Thread arian487
bump -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Scoring-relying-on-another-server-tp2994546p3006873.html Sent from the Solr - User mailing list archive at Nabble.com.

Custom Scoring relying on another server.

2011-05-27 Thread arian487
scoring happen in Solr? Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Scoring-relying-on-another-server-tp2994546p2994546.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom scoring for searhing geographic objects

2010-12-19 Thread Alexey Serba
then return matching street. If there's no any match proceed using the same algorithm with towns, regions, countries. HTH, Alexey On Wed, Dec 15, 2010 at 6:28 PM, Pavel Minchenkov char...@gmail.com wrote: Hi, Please give me advise how to create custom scoring. I need to result that documents were

Custom scoring for searhing geographic objects

2010-12-15 Thread Pavel Minchenkov
Hi, Please give me advise how to create custom scoring. I need to result that documents were in order, depending on how popular each term in the document (popular = how many times it appears in the index) and length of the document (less terms - higher in search results). For example, index

Re: Custom scoring for searhing geographic objects

2010-12-15 Thread Grant Ingersoll
Have a look at http://lucene.apache.org/java/3_0_2/scoring.html on how Lucene's scoring works. You can override the Similarity class in Solr as well via the schema.xml file. On Dec 15, 2010, at 10:28 AM, Pavel Minchenkov wrote: Hi, Please give me advise how to create custom scoring. I

Re: Custom scoring

2010-09-01 Thread Lance Norskog
at 2:04 PM, Brad Kellett b...@chomp.com wrote: Hi all, I'm looking for examples or pointers to some info on implementing custom scoring in solr/lucene. Basically, what we're looking at doing is to augment the score from a dismax query with some custom signals based on data in fields from

Custom scoring

2010-08-30 Thread Brad Kellett
Hi all, I'm looking for examples or pointers to some info on implementing custom scoring in solr/lucene. Basically, what we're looking at doing is to augment the score from a dismax query with some custom signals based on data in fields from the row initially matched. There will be several

custom scoring phrase queries

2010-06-18 Thread Marco Martinez
Hi, I want to know if its posiible to get a higher score in a phrase query when the matching is on the left side of the field. For example: doc1=name:stores peter john doc2=name:peter john stores doc3=name:peter john something if you do a search with name=peter john the resultset i want to get

Re: custom scoring phrase queries

2010-06-18 Thread Otis Gospodnetic
/ - Original Message From: Marco Martinez mmarti...@paradigmatecnologico.com To: solr-user@lucene.apache.org Sent: Fri, June 18, 2010 4:34:45 AM Subject: custom scoring phrase queries Hi, I want to know if its posiible to get a higher score in a phrase query when the matching

Re: custom scoring phrase queries

2010-06-18 Thread Marco Martinez
Martinez mmarti...@paradigmatecnologico.com To: solr-user@lucene.apache.org Sent: Fri, June 18, 2010 4:34:45 AM Subject: custom scoring phrase queries Hi, I want to know if its posiible to get a higher score in a phrase query when the matching is on the left side of the field

Re: Custom scoring example

2008-09-10 Thread Grant Ingersoll
The only thing I can suggest is that each and every Query in Solr/ Lucene is an example of custom scoring. You might be better off starting w/ TermQuery and working through PhraseQuery, BooleanQuery, on up. At the point you get to DisJunctionMax, then ask questions about that specific one

Re: Custom scoring example

2008-09-10 Thread Chris Hostetter
: I need to implement a Query similar to DisjunctionMaxQuery, the only : difference would : be it should score based on sum of score of sub queries' scores instead of : max. BooleanQuery computes scores that are the sub of hte subscores -- you just need to disable the coordFactor (there is a

Re: Custom scoring example

2008-09-10 Thread Mike Klaas
On 5-Sep-08, at 5:01 PM, Ravindra Sharma wrote: I am looking for an example if anyone has done any custom scoring with Solr/Lucene. I need to implement a Query similar to DisjunctionMaxQuery, the only difference would be it should score based on sum of score of sub queries' scores instead

Custom scoring example

2008-09-05 Thread Ravindra Sharma
I am looking for an example if anyone has done any custom scoring with Solr/Lucene. I need to implement a Query similar to DisjunctionMaxQuery, the only difference would be it should score based on sum of score of sub queries' scores instead of max. Any custom scoring example will help. (On one