В сообщении от Thursday 03 April 2008 16:24:15 Илья Казначеев написал(а):
> - Is there a way to set weights for different fields? Let's say, content
> have a weight of 1, title have a weight of 5 and picture subscribe have a
> weight of 0.5. If no, can I do that by hand?
Already found field.setBoost().
Sorry for asking lame questions :(
By the way, if setBoost() returned this, it would be much easier to assemble
document, one line instead of three. Chaining rules.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
|