| clear query|facets|time |
Search criteria: policy.
Results from 11 to 20 from
2589 (0.453s).
|
|
|
Loading phrases to help you refine your search...
|
|
MergePolicy - Lucene - [javadoc]
- [see source code]
|
|
...Expert: a MergePolicy determines the sequence of
primitive merge operations.
Whenever the segments in an index have been altered by
{@link IndexWriter}, either the addition of a newly...
|
|
...
flushed segment, addition of many segments from
addIndexes* calls, or a previous merge that may now need
to cascade, {@link IndexWriter} invokes {@link
#findMerges} to give the MergePolicy...
|
[+ show more]
[- hide]
| ... IndexWriter.forceMerge is called, it calls
{@link #findForcedMerges(SegmentInfos,int,Map)} and the MergePolicy should
then return the necessary merges.
Note that the policy can return more than... |
| ...MergeScheduler} they will be run concurrently.
The default MergePolicy is {@link
TieredMergePolicy}. @lucene.experimental ... |
|
|
http://search-lucene.com/jd/lucene/core/org/apache/lucene/i.../MergePolicy.html
|
|
|
NoDeletionPolicy - Lucene - [javadoc]
- [see source code]
|
|
...An {@link IndexDeletionPolicy} which keeps all index commits around, never
deleting them. This class is a singleton and can be accessed by referencing
{@link #INSTANCE}. ...
|
|
|
http://search-lucene.com/jd/lucene/core/org/apache/luc.../NoDeletionPolicy.html
|
|
|
OrdinalPolicy.java - Lucene - [source code]
|
|
... for the specific language governing permissions and
* limitations under the License.
*/
/**
* A policy for adding category parent ordinals to the list of ordinals that are
* encoded for a given...
|
|
... document. The default {@link #ALL_PARENTS} policy always
* adds all parents, where {@link #NO_PARENTS} never adds any parents.
*
* @lucene.experimental
*/
public interface OrdinalPolicy...
|
[+ show more]
[- hide]
| ... extends Serializable {
/**
* An {@link OrdinalPolicy} which never stores parent ordinals. Useful if you
* only want to store the exact categories that were added to the document... |
| ....
* Note that this is a rather expert policy, which requires a matching
* {@link FacetsAccumulator} that computes the weight of the parent categories
* on-the-fly.
*/
public static final... |
| ... OrdinalPolicy NO_PARENTS = new OrdinalPolicy() {
@Override
public boolean shouldAdd(int ordinal) { return false; }
@Override
public void init(TaxonomyWriter taxonomy... |
|
|
|
|
|
LogMergePolicy - Lucene - [javadoc]
- [see source code]
|
|
...This class implements a {@link MergePolicy} that tries
to merge segments into levels of exponentially
increasing size, where each level has fewer segments than
the value of the merge factor...
|
|
...MergeFactor()} and
{@link #setMergeFactor(int)} respectively.
This class is abstract and requires a subclass to
define the {@link #size} method which specifies how a
segment's size is determined. {@link LogDocMergePolicy...
|
[+ show more]
[- hide]
| ...}
is one subclass that measures size by document count in
the segment. {@link LogByteSizeMergePolicy} is another
subclass that measures size as the total byte size of the
file(s) for the segment. ... |
|
|
http://search-lucene.com/jd/lucene/core/org/apache/lucen.../LogMergePolicy.html
|
|
|
IndexDeletionPolicy - Lucene - [javadoc]
- [see source code]
|
|
...Expert: policy for deletion of stale {@link IndexCommit index commits}.
Implement this interface, and pass it to one
of the {@link IndexWriter} or {@link IndexReader}
constructors...
|
|
..., to customize when older
{@link IndexCommit point-in-time commits}
are deleted from the index directory. The default deletion policy
is {@link KeepOnlyLastCommitDeletionPolicy}, which always
removes...
|
[+ show more]
[- hide]
| ... a custom deletion policy, such as "a
commit is only removed once it has been stale for more
than X minutes", you can give your readers time to
refresh to the new commit before {@link Index... |
|
|
http://search-lucene.com/jd/lucene/core/org/apache/.../IndexDeletionPolicy.html
|
|
|
PathPolicy.java - Lucene - [source code]
|
|
..._CATEGORIES}.
*
* @lucene.experimental
*/
public interface PathPolicy extends Serializable {
/**
* A {@link PathPolicy} which adds all {@link CategoryPath} that have at least
* one component (i.e. {@link...
|
|
... CategoryPath#length} > 0) to the categories
* stream.
*/
public static final PathPolicy ALL_CATEGORIES = new PathPolicy() {
@Override
public boolean should...
|
|
|
|
|
|
FlushPolicy.java - Lucene - [source code]
|
|
....apache.lucene.store.Directory;
import org.apache.lucene.util.SetOnce;
/**
* {@link FlushPolicy} controls when segments are flushed from a RAM resident
* internal data-structure to the {@link IndexWriter}s {@link Directory...
|
|
...Writer} consults a provided {@link FlushPolicy} to control the
* flushing process. The policy is informed for each added or
* updated document as well as for each delete term. Based on the
* {@link...
|
[+ show more]
[- hide]
| ... FlushPolicy}, the information provided via {@link ThreadState} and
* {@link DocumentsWriterFlushControl}, the {@link FlushPolicy} decides if a
* {@link DocumentsWriterPerThread} needs flushing... |
| ...WriterFlushControl
* @see DocumentsWriterPerThread
* @see IndexWriterConfig#setFlushPolicy(FlushPolicy)
*/
abstract class FlushPolicy implements Cloneable {
protected SetOnce writer = new SetOnce();
protected... |
| ... by DocumentsWriter to initialize the FlushPolicy
*/
protected synchronized void init(DocumentsWriter docsWriter) {
writer.set(docsWriter);
indexWriterConfig = docs... |
|
|
|
|
|
MergePolicy.java - Lucene - [source code]
|
|
....apache.lucene.store.Directory;
import org.apache.lucene.store.MergeInfo;
import org.apache.lucene.util.SetOnce.AlreadySetException;
import org.apache.lucene.util.SetOnce;
/**
* Expert: a MergePolicy determines the sequence...
|
|
...
* addIndexes* calls, or a previous merge that may now need
* to cascade, {@link IndexWriter} invokes {@link
* #findMerges} to give the MergePolicy a chance to pick
* merges that are now...
|
[+ show more]
[- hide]
| ...Writer.forceMerge is called, it calls
* {@link #findForcedMerges(SegmentInfos,int,Map)} and the MergePolicy should
* then return the necessary merges.
*
* Note that the policy can return more than one merge... |
| ... concurrently.
*
* The default MergePolicy is {@link
* TieredMergePolicy}.
*
* @lucene.experimental
*/
public abstract class MergePolicy implements java.io.Closeable, Cloneable {
/** One... |
| ... in the primitive merge.
*/
public final List merges = new ArrayList();
/** Sole constructor. Use {@link
* #add(MergePolicy.OneMerge)} to add merges. */
public Merge... |
|
|
|
|
|
PathPolicy - Lucene - [javadoc]
- [see source code]
|
|
...Determines which {@link CategoryPath categories} should be added as terms tothe {@link DrillDownStream}. The default approach is implemented by{@link #ALL_CATEGORIES}. @lucene.experimental...
|
|
|
http://search-lucene.com/jd/lucene/facet/org/apache/lucene/f.../PathPolicy.html
|
|
|
MergePolicy # clone() - Lucene - [javadoc]
- [see source code]
|
|
|
|
http://search-lucene.com/jd/lucene/core/org/apache/.../MergePolicy.html#clone()
|
|
|
|