You can boost any clause of a query:
http://lucene.apache.org/java/docs/queryparsersyntax.html
title:foo^5 header:foo^2 body:foo
On 31-Jul-07, at 1:00 PM, Askar Zaidi wrote:
I'll have to use StringBuffer and get the Explanation in it as a
String.
Then parse StringBuffer to get the scores of
Guys,
Heres someone who did this hack:
http://blog.mindbridge.com/?p=55
Cheers,
AZ
On 7/31/07, Askar Zaidi <[EMAIL PROTECTED]> wrote:
>
> I'll have to use StringBuffer and get the Explanation in it as a String.
> Then parse StringBuffer to get the scores of each field, then add them and
> then
I'll have to use StringBuffer and get the Explanation in it as a String.
Then parse StringBuffer to get the scores of each field, then add them and
then boost the scores. That seems to be a non-trivial task. Is there any
other way around it ?
Considering Boosting, can I boost the score of a field
Using the Explanation method can help me get the exact score of a field. I
am concerned with how I can access it , this is what I am doing:
for(int i=0;i wrote:
>
> Boost the other three fields at search time. Boosting during
> index time expresses "this document's title is worth more than
> oth
Boost the other three fields at search time. Boosting during
index time expresses "this document's title is worth more than
other doucments' titles". Boosting during search time expresses
"I care about matches on this clause more than I do on other
clauses".
Will it help? How should I know? It's *
Boosting during Indexing or boosting during search ?
I have 4 fields:
{tags},{title},{summary},{contents}
Typically a phrase occurs too many times in contents as compared to the
other fields. If I get the score of contents field , I can pass it through
an adjuster function which will bring the s
Wouldn't boosting handle this for you?
On 7/31/07, Askar Zaidi <[EMAIL PROTECTED]> wrote:
>
> To be more specific:
>
> I want to retrieve the scores of individual fields inside a document so
> that
> I can manipulate the score of one field. This is the requirement of my
> application. After the ma
Though I am not sure what is the possible use case for thing like below, but
here is the pointer:
Using IndexSearcher you can get the "Explanation" for the given query and
document-id. Complex Explanation has multiple sub-explanations and so forth.
Simple Explanation would contain the weight of th
To be more specific:
I want to retrieve the scores of individual fields inside a document so that
I can manipulate the score of one field. This is the requirement of my
application. After the manipulation I can add these scores and then show the
total.
thanks,
AZ
On 7/31/07, Askar Zaidi <[EMAIL
Hi,
Does anyone know how to retrieve the score of an individual field instead of
doing:
hits = score(i); This will get me the entire score of the document. I'd like
to get the score of a single field by specifying the field name.
thanks,
AZ
On 7/31/07, Askar Zaidi <[EMAIL PROTECTED]> wrote:
>
>
10 matches
Mail list logo