All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.silo.search.query.ConstantScoreQuery Maven / Gradle / Ivy

There is a newer version: 0.2.3
Show newest version
package se.l4.silo.search.query;

import se.l4.silo.search.QueryCriteriaBuilder;
import se.l4.silo.search.QueryItem;
import se.l4.silo.search.QueryPart;

public class ConstantScoreQuery
	extends AbstractQueryPart
	implements QueryCriteriaBuilder
{
	private final float score;

	public ConstantScoreQuery(float score)
	{
		this.score = score;
	}

	@Override
	public void addQuery(QueryItem item)
	{
		receiver.addQuery(new QueryItem("constantScore", new ConstantScoreData(score, item)));
	}

	@Override
	public 

> P query(P q) { q.parent(parent, this); return q; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy