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"));
field.setBoost(YYYY);
document.add(field);

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.

Tim

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to