List of usage examples for org.apache.lucene.queryparser.flexible.core.nodes BoostQueryNode getValue
public float getValue()
From source file:com.sindicetech.siren.qparser.keyword.builders.BoostQueryNodeBuilder.java
License:Open Source License
public Query build(final QueryNode queryNode) throws QueryNodeException { final BoostQueryNode boostNode = (BoostQueryNode) queryNode; final QueryNode child = boostNode.getChild(); if (child == null) { return null; }// ww w. j ava2 s. com final Query query = (Query) child.getTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID); query.setBoost(boostNode.getValue()); return query; }