/*
Copyright (C) 2000-2010  Ministere de la culture et de la communication (France), AJLSM
See LICENCE file
*/
package fr.gouv.culture.sdx.search.lucene.query;


/*
 *Contient une requete avec la contrainte que tous les mots doivent etre presents dans les resultats.
 */

/**
 *	A acceptRequest with the constraint that the results of this query must contain all the words present in the search acceptRequest.
 */
public class RestrictedQuery extends SimpleQuery implements org.apache.excalibur.xml.sax.XMLizable {

    /**Creates a query
     *
     *  <p>
     * A super.getLog() must be set and then this query must be setUp.
     *
     * @see #enableLogging
     * @see #setUp
     */
    public RestrictedQuery() {
    }

    /**
     *	Builds a restricted query.
     *
     *  @param	sLocs	The SearchLocations object (indices to be searched).
     *	@param	q		The query string.
     *  @param field    The name of the field
     */
    public void setUp(SearchLocations sLocs, String q, String field) throws fr.gouv.culture.sdx.exception.SDXException {
        super.setUp(sLocs, field, q);
    }
}
