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

se.l4.silo.search.query.SuggestQuery 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.QueryItem;

public class SuggestQuery
	extends AbstractQueryPart
{
	private final String field;

	public SuggestQuery(String field)
	{
		this.field = field;
	}

	public R text(String text)
	{
		receiver.addQuery(new QueryItem("suggest", new SuggestQueryData(field, text)));
		return parent;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy