Re: Score exact matches higher than matches that match analysed text but not original text

2012-01-27 Thread Paul Taylor
On 10/01/2012 12:26, Paul Taylor wrote: On 10/01/2012 10:18, Ian Lea wrote: If a term has an accent, add both accented and unaccented versions at index and search time. So in your example your default field would contain República Republica and a search for "República" would expand to "Repúbl

Re: Score exact matches higher than matches that match analysed text but not original text

2012-01-10 Thread Paul Taylor
On 10/01/2012 10:18, Ian Lea wrote: If a term has an accent, add both accented and unaccented versions at index and search time. So in your example your default field would contain República Republica and a search for "República" would expand to "República Republica" and match both and score h

Re: Score exact matches higher than matches that match analysed text but not original text

2012-01-10 Thread Ian Lea
If a term has an accent, add both accented and unaccented versions at index and search time. So in your example your default field would contain República Republica and a search for "República" would expand to "República Republica" and match both and score higher than a search for "Republica" wh

RE: Score per position

2011-12-13 Thread Zhang, Lisheng
en in CustomScoreQuery we can get this field by FieldCache and use it. Best regards, Lisheng -Original Message- From: arnon ma [mailto:arnon...@yahoo.com] Sent: Sunday, December 11, 2011 3:44 AM To: java-user@lucene.apache.org Subject: Re: Score per position Lisheng, thanks for the res

Re: Score per position

2011-12-11 Thread arnon ma
g, Lisheng" To: java-user@lucene.apache.org; arnon ma Sent: Thursday, December 8, 2011 7:30 PM Subject: RE: Score per position Hi, A few days ago I asked a similar question: 1) in coming lucene 4.0, there is a feature sort like payload in document level: >lucene 4 has a feature called

RE: Score per position

2011-12-08 Thread Zhang, Lisheng
Hi, A few days ago I asked a similar question: 1) in coming lucene 4.0, there is a feature sort like payload in document level: >lucene 4 has a feature called IndexDocValues which is essentially a > payload per document per field. > > you can read about it here: > http://www.searchworkings.org/b

Re: score and multiValued fields

2010-03-17 Thread Marc Sturlese
Confirmed, supposition 2 is the right one. Erick Erickson wrote: > > Have you looked at: > http://lucene.apache.org/java/2_4_0/scoring.html > > even though it's for > 2.4, > I don't think there's any relevant changes for 3.x... > > I'm pretty

Re: score and multiValued fields

2010-03-16 Thread Erick Erickson
Have you looked at: http://lucene.apache.org/java/2_4_0/scoring.html even though it's for 2.4, I don't think there's any relevant changes for 3.x... I'm pretty sure that your supposition 2 is the right one. HTH Erick On Tue, Mar 16, 2010 at 2:58

Re: Score for query-generated value

2009-09-01 Thread Michael McCandless
Function queries should work here? (org.apache.lucene.search.function.*). Mike On Tue, Sep 1, 2009 at 2:24 AM, marquinhocb wrote: > > I would like to create a scorer that applies a score based on a value that is > calculated during a query.  More specifically, to apply a score based on > geograph

Re: score from spans

2009-08-26 Thread Eran Sevi
I've done some work and would like to post it to the list in order to get some opinions and try to reach something that is satisfactory for everyone. One problem is that i'm actually using Lucene.Net and have written the code in c#. Anothe problem is that I'm using version 2.3.2 which might be a b

Re: score from spans

2009-08-10 Thread Mark Miller
Hey Eran, I've started work on this in the past - you are right, it gets complicated quick! Its also likely to bring with it a sizable performance cost. We already have an issue in JIRA for this that is quite old: https://issues.apache.org/jira/browse/LUCENE-533 If you get any work going,

Re: score from spans

2009-08-10 Thread Grant Ingersoll
On Aug 9, 2009, at 5:10 AM, Eran Sevi wrote: Thanks for the answer. I tried to further understand the weight and score mechanism when running a span query search. I noticed that indeed the SpanScorer and SpanWeight are being called and some score is returned but it seems to me that these

Re: score from spans

2009-08-09 Thread Eran Sevi
Thanks for the answer. I tried to further understand the weight and score mechanism when running a span query search. I noticed that indeed the SpanScorer and SpanWeight are being called and some score is returned but it seems to me that these basic implementations are more appropriate for the bas

Re: score from spans

