@Deprecated
public class FieldNormModifier
extends java.lang.Object
Field.Index
.NO_NORMS was used.
NOTE: This will overwrite any length normalization or field/document boosts.
Constructor and Description |
---|
FieldNormModifier(Directory d,
Similarity s)
Deprecated.
Constructor for code that wishes to use this class programmatically
If Similarity is null, kill the field norms.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Deprecated.
Command Line Execution method.
|
void |
reSetNorms(java.lang.String field)
Deprecated.
Resets the norms for the specified field.
|
public FieldNormModifier(Directory d, Similarity s)
d
- the Directory to modifys
- the Similarity to use (can be null)public static void main(java.lang.String[] args) throws java.io.IOException
Usage: FieldNormModifier /path/index <package.SimilarityClassName | -n> field1 field2 ...
java.io.IOException
public void reSetNorms(java.lang.String field) throws java.io.IOException
Opens a new IndexReader on the Directory given to this instance, modifies the norms (either using the Similarity given to this instance, or by using fake norms, and closes the IndexReader.
field
- the field whose norms should be resetjava.io.IOException