: However, we don't have access to the field name in the function public float
: tf(float freq).
: Is there any way out ? I would think passing the field name along with the
: freq to
: create public float tf(float freq, String fieldName)  would be useful -
: unless there is a better way.

there was some discussion about this previously, see this thread and all
replies...

http://www.nabble.com/-jira--Created%3A-%28LUCENE-577%29-SweetSpotSimiliarity-tf1672444.html#a4536312

...but no one has ever taken the initiative to make sure change.

(note in particular Marvin's point about why adding a field name param to
the tf method is not as good of an idea as changing the
Searcher.getSimilarity method to take in a field name ... it's not clear
to me if that will play nice with every possible multi-field query thta
might ever exist, but it should work fine for every query i can think of
that exists at the moment).


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to