Re: Lucene Field score value

2007-07-31 Thread Mike Klaas
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

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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

Re: Lucene Field score value

2007-07-31 Thread Erick Erickson
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 *

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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

Re: Lucene Field score value

2007-07-31 Thread Erick Erickson
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

Re: Lucene Field score value

2007-07-31 Thread Shailendra Sharma
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

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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

Re: Lucene Field score value

2007-07-31 Thread Askar Zaidi
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: > >