org.apache.lucene.queryparser.ext

## Class ExtensionQuery

- java.lang.Object
- - org.apache.lucene.queryparser.ext.ExtensionQuery

-     public class ExtensionQuery
      extends Object

  `ExtensionQuery` holds all query components extracted from the original query string like the query field and the extension query string.
  See Also:
    `Extensions`, `ExtendableQueryParser`, `ParserExtension`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString)` Creates a new `ExtensionQuery`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getField()` Returns the query field
    `String` | `getRawQueryString()` Returns the raw extension query string
    `QueryParser` | `getTopLevelParser()` Returns the top level parser which created this `ExtensionQuery`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExtensionQuery

          public ExtensionQuery(QueryParser topLevelParser,
                                String field,
                                String rawQueryString)

      Creates a new `ExtensionQuery`
      Parameters:
        `field` - the query field
        `rawQueryString` - the raw extension query string

  - ### Method Detail

    - #### getField

          public String getField()

      Returns the query field
      Returns:
        the query field

    - #### getRawQueryString

          public String getRawQueryString()

      Returns the raw extension query string
      Returns:
        the raw extension query string

    - #### getTopLevelParser

          public QueryParser getTopLevelParser()

      Returns the top level parser which created this `ExtensionQuery`
      Returns:
        the top level parser which created this `ExtensionQuery`

Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.