/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, String... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, BytesRef... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, BytesRef... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, String... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, BytesRef... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, BytesRef... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, String... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }
/** * Create a phrase query which will match documents that contain the given * list of terms at consecutive positions in {@code field}, and at a * maximum edit distance of {@code slop}. For more complicated use-cases, * use {@link PhraseQuery.Builder}. * @see #getSlop() */ public PhraseQuery(int slop, String field, String... terms) { this(slop, toTerms(field, terms), incrementalPositions(terms.length)); }