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,
https://gi
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 d
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
range 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-cust
On Wed, Jul 8, 2015 at 11:30 PM, amid 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://www.griddynamics.com>
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
en query.
--Johannes
>
> Regards
>
> Stephan
>
>
>
> Von:Johannes Ruscheinski
> An: solr-user@lucene.apache.org,
> Kopie: Oliver Obenland
> Datum: 29.04.2015 14:10
> Betreff:Custom Scoring Question
>
>
>
> Hi,
>
> I am entirely new to
.
Example:
fieldname: mycustomfield
filterquery to ignore docs with mycustomfield not set: +mycustomfield:*
Regards
Stephan
Von:Johannes Ruscheinski
An: solr-user@lucene.apache.org,
Kopie: Oliver Obenland
Datum: 29.04.2015 14:10
Betreff:Custom Scoring Question
Hi,
I
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:
1)
his message in context:
http://lucene.472066.n3.nabble.com/Filter-results-based-on-custom-scoring-and-val-tp4012968.html
Sent from the Solr - User mailing list archive at Nabble.com.
> Now my queries come in as:
> > > >
> > > > terms:[* TO *]
> > > >
> > > > and Solr scores them on that field.
> > > >
> > > > What I want is to rank them according to the distribution of field
> > > > &q
t; > and Solr scores them on that field.
> > >
> > > What I want is to rank them according 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?
> > >
> > > thanks for any tips!!!
> > >
> >
> >
> >
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?
> >
> > thanks for any tips!!!
> >
>
>
>
hin 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?
>
> thanks for any tips!!!
>
o 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 cal
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 performanc
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
here)…&indent=on&wt=exon&timeAllowed=50&fl=resulting_phrase%2Cquery_id%2Ctype%2Chig
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 u
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
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 q
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 t
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 wrote:
> Hello Carlos,
>
> I think we missunderstood eachother.
>
> As an example:
> BooleanQuery (
> clauses: (
> MustMatch(
>
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
Hello Carlos,
I think we missunderstood eachother.
As an example:
BooleanQuery (
clauses: (
MustMatch(
DisjunctionMaxQuery(
TermQuery("stopword_field", "barcelona"),
TermQuery("stopword_field", "hoteles")
)
),
Sh
On Thu, Feb 16, 2012 at 8:34 AM, Carlos Gonzalez-Cadenas
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 containing the app-specifi
: 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
:
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
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 DisjunctionMaxQue
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 s
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, after
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:
"q7
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 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 some
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 some
does this class can receive 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-tp
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.
ument 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.
que identifying the match. If it's 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 wrote:
> Hi,
> Please give me advise how to create custom scorin
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
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
2:04 PM, Brad Kellett 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
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
arch :: http://search-lucene.com/
>
>
>
> - Original Message
> > From: Marco Martinez
> > To: solr-user@lucene.apache.org
> > Sent: Fri, June 18, 2010 4:34:45 AM
> > Subject: custom scoring phrase queries
> >
> > Hi,
>
> I want to kn
arch-lucene.com/
- Original Message
> From: Marco Martinez
> 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 match
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 ge
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
in
: 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 con
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 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.
(O
49 matches
Mail list logo