2009-08-04 Thread Grant Ingersoll
A SpanQuery is a Query, so if you do a search for it, you will get scores. However, the mechanism is a bit complicated, b/c actually getting the Spans is separate from doing the query. I agree there could be tighter integration. However, what you could do is use Spans.skipTo to move to t

Re: Score Boosting

2008-08-22 Thread Grant Ingersoll
Normalization is done on a field by field basis, as is most scoring. It doesn't factor all fields in, b/c someone might not be querying all fields. The field it does use is based on the query. On Aug 18, 2008, at 10:44 PM, blazingwolf7 wrote: Hi, I am currently working on the calculatio

Re: Score 0

2008-06-26 Thread Toke Eskildsen
On Wed, 2008-06-25 at 21:47 +0200, Paolo Valleri wrote: > For take docid of all document in the index I need to write a class > that implement indexReader or there is an other method ? Something along the following should work and be quite fast. However, it might be overly complex. // Do this

Re: Score 0

2008-06-25 Thread Yonik Seeley
On Wed, Jun 25, 2008 at 3:47 PM, Paolo Valleri <[EMAIL PROTECTED]> wrote: > For take docid of all document in the index I need to write a class > that implement indexReader or there is an other method ? MatchAllDocsQuery does it. -Yonik ---

Re: Score 0

2008-06-25 Thread Paolo Valleri
Thank for answer. For take docid of all document in the index I need to write a class that implement indexReader or there is an other method ? paolo 2008/6/25 Toke Eskildsen <[EMAIL PROTECTED]>: > On Wed, 2008-06-25 at 09:29 +0200, Paolo Valleri wrote: > > For several reasons I need also to kn

Re: Score 0

2008-06-25 Thread Toke Eskildsen
On Wed, 2008-06-25 at 09:29 +0200, Paolo Valleri wrote: > For several reasons I need also to know the documents that don't match the > input query. For example with score 0. Make a list of the docid for all the non-deleted documents in the index. Collect the docids from the search-result. Subtract

Re: Score: Randomize form

2007-11-27 Thread Haroldo Nascimento
Its works. The solution is the implementation of SortComparatorSource interface. Thanks Chris, On Nov 26, 2007 10:17 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : I think you have a couple of problems here. First, you'll have to > : normalize the scores to get *any* of them to be the sa

Re: Score: Randomize form

2007-11-26 Thread Chris Hostetter
: I think you have a couple of problems here. First, you'll have to : normalize the scores to get *any* of them to be the same. Since : the scores are a float, very few of them will be exactly the same. it's not as rare as it seems, with lengthNorm byte encoding and low tf values it can happen q

Re: Score: Randomize form

2007-11-26 Thread Erick Erickson
I think you have a couple of problems here. First, you'll have to normalize the scores to get *any* of them to be the same. Since the scores are a float, very few of them will be exactly the same. I really suspect that you need to use a HitCollector (or TopDocs?) and collect the hits into buckets,

Re: score

2007-03-07 Thread Doron Cohen
http://lucene.apache.org/java/docs/scoring.html "ashwin kumar" <[EMAIL PROTECTED]> wrote on 07/03/2007 18:54:49: > hi all when i search using lucene i am getting the path of the documents in > which the search string is found along with this > > i am also gettin a score . my question is > > what

RE: Score

2007-02-01 Thread DECAFFMEYER MATHIEU
Thank u Chris for your support. __ Matt -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 12:54 AM To: java-user@lucene.apache.org Subject: RE: Score * This message comes from the Internet

RE: Score

2007-01-31 Thread Chris Hostetter
: >>Have you looked at the constructor for BooleanQuery and : >>tried passing "true" to disable the Coord factor? : : Thanks Chris, this is exactly what I want, : but I am working with lucene 1.4.3 because I have to for some reasons, : : Is there any equivalent ?! if you look atteh source for it,

RE: Score

2007-01-31 Thread DECAFFMEYER MATHIEU
8:49 PM To: java-user@lucene.apache.org Subject: RE: Score * This message comes from the Internet Network * : I make a BooleanQuery with the input of the user and include in the query : title:keywordofuser headlines:keywordofuser content:keywordofuser : I tried to Boost field title, then if

Re: Score

2007-01-30 Thread Chris Hostetter
suming what you listed is everything in your index) : Date: Tue, 30 Jan 2007 14:58:23 -0500 : From: Nott <[EMAIL PROTECTED]> : To: java-user@lucene.apache.org : Cc: [EMAIL PROTECTED] : Subject: Re: Score : : Hi : Thanks for the response : To explain more clear say I search on the Author fi

Re: Score

2007-01-30 Thread Nott
Hi Thanks for the response To explain more clear say I search on the Author field . Consider by data resides as follows Authortitle Jess Hopkins ABC Jess howardCCC James Hopkins ZZZ Jess Hopkins RRR I want all documents that were created

RE: Score

2007-01-30 Thread Chris Hostetter
: I make a BooleanQuery with the input of the user and include in the query : title:keywordofuser headlines:keywordofuser content:keywordofuser : I tried to Boost field title, then if keyword appear in the title, score grows like I want to, but if keyword occurs in content or headlines score dec

RE: Score

2007-01-30 Thread DECAFFMEYER MATHIEU
be one you can normalize the score. What do u mean by normalizing the score and how ? -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 12:00 AM To: java-user@lucene.apache.org Subject: Re: Score * This message comes from t

Re: Score

2007-01-29 Thread Chris Hostetter
1:52:58 +0100 : From: Soeren Pekrul <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Re: Score : : DECAFFMEYER MATHIEU wrote: : > : > Both are the same document but in different indexes, : > the only difference is that the seco

Re: Score

2007-01-29 Thread Soeren Pekrul
DECAFFMEYER MATHIEU wrote: Both are the same document but in different indexes, the only difference is that the second idnex has more document than the first one, the first one contains only that page. I would like to have the same score as in the second index, Simple speaking, the score dep

RE: Score

2007-01-29 Thread DECAFFMEYER MATHIEU
see what is wrong ? Thank u. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 11:11 AM To: java-user@lucene.apache.org Subject: Re: Score * This message comes from the Internet Network * Look at the details provided by

Re: Score

2007-01-29 Thread Erik Hatcher
Look at the details provided by IndexSearcher.explain(). That'll tell you why. Erik On Jan 29, 2007, at 4:43 AM, DECAFFMEYER MATHIEU wrote: Hi, I have one index with one document with title "Logistics" I have a second index with the same document with title "Logistics" and othe

RE: score formula in Similarity javadoc

2005-10-26 Thread Koji Sekiguchi
rrata/scoring_formula_omission.html Thank you very much, Koji > -Original Message- > From: Yonik Seeley [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 27, 2005 1:23 AM > To: java-user@lucene.apache.org > Subject: Re: score formula in Similarity javadoc > > &

Re: score formula in Similarity javadoc

2005-10-26 Thread Yonik Seeley
With respect to different terms in a boolean query, they will contribute to the total score proportional to idf^2, so I think the javadoc as it exists now is probably more correct. A single TermQuery will have a final score with a single idf factor in it, but that's because of the queryweight fact

RE: score formula in Similarity javadoc

2005-10-25 Thread Koji Sekiguchi
Attached file was deleted by mailing list server. The patch was: Index: src/java/org/apache/lucene/search/Similarity.java === --- src/java/org/apache/lucene/search/Similarity.java (繝ェ繝薙ず繝ァ繝ウ 328522) +++ src/java/org/apache/lucene/se

Re: Score Question

2005-03-10 Thread Luke Shannon
I think I've found my problem. In the example I'm having the problem with I do a multiple field query. I think I need to play with my boosting factors. This is the section of the book that I think will lead to a resolution to my problem: In addition to the explicit factors in this equation, othe

Re: Score Question

2005-03-10 Thread Luke Shannon
A couple of times. Luke - Original Message - From: "Erik Hatcher" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 09, 2005 8:03 PM Subject: Re: Score Question > Did you reindex after upgrading? > > Erik > > On Mar 9, 2005, at 5:55 PM, Luke Shannon wr

RE: Score Question

2005-03-09 Thread Omar Didi
Hi folks, I have a task when I need to read the query entered by the user and then add to it many other terms in a boolean expression. for examples: if the user enters: red. i need to take red and generate the following query(red AND blue) OR (red AND green) OR( red AND yellow). the problem is

Re: Score Question

2005-03-09 Thread Erik Hatcher
Did you reindex after upgrading? Erik On Mar 9, 2005, at 5:55 PM, Luke Shannon wrote: Hi; Has the scoring changed recently? I just upgraded all the jars is our application (Lucene included). I'm getting scores like this from documents in hits: 6.9699495E-4 The XSL that creates the user inte