lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: Indexing Term Frequency Vectors
Date Tue, 09 Apr 2013 18:35:06 GMT
Hi,

On Tue, Apr 9, 2013 at 5:24 PM, Sharon Tam <sharontam@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message