com.atlassian.confluence.search.v2.query
Class MultiTextFieldQuery

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.MultiTextFieldQuery
All Implemented Interfaces:
SearchQuery

public class MultiTextFieldQuery
extends Object
implements SearchQuery

Represents a query against multiple fields.


Constructor Summary
MultiTextFieldQuery(String query, Set<String> fields, BooleanOperator operator)
          Constructs a multi-field query with the specified query, fields and operator.
MultiTextFieldQuery(String query, String... fields)
          Constructs a multi-field query with the operator set to BooleanOperator.AND.
 
Method Summary
 boolean equals(Object obj)
           
 Set<String> getFields()
           
 String getKey()
           
 BooleanOperator getOperator()
           
 List getParameters()
          List of parameters as Strings or SearchQuerys.
 String getQuery()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTextFieldQuery

public MultiTextFieldQuery(String query,
                           Set<String> fields,
                           BooleanOperator operator)
Constructs a multi-field query with the specified query, fields and operator.

Parameters:
query -
fields -
operator -

MultiTextFieldQuery

public MultiTextFieldQuery(String query,
                           String... fields)
Constructs a multi-field query with the operator set to BooleanOperator.AND.

Parameters:
query - the query
fields - the fields to query against
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface SearchQuery
Returns:
the plugin key

getQuery

public String getQuery()

getFields

public Set<String> getFields()

getOperator

public BooleanOperator getOperator()

getParameters

public List getParameters()
Description copied from interface: SearchQuery
List of parameters as Strings or SearchQuerys.

Specified by:
getParameters in interface SearchQuery
Returns:
Strings or SearchQuerys.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.