Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.lucene.index;
 
 
Implementation of lucene IndexingChain class. The GeoIndexingChain class takes another indexing chain in the constructor. It adds a custom GeoDocConsumer which wraps the default indexing chain's consumer to pull out geo components from the document and index them independently, before returning control to the default Consumer.

Author(s):
Geoff Cooney
public class GeoIndexingChain extends IndexingChain {
    
    
    public GeoIndexingChain(GeoSearchConfig configIndexingChain defaultIndexingChain) {
        this. = defaultIndexingChain;
        this. = config;
    }
    
    @Override
    DocConsumer getChain(DocumentsWriter documentsWriter) {
        DocConsumer defaultDocConsumer = .getChain(documentsWriter);
        return new GeoDocConsumer(defaultDocConsumer);
    }
New to GrepCode? Check out our FAQ X