com.primus.searchcommon.constraint
Class URLConstraint
java.lang.Object
com.primus.searchcommon.constraint.BaseConstraint
com.primus.searchcommon.constraint.URLConstraint
- All Implemented Interfaces:
- DocumentSetConstraint, java.io.Serializable
public class URLConstraint
- extends BaseConstraint
Constraints the results to the given URL string of the indexed document.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getUrl()
|
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in the ES Query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CLASS_VERSION
public static final java.lang.String CLASS_VERSION
- See Also:
- Constant Field Values
URLConstraint
public URLConstraint(java.lang.String pUrl)
- Parameters:
pUrl
- The URL of the document.
URLConstraint
public URLConstraint(java.lang.String pUrl,
java.lang.Float pWeight)
- Parameters:
pUrl
- The URL of the document.pWeight
- The weight
getUrl
public java.lang.String getUrl()
- Returns:
- Returns the url.
toXml
public java.lang.String toXml()
- Description copied from interface:
DocumentSetConstraint
- Converts this constraint to the XML representation that can be sent in the ES Query.
- Returns: