score based on field value

2005-09-23 Thread Yonik Seeley
There has been a lot of interest in generating a score or boosting based on the value of a particular field. Here is my first prototype that can handle int and float field values. I'm not particularly happy with the form of this solution yet, which is why I'm throwing it out to dev to see if anyone

[jira] Updated: (LUCENE-438) add Token.setTermText(), remove final

2005-09-23 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-438?page=all ] Yonik Seeley updated LUCENE-438: Attachment: SpeedTest.java TokenSpeed.java token performance tests > add Token.setTermText(), remove final > --

[jira] Commented: (LUCENE-438) add Token.setTermText(), remove final

2005-09-23 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-438?page=comments#action_12330320 ] Yonik Seeley commented on LUCENE-438: - As expected, I haven't been able to find a performance difference after applying this patch with 1.4.2 or 1.5 JVMs. java5 -server 1

[jira] Commented: (LUCENE-438) add Token.setTermText(), remove final

2005-09-23 Thread Mark Harwood (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-438?page=comments#action_12330290 ] Mark Harwood commented on LUCENE-438: - Yes it is slower/uglier. I was hoping you could spare the CPU cycles and solve your specific communication problem this ThreadLocal

Re: incorrect score normalization in hits

2005-09-23 Thread Yonik Seeley
Never mind... my mistake. FieldSortedHitQueue takes care of tracking maxscore and normalizes the score in fillFields(). -Yonik On 9/21/05, Yonik Seeley <[EMAIL PROTECTED]> wrote: > > Hits does normalization based on the score of the first document > "scoreDocs[0].score" > This is a problem if sor

[jira] Commented: (LUCENE-438) add Token.setTermText(), remove final

2005-09-23 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-438?page=comments#action_12330276 ] Yonik Seeley commented on LUCENE-438: - > Could you not achieve this communication using ThreadLocals? Yes, but it would make me queasy :-) Performance would also be less t

[jira] Closed: (LUCENE-340) [PATCH] Highlighter: Delegate output escaping to Formatter

2005-09-23 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-340?page=all ] Erik Hatcher closed LUCENE-340: --- Resolution: Fixed Assign To: (was: Lucene Developers) > [PATCH] Highlighter: Delegate output escaping to Formatter > ---

[jira] Closed: (LUCENE-429) Little improvement for SimpleHTMLEncoder

2005-09-23 Thread Erik Hatcher (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-429?page=all ] Erik Hatcher closed LUCENE-429: --- Resolution: Fixed > Little improvement for SimpleHTMLEncoder > > > Key: LUCENE-429 > URL: http://i

[jira] Commented: (LUCENE-438) add Token.setTermText(), remove final

2005-09-23 Thread Mark Harwood (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-438?page=comments#action_12330260 ] Mark Harwood commented on LUCENE-438: - >>Mostly to convey information across TokenFilters Could you not achieve this communication using ThreadLocals? Do we know what the