public class LengthNormModifier extends Object
NOTE: This only works if you do not use field/document boosts in your index.
| Constructor and Description |
|---|
LengthNormModifier(org.apache.lucene.store.Directory d,
org.apache.lucene.search.Similarity s)
Deprecated.
Constructor for code that wishes to use this class progaomatically.
|
| 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 LengthNormModifier(org.apache.lucene.store.Directory d,
org.apache.lucene.search.Similarity s)
d - The Directory to modifys - The Similarity to use in reSetNormspublic static void main(String[] args) throws IOException
Usage: LengthNormModifier /path/index package.SimilarityClassName field1 field2 ...
IOExceptionpublic void reSetNorms(String field) throws IOException
Opens a new IndexReader on the Directory given to this instance, modifies the norms using the Similarity given to this instance, and closes the IndexReader.
field - the field whose norms should be resetIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.