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,
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
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
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
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
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
: 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
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:
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-tp4012968.html
Sent from the Solr - User mailing list archive at Nabble.com.
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!!!
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
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!!!
to implement a custom scoring handler to
perform this calculation and re-score/sort the results?
thanks for any tips!!!
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!!!
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
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
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
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
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
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
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: (
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
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
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:
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,
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
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)
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
: 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
:
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
Hello Carlos,
I think we missunderstood eachother.
As an example:
BooleanQuery (
clauses: (
MustMatch(
DisjunctionMaxQuery(
TermQuery(stopword_field, barcelona),
TermQuery(stopword_field, hoteles)
)
),
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
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
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
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.
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.
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
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
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
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
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
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
/
- 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
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
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
: 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
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
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
49 matches
Mail list logo