Issue Details (XML | Word | Printable)

Key: LUCENE-577
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

SweetSpotSimiliarity

Created: 24/May/06 07:54 AM   Updated: 27/May/06 01:33 AM
Return to search
Component/s: Search
Affects Version/s: None
Fix Version/s: 2.0.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works ss.patch 2006-05-24 07:55 AM Hoss Man 12 kB

Resolution Date: 26/May/06 04:23 AM


 Description  « Hide
This is a new Similarity implimention for the contrib/miscellaneous/ package, it provides a Similiarty designed for people who know the "sweetspot" of their data. three major pieces of functionality are included:

1) a lengthNorm which creates a "platuea" of values.
2) a baseline tf that provides a fixed value for tf's up to a minimum, at which point it becomes a sqrt curve (this is used by the tf(int) function.
3) a hyperbolic tf function which is best explained by graphing the equation. this isn't used by default, but is available for subclasses to call from their own tf functions.

All constants used in all functions are configurable. In the case of lengthNorm, the constants are configurable per field, as well as allowing for defaults for unspecified fields.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order