ontology/solr-facet-tree/src/main/java/uk/co/flax/biosolr/builders/ParentNodeFacetTreeBuilder.java
/**
	 * Build a filter query for a field using a set of values, taken from the keys
	 * of a {@link NamedList}.
	 * @param field
	 * @param values
	 * @return a filter string.
	 */
Build a filter query for a field using a set of values, taken from the keys
of a  NamedList.
@param field
@param values
@return a filter string.
Build a filter query for a field using a set of values taken from the keys of a NamedList . @param field @param values @return a filter string .
private Query buildFilterQuery(String field, Collection<String> values) {
		BooleanQuery.Builder builder = new BooleanQuery.Builder();
		values.stream()
			.map(v -> new TermQuery(new Term(field, v)))
			.forEach(tq -> builder.add(tq, Occur.SHOULD));
		return builder.build();
	}
private Query buildFilterQuery ( String field , Collection < String > values ) { BooleanQuery . Builder builder = new BooleanQuery . Builder ( ) ; values . stream ( ) . map ( v -> new TermQuery ( new Term ( field , v ) ) ) . forEach ( tq -> builder . add ( tq , Occur . SHOULD ) ) ; return builder . build ( ) ; }
Build a filter query for a field using a set of values, taken from the keys
 of a {@link NamedList}.
Build a filter query for a field using a set of values taken from the keys of a { @link NamedList } .