@Deprecated public class FieldNormModifier extends 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(String[] args)
Deprecated.
Command Line Execution method.
|
void |
reSetNorms(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(String[] args) throws IOException
Usage: FieldNormModifier /path/index <package.SimilarityClassName | -n> field1 field2 ...
IOException
public void reSetNorms(String field) throws 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 resetIOException