Issue Details (XML | Word | Printable)

Key: LUCENE-496
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Hoss Man
Reporter: Hoss Man
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

New tool for reseting the (length)norm of fields after changing Similarity

Created: 15/Feb/06 11:21 AM   Updated: 27/May/06 01:33 AM
Return to search
Component/s: Index
Affects Version/s: None
Fix Version/s: 2.0.0

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works LengthNormModifier.java 2006-02-15 11:24 AM Hoss Man 4 kB
Java Source File Licensed for inclusion in ASF works TestLengthNormModifier.java 2006-02-15 11:24 AM Hoss Man 5 kB

Resolution Date: 26/May/06 01:50 AM


 Description  « Hide
I've written a little tool that seems like it can/will be very handy as I tweak my custom similarity. I think it would make a good addition to contrib/miscellaneous.

Class and Tests to be attached shortly...



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Hoss Man added a comment - 15/Feb/06 11:24 AM
Class with utility function, and main that calls it on an FSDirectory. Also test cases for the utility function using a RAMDirectory

Yonik Seeley added a comment - 15/Feb/06 02:02 PM
Looks good! Should this be in the index package?

You could even optionally reconstruct the boost if you wanted to (to the precision allowed by the 8 bit float at least) by using the original Similarity to calculate what the lengthNorm is alone, and comparing against the actual norm.


Hoss Man added a comment - 20/Apr/06 01:23 AM
FYI: I picked the package to match the other classes in contrib/miscellaneous ... I don't think it matters very much what package it lives in.

As for reconstructing the boost: It's possible, but this met my needs and I've got some bigger things to worry about at the moment.


Hoss Man added a comment - 26/May/06 01:50 AM
Commited with some small documentation additions.