On Tue, May 3, 2011 at 10:29 AM, Paul Taylor <paul_t...@fastmail.fm> wrote: > I assume this would be the correct way to fix the code for 3.1.0 >
Yes, thats correct. > public float computeNorm(String field, FieldInvertState state) { > > > //This will match both artist and label aliases and is applicable to > both, didn't use the constant > //ArtistIndexField.ALIAS because that would be confusing > if (field.equals("alias")) { > return state.getBoost() * 0.578f; //Same result as normal calc if > field had three terms the most common scenario > } > else > { > return super.computeNorm(field,state); > } > } > > > Paul > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org