Uses of Class org.neo4j.index.lucene.QueryContext (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

## Uses of Class
org.neo4j.index.lucene.QueryContext

- Packages that use QueryContext
  Package | Description
  --- | ---
  org.neo4j.index.lucene | Contains `QueryContext` and `ValueContext` which is part of the public API for an `Index` backed by Lucene.

- - ### Uses of QueryContext in org.neo4j.index.lucene

    Methods in org.neo4j.index.lucene that return QueryContext
    Modifier and Type | Method and Description
    --- | ---
    `QueryContext` | QueryContext.`defaultOperator(org.apache.lucene.queryParser.QueryParser.Operator defaultOperator)` Changes the the default operator used between terms in compound queries, default is OR.
    `static QueryContext` | QueryContext.`numericRange(String key, Number from, Number to)` Will create a `QueryContext` with a query for numeric ranges, that is values that have been indexed using `ValueContext.indexNumeric()`.
    `static QueryContext` | QueryContext.`numericRange(String key, Number from, Number to, boolean includeFrom, boolean includeTo)` Will create a `QueryContext` with a query for numeric ranges, that is values that have been indexed using `ValueContext.indexNumeric()`.
    `QueryContext` | QueryContext.`sort(org.apache.lucene.search.Sort sorting)` Returns a QueryContext with sorting added to it.
    `QueryContext` | QueryContext.`sort(String key, String... additionalKeys)` Returns a QueryContext with sorting added to it.
    `QueryContext` | QueryContext.`sortByScore()`
    `QueryContext` | QueryContext.`sortNumeric(String key, boolean reversed)` Sort the results of a numeric range query if the query in this context is a `NumericRangeQuery`, see `numericRange(String, Number, Number)`, Otherwise an `IllegalStateException` will be thrown.
    `QueryContext` | QueryContext.`top(int numberOfTopHits)` Makes use of `IndexSearcher.search(org.apache.lucene.search.Query, int)`, alternatively `IndexSearcher.search(org.apache.lucene.search.Query, org.apache.lucene.search.Filter, int, Sort)` where only the top `numberOfTopHits` hits are returned.
    `QueryContext` | QueryContext.`tradeCorrectnessForSpeed()` Adding to or removing from an index affects results from query methods inside the same transaction, even before those changes are committed.

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.