com.primus.searchcommon.constraint
Class URLConstraint

java.lang.Object
  extended by com.primus.searchcommon.constraint.BaseConstraint
      extended by 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

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
URLConstraint(java.lang.String pUrl)
           
URLConstraint(java.lang.String pUrl, java.lang.Float pWeight)
           
 
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 com.primus.searchcommon.constraint.BaseConstraint
escapeToXml, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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: