lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <cdor...@gmail.com>
Subject Re: changing term freq in indexing time
Date Tue, 21 Apr 2009 09:16:58 GMT
Depending on the problem you are trying to solve there may be other
solutions to it, not requiring setting wrong (?) values for term
frequencies.
If you can explain what you are trying to solve, people on the list may
be able to suggest such alternatives.
- Doron

On Sun, Apr 19, 2009 at 2:39 PM, liat oren <oren.liat@gmail.com> wrote:

> Hi,
>
> I would like to be able to set the term freq to differnt values at index
> time, or at search time.
>
> So if a document has the following text: 1 2, the freq of 1 will get 100
> and
> the freq of 2 will get 200. I want to avoid expanding it by writing 1 100
> times.
>
> I looked at Similarity class and wanted to override it, but the tf function
> gets only freq, so I don't know for which term this freq relates to, thus I
> can't change the value.
>
> Thanks,
> Liat
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message