lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Sturge <>
Subject Re: indexing fields with multiplicity
Date Wed, 29 Aug 2007 19:37:18 GMT
That's exactly my question. I feel like

for (i = 0 ; i < XXXX ; i++) {
document.add(new Field("anchor","USA"));

is exactly equivalent to

field = new Field("anchor","USA"));

but I don't know the function that relates XXXX and YYYY. I feel like 
there's a correct information-theorectical answer and I'd like to know 
what it is.


Karl Wettin wrote:
> 29 aug 2007 kl. 19.13 skrev Tim Sturge:
>> I'm looking for a boost when the anchor text is more commonly 
>> associated with one topic than another. For example the United States 
>> of America
>> is called "USA" by a lot of people. The United Space Alliance is also 
>> called "USA" but by many less people.
>> If I just index them both with "USA" once, they will rank equally. I 
>> want the United States of America to rank higher.
> Why not use Field#setBoost(float)?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message