Example usage for org.apache.lucene.queryparser.flexible.core.processors QueryNodeProcessorPipeline size

List of usage examples for org.apache.lucene.queryparser.flexible.core.processors QueryNodeProcessorPipeline size

Introduction

In this page you can find the example usage for org.apache.lucene.queryparser.flexible.core.processors QueryNodeProcessorPipeline size.

Prototype

@Override
public int size() 

Source Link

Usage

From source file:at.ac.univie.mminf.luceneSKOS.queryparser.flexible.standard.SKOSStandardQueryParser.java

License:Apache License

public SKOSStandardQueryParser(Analyzer analyzer) {
    super();/*from ww  w .j ava  2  s. c o m*/
    QueryNodeProcessorPipeline qnpp = ((QueryNodeProcessorPipeline) getQueryNodeProcessor());

    int i = 0;
    for (i = 0; i < qnpp.size(); i++) {
        if (qnpp.get(i) instanceof AnalyzerQueryNodeProcessor) {
            break;
        }
    }
    SKOSQueryNodeProcessor qnp = new SKOSQueryNodeProcessor(analyzer);

    qnpp.add(i, qnp);

    // Set boost map
    qnp.setBoosts(boosts);
}