Hi,

On Tue, Apr 9, 2013 at 5:24 PM, Sharon Tam <sharon...@gmail.com> wrote:
> I tried following following this payloads tutorial to attach the term
> frequencies as payloads:
> http://searchhub.org/2009/08/05/getting-started-with-payloads/
>
> But I'm confused as to where I need to override the term frequency counter
> so that it uses my term frequencies.  I think term frequency counts are
> calculated during indexing, so I don't think I can just write my own
> Similarity class?

This is correct, frequencies are computed at indexing time. I just
wanted to mention that you can influence scores based on payloads:
http://lucene.apache.org/core/4_2_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html#scorePayload(int,
int, int, org.apache.lucene.util.BytesRef)

-- 
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to