|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CompassQueryBuilder.CompassMultiPhraseQueryBuilder
A query builder that constructs a phrase query. A phrase query is used to locate hits with terms within a certain distance from one another. The distance is also called slop. For example, you can use it to search for the values: java and london, which are near one another. "Near" is measured using the slop, and a value of 1 means that they will be in a distance of 1 other value from one another.
The slop defaults to 0.
| Method Summary | |
|---|---|
CompassQueryBuilder.CompassMultiPhraseQueryBuilder |
add(Object value)
Adds a single value to the next position in the phrase. |
CompassQueryBuilder.CompassMultiPhraseQueryBuilder |
add(Object[] values)
Adds several values to the next position in the phrase. |
CompassQueryBuilder.CompassMultiPhraseQueryBuilder |
add(Object[] values,
int position)
Adds several values to the position given in the phrase. |
CompassQueryBuilder.CompassMultiPhraseQueryBuilder |
add(Object value,
int position)
Adds a single value to the position given in the phrase. |
CompassQueryBuilder.CompassMultiPhraseQueryBuilder |
setSlop(int slop)
Sets the slop for the phrase query. |
| Methods inherited from interface org.compass.core.CompassQueryBuilder.ToCompassQuery |
|---|
toQuery |
| Method Detail |
|---|
CompassQueryBuilder.CompassMultiPhraseQueryBuilder setSlop(int slop)
CompassQueryBuilder.CompassMultiPhraseQueryBuilder add(Object value)
CompassQueryBuilder.CompassMultiPhraseQueryBuilder add(Object value,
int position)
CompassQueryBuilder.CompassMultiPhraseQueryBuilder add(Object[] values)
CompassQueryBuilder.CompassMultiPhraseQueryBuilder add(Object[] values,
int position)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||