com.groupdocs.search.legacy

Interfaces

Classes

Exceptions

com.groupdocs.search.legacy

Class SearchQuery


  • Deprecated. 
    This class is deprecated and will be available until January 2020 (version 20.1).

    @Deprecated
    public abstract class SearchQuery
    extends Object

    Represents a search query.

    • Method Detail

      • getFieldName

        public String getFieldName()
        Deprecated. 

        Gets the field name.

      • getChildCount

        public int getChildCount()
        Deprecated. 

        Gets the number of child queries.

      • getFirstChild

        public SearchQuery getFirstChild()
        Deprecated. 

        Gets the first child query.

      • getSecondChild

        public SearchQuery getSecondChild()
        Deprecated. 

        Gets the second child query.

      • getChild

        public abstract SearchQuery getChild(int index)
        Deprecated. 

        Gets a child query by an index.

        Parameters:
        index - The index.
        Returns:
        A child query.
      • getSearchParameters

        public final SearchParameters getSearchParameters()
        Deprecated. 

        Gets or sets the search parameters.

      • setSearchParameters

        public final void setSearchParameters(SearchParameters value)
        Deprecated. 

        Gets or sets the search parameters.

      • toString

        public abstract String toString()
        Deprecated. 

        Returns a System.String that represents the current SearchQuery instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents the current SearchQuery instance.
      • createWordQuery

        public static SearchQuery createWordQuery(String term)
        Deprecated. 

        Creates a simple word query.

        Parameters:
        term - The term to search for.
        Returns:
        A simple word query.
      • createWordPatternQuery

        public static SearchQuery createWordPatternQuery(WordPattern pattern)
        Deprecated. 

        Creates a word pattern query.

        Parameters:
        pattern - The word pattern.
        Returns:
        A word pattern query.
      • createRegexQuery

        public static SearchQuery createRegexQuery(String pattern)
        Deprecated. 

        Creates a regular expression query.

        Parameters:
        pattern - The regular expression pattern to match.
        Returns:
        A regular expression query.
      • createRegexQuery

        public static SearchQuery createRegexQuery(String pattern,
                                   int options)
        Deprecated. 

        Creates a regular expression query.

        Parameters:
        pattern - The regular expression pattern to match.
        options - A bitwise combination of the enumeration values that modify the regular expression. This value must contain RegexOptions.IgnoreCase flag.
        Returns:
        A regular expression query.
      • createNumericRangeQuery

        public static SearchQuery createNumericRangeQuery(long start,
                                          long end)
        Deprecated. 

        Creates a numeric range query.

        Parameters:
        start - The start value of a range.
        end - The end value of a range.
        Returns:
        A numeric range query.
      • createDateRangeQuery

        public static SearchQuery createDateRangeQuery(com.aspose.ms.System.DateTime start,
                                       com.aspose.ms.System.DateTime end)
        Deprecated. 

        Creates a date range query.

        Parameters:
        start - The start value of a range.
        end - The end value of a range.
        Returns:
        A date range query.
      • createPhraseSearchQuery

        public static SearchQuery createPhraseSearchQuery(SearchQuery... queries)
        Deprecated. 

        Creates a phrase search query.

        Parameters:
        queries - The child queries.
        Returns:
        A phrase search query.
      • createFieldQuery

        public static SearchQuery createFieldQuery(String fieldName,
                                   SearchQuery query)
        Deprecated. 

        Adds a field to the specified query.

        Parameters:
        fieldName - The field name.
        query - The query to add the field.
        Returns:
        A query with the field.
      • createNotQuery

        public static SearchQuery createNotQuery(SearchQuery query)
        Deprecated. 

        Creates a not query.

        Parameters:
        query - The query to negate.
        Returns:
        A not query.
      • createAndQuery

        public static SearchQuery createAndQuery(SearchQuery leftQuery,
                                 SearchQuery rightQuery)
        Deprecated. 

        Creates an and query.

        Parameters:
        leftQuery - The left child query.
        rightQuery - The right child query.
        Returns:
        An and query.
      • createOrQuery

        public static SearchQuery createOrQuery(SearchQuery leftQuery,
                                SearchQuery rightQuery)
        Deprecated. 

        Creates an or query.

        Parameters:
        leftQuery - The left child query.
        rightQuery - The right child query.
        Returns:
        An or query.
      • createWildcardQuery

        public static SearchQuery createWildcardQuery(byte count)
        Deprecated. 

        Creates wildcard for phrase search.

        Parameters:
        count - The number of words.
        Returns:
        A wildcard.
      • createWildcardQuery

        public static SearchQuery createWildcardQuery(byte minCount,
                                      byte maxCount)
        Deprecated. 

        Creates wildcard for phrase search.

        Parameters:
        minCount - The minimum number of words.
        maxCount - The maximum number of words.
        Returns:
        A wildcard.