Uses of Class
org.apache.lucene.search.Query
-
Packages that use Query Package Description org.apache.lucene.classification Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).org.apache.lucene.classification.document Uses already seen data (the indexed documents) to classify new documents.org.apache.lucene.classification.utils Utilities for evaluation, data preparation, etc.org.apache.lucene.document The logical representation of aDocumentfor indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.payloads Experimental classes for interacting with payloadsorg.apache.lucene.queries Filters and Queries that add to core Lucene.org.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.queries.intervals Intervals queriesorg.apache.lucene.queries.mlt Document similarity query generators.org.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queryparser.classic A simple query parser implemented with JavaCC.org.apache.lucene.queryparser.complexPhrase QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"org.apache.lucene.queryparser.ext Extendable QueryParser provides a simple and flexible extension mechanism by overloading query field names.org.apache.lucene.queryparser.flexible.standard Implementation of the Lucene classic query parser using the flexible query parser frameworksorg.apache.lucene.queryparser.flexible.standard.builders Standard Lucene Query Node Builders.org.apache.lucene.queryparser.simple A simple query parser for human-entered queries.org.apache.lucene.queryparser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.queryparser.xml Parser that produces Lucene Query objects from XML streams.org.apache.lucene.queryparser.xml.builders XML Parser factories for different Lucene Query/Filters.org.apache.lucene.sandbox.queries Additional queries (some may have caveats or limitations)org.apache.lucene.search Code to search indices.org.apache.lucene.search.grouping Grouping.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.search.suggest.analyzing Analyzer based autosuggest.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.org.apache.lucene.search.vectorhighlight Another highlighter implementation based on term vectors.org.apache.lucene.util Some utility classes.org.apache.lucene.util.automaton Finite-state automaton for regular expressions. -
-
Uses of Query in org.apache.lucene.classification
Fields in org.apache.lucene.classification declared as Query Modifier and Type Field Description private QueryBM25NBClassifier. queryQueryused to eventually filter the document set to be used to classifyprivate QueryKNearestFuzzyClassifier. queryaQueryused to filter the documents that should be used from this classifier's underlyingLeafReaderprotected QueryKNearestNeighborClassifier. queryaQueryused to filter the documents that should be used from this classifier's underlyingLeafReaderprotected QuerySimpleNaiveBayesClassifier. queryQueryused to eventually filter the document set to be used to classifyConstructors in org.apache.lucene.classification with parameters of type Query Constructor Description BM25NBClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier.BooleanPerceptronClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.Integer batchSize, java.lang.Double bias, java.lang.String classFieldName, java.lang.String textFieldName)Creates aBooleanPerceptronClassifierCachingNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier with inside caching.KNearestFuzzyClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates aKNearestFuzzyClassifier.KNearestNeighborClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, int minDocsFreq, int minTermFreq, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates aKNearestNeighborClassifier.SimpleNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier. -
Uses of Query in org.apache.lucene.classification.document
Constructors in org.apache.lucene.classification.document with parameters of type Query Constructor Description KNearestNeighborDocumentClassifier(IndexReader indexReader, Similarity similarity, Query query, int k, int minDocsFreq, int minTermFreq, java.lang.String classFieldName, java.util.Map<java.lang.String,Analyzer> field2analyzer, java.lang.String... textFieldNames)Creates aKNearestNeighborClassifier.SimpleNaiveBayesDocumentClassifier(IndexReader indexReader, Query query, java.lang.String classFieldName, java.util.Map<java.lang.String,Analyzer> field2analyzer, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier. -
Uses of Query in org.apache.lucene.classification.utils
Subclasses of Query in org.apache.lucene.classification.utils Modifier and Type Class Description classNearestFuzzyQuerySimplification of FuzzyLikeThisQuery, to be used in the context of KNN classification.Methods in org.apache.lucene.classification.utils that return Query Modifier and Type Method Description private QueryNearestFuzzyQuery. newTermQuery(IndexReader reader, Term term)QueryNearestFuzzyQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.document
Subclasses of Query in org.apache.lucene.document Modifier and Type Class Description (package private) classBinaryRangeFieldRangeQuery(package private) classDoubleRangeSlowRangeQuery(package private) classFeatureQuery(package private) classFloatRangeSlowRangeQuery(package private) classIntRangeSlowRangeQuery(package private) classLatLonDocValuesBoxQueryDistance query forLatLonDocValuesField.(package private) classLatLonDocValuesQueryFinds all previously indexed geo points that comply the givenShapeField.QueryRelationwith the specified array ofLatLonGeometry.(package private) classLatLonPointDistanceFeatureQuery(package private) classLatLonPointDistanceQueryDistance query forLatLonPoint.(package private) classLatLonPointQueryFinds all previously indexed geo points that comply the givenShapeField.QueryRelationwith the specified array ofLatLonGeometry.(package private) classLatLonShapeBoundingBoxQueryFinds all previously indexed geo shapes that intersect the specified bounding box.(package private) classLatLonShapeQueryFinds all previously indexed geo shapes that comply the givenShapeField.QueryRelationwith the specified array ofLatLonGeometry.(package private) classLongDistanceFeatureQuery(package private) classLongRangeSlowRangeQuery(package private) classRangeFieldQueryQuery class for searchingRangeFieldtypes by a definedPointValues.Relation.(package private) classSortedNumericDocValuesRangeQuery(package private) classSortedSetDocValuesRangeQuery(package private) classSpatialQueryclassXYDocValuesPointInGeometryQueryXYGeometry query forXYDocValuesField.(package private) classXYPointInGeometryQueryFinds all previously indexed points that fall within the specified XY geometries.(package private) classXYShapeQueryFinds all previously indexed cartesian shapes that comply the givenShapeField.QueryRelationwith the specified array ofXYGeometry.Methods in org.apache.lucene.document that return Query Modifier and Type Method Description private static QueryLatLonPoint. makeContainsGeometryQuery(java.lang.String field, LatLonGeometry... latLonGeometries)private static QueryLatLonShape. makeContainsGeometryQuery(java.lang.String field, LatLonGeometry... latLonGeometries)private static QueryLatLonPoint. newBoxInternal(java.lang.String field, byte[] min, byte[] max)static QueryLatLonPoint. newBoxQuery(java.lang.String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)Create a query for matching a bounding box.static QueryLatLonShape. newBoxQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)create a query to find all indexed geo shapes that intersect a defined bounding boxstatic QueryXYPointField. newBoxQuery(java.lang.String field, float minX, float maxX, float minY, float maxY)Create a query for matching a bounding box.static QueryXYShape. newBoxQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, float minX, float maxX, float minY, float maxY)create a query to find all cartesian shapes that intersect a defined bounding boxstatic QueryDoubleRange. newContainsQuery(java.lang.String field, double[] min, double[] max)Create a query for matching indexed ranges that contain the defined range.static QueryFloatRange. newContainsQuery(java.lang.String field, float[] min, float[] max)Create a query for matching indexed float ranges that contain the defined range.static QueryInetAddressRange. newContainsQuery(java.lang.String field, java.net.InetAddress min, java.net.InetAddress max)Create a query for matching indexed ip ranges thatCONTAINSthe defined range.static QueryIntRange. newContainsQuery(java.lang.String field, int[] min, int[] max)Create a query for matching indexed ranges that contain the defined range.static QueryLatLonBoundingBox. newContainsQuery(java.lang.String field, double minLat, double minLon, double maxLat, double maxLon)Create a new 2d query that finds all indexed 2d GeoBoundingBoxField values that contain the defined 2d bounding boxstatic QueryLongRange. newContainsQuery(java.lang.String field, long[] min, long[] max)Create a query for matching indexed ranges that contain the defined range.static QueryDoubleRange. newCrossesQuery(java.lang.String field, double[] min, double[] max)Create a query for matching indexed ranges that cross the defined range.static QueryFloatRange. newCrossesQuery(java.lang.String field, float[] min, float[] max)Create a query for matching indexed ranges that cross the defined range.static QueryInetAddressRange. newCrossesQuery(java.lang.String field, java.net.InetAddress min, java.net.InetAddress max)Create a query for matching indexed ip ranges thatCROSSthe defined range.static QueryIntRange. newCrossesQuery(java.lang.String field, int[] min, int[] max)Create a query for matching indexed ranges that cross the defined range.static QueryLatLonBoundingBox. newCrossesQuery(java.lang.String field, double minLat, double minLon, double maxLat, double maxLon)Create a new 2d query that finds all indexed 2d GeoBoundingBoxField values that cross the defined 3d bounding boxstatic QueryLongRange. newCrossesQuery(java.lang.String field, long[] min, long[] max)Create a query for matching indexed ranges that cross the defined range.static QueryLatLonPoint. newDistanceFeatureQuery(java.lang.String field, float weight, double originLat, double originLon, double pivotDistanceMeters)Given a field that indexes point values into aLatLonPointand doc values intoLatLonDocValuesField, this returns a query that scores documents based on their haversine distance in meters to(originLat, originLon):score = weight * pivotDistanceMeters / (pivotDistanceMeters + distance), ie.static QueryLongPoint. newDistanceFeatureQuery(java.lang.String field, float weight, long origin, long pivotDistance)Given a field that indexes the same long values into aLongPointand doc values (eitherNumericDocValuesFieldorSortedNumericDocValuesField), this returns a query that scores documents based on their distance toorigin:score = weight * pivotDistance / (pivotDistance + distance), ie.static QueryLatLonPoint. newDistanceQuery(java.lang.String field, double latitude, double longitude, double radiusMeters)Create a query for matching points within the specified distance of the supplied location.static QueryLatLonShape. newDistanceQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, Circle... circle)create a query to find all polygons that intersect a provided circle.static QueryXYPointField. newDistanceQuery(java.lang.String field, float x, float y, float radius)Create a query for matching points within the specified distance of the supplied location.static QueryXYShape. newDistanceQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, XYCircle... circle)create a query to find all cartesian shapes that intersect a provided circle (or arrays of circles)static QueryBigIntegerPoint. newExactQuery(java.lang.String field, java.math.BigInteger value)Create a query for matching an exact big integer value.static QueryBinaryPoint. newExactQuery(java.lang.String field, byte[] value)Create a query for matching an exact binary value.static QueryDoublePoint. newExactQuery(java.lang.String field, double value)Create a query for matching an exact double value.static QueryFloatPoint. newExactQuery(java.lang.String field, float value)Create a query for matching an exact float value.static QueryHalfFloatPoint. newExactQuery(java.lang.String field, float value)Create a query for matching an exact half-float value.static QueryInetAddressPoint. newExactQuery(java.lang.String field, java.net.InetAddress value)Create a query for matching a network address.static QueryIntPoint. newExactQuery(java.lang.String field, int value)Create a query for matching an exact integer value.static QueryLongPoint. newExactQuery(java.lang.String field, long value)Create a query for matching an exact long value.static QueryLatLonPoint. newGeometryQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... latLonGeometries)Create a query for matching one or more geometries against the providedShapeField.QueryRelation.static QueryLatLonShape. newGeometryQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... latLonGeometries)create a query to find all indexed geo shapes that intersect a provided geometry (or array of geometries).static QueryXYPointField. newGeometryQuery(java.lang.String field, XYGeometry... xyGeometries)create a query to find all indexed shapes that intersect a provided geometry collection.static QueryXYShape. newGeometryQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, XYGeometry... xyGeometries)create a query to find all indexed geo shapes that intersect a provided geometry collection note: Components do not support dateline crossingstatic QueryDoubleRange. newIntersectsQuery(java.lang.String field, double[] min, double[] max)Create a query for matching indexed ranges that intersect the defined range.static QueryFloatRange. newIntersectsQuery(java.lang.String field, float[] min, float[] max)Create a query for matching indexed ranges that intersect the defined range.static QueryInetAddressRange. newIntersectsQuery(java.lang.String field, java.net.InetAddress min, java.net.InetAddress max)Create a query for matching indexed ip ranges thatINTERSECTthe defined range.static QueryIntRange. newIntersectsQuery(java.lang.String field, int[] min, int[] max)Create a query for matching indexed ranges that intersect the defined range.static QueryLatLonBoundingBox. newIntersectsQuery(java.lang.String field, double minLat, double minLon, double maxLat, double maxLon)Create a new 2d query that finds all indexed 2d GeoBoundingBoxField values that intersect the defined 3d bounding rangesstatic QueryLongRange. newIntersectsQuery(java.lang.String field, long[] min, long[] max)Create a query for matching indexed ranges that intersect the defined range.static QueryFeatureField. newLinearQuery(java.lang.String fieldName, java.lang.String featureName, float weight)Return a newQuerythat will score documents asweight * Swhere S is the value of the static feature.static QueryLatLonShape. newLineQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, Line... lines)create a query to find all indexed geo shapes that intersect a provided linestring (or array of linestrings) note: does not support dateline crossingstatic QueryXYShape. newLineQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, XYLine... lines)create a query to find all cartesian shapes that intersect a provided linestring (or array of linestrings)static QueryFeatureField. newLogQuery(java.lang.String fieldName, java.lang.String featureName, float weight, float scalingFactor)Return a newQuerythat will score documents asweight * Math.log(scalingFactor + S)where S is the value of the static feature.static QueryLatLonShape. newPointQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, double[]... points)create a query to find all indexed shapes that comply theShapeField.QueryRelationwith the provided pointsstatic QueryXYShape. newPointQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, float[]... points)create a query to find all indexed shapes that comply theShapeField.QueryRelationwith the provided pointstatic QueryLatLonPoint. newPolygonQuery(java.lang.String field, Polygon... polygons)Create a query for matching one or more polygons.static QueryLatLonShape. newPolygonQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, Polygon... polygons)create a query to find all indexed geo shapes that intersect a provided polygon (or array of polygons) note: does not support dateline crossingstatic QueryXYPointField. newPolygonQuery(java.lang.String field, XYPolygon... polygons)Create a query for matching one or more polygons.static QueryXYShape. newPolygonQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, XYPolygon... polygons)create a query to find all cartesian shapes that intersect a provided polygon (or array of polygons)static QueryInetAddressPoint. newPrefixQuery(java.lang.String field, java.net.InetAddress value, int prefixLength)Create a prefix query for matching a CIDR network range.static QueryBigIntegerPoint. newRangeQuery(java.lang.String field, java.math.BigInteger[] lowerValue, java.math.BigInteger[] upperValue)Create a range query for n-dimensional big integer values.static QueryBigIntegerPoint. newRangeQuery(java.lang.String field, java.math.BigInteger lowerValue, java.math.BigInteger upperValue)Create a range query for big integer values.static QueryBinaryPoint. newRangeQuery(java.lang.String field, byte[][] lowerValue, byte[][] upperValue)Create a range query for n-dimensional binary values.static QueryBinaryPoint. newRangeQuery(java.lang.String field, byte[] lowerValue, byte[] upperValue)Create a range query for binary values.static QueryDoublePoint. newRangeQuery(java.lang.String field, double[] lowerValue, double[] upperValue)Create a range query for n-dimensional double values.static QueryDoublePoint. newRangeQuery(java.lang.String field, double lowerValue, double upperValue)Create a range query for double values.static QueryFloatPoint. newRangeQuery(java.lang.String field, float[] lowerValue, float[] upperValue)Create a range query for n-dimensional float values.static QueryFloatPoint. newRangeQuery(java.lang.String field, float lowerValue, float upperValue)Create a range query for float values.static QueryHalfFloatPoint. newRangeQuery(java.lang.String field, float[] lowerValue, float[] upperValue)Create a range query for n-dimensional half-float values.static QueryHalfFloatPoint. newRangeQuery(java.lang.String field, float lowerValue, float upperValue)Create a range query for half-float values.static QueryInetAddressPoint. newRangeQuery(java.lang.String field, java.net.InetAddress lowerValue, java.net.InetAddress upperValue)Create a range query for network addresses.static QueryIntPoint. newRangeQuery(java.lang.String field, int[] lowerValue, int[] upperValue)Create a range query for n-dimensional integer values.static QueryIntPoint. newRangeQuery(java.lang.String field, int lowerValue, int upperValue)Create a range query for integer values.private static QueryLatLonBoundingBox. newRangeQuery(java.lang.String field, double minLat, double minLon, double maxLat, double maxLon, RangeFieldQuery.QueryType queryType)helper method to create a two-dimensional geospatial bounding box querystatic QueryLongPoint. newRangeQuery(java.lang.String field, long[] lowerValue, long[] upperValue)Create a range query for n-dimensional long values.static QueryLongPoint. newRangeQuery(java.lang.String field, long lowerValue, long upperValue)Create a range query for long values.private static QueryDoubleRange. newRelationQuery(java.lang.String field, double[] min, double[] max, RangeFieldQuery.QueryType relation)helper method for creating the desired relational queryprivate static QueryFloatRange. newRelationQuery(java.lang.String field, float[] min, float[] max, RangeFieldQuery.QueryType relation)helper method for creating the desired relational queryprivate static QueryInetAddressRange. newRelationQuery(java.lang.String field, java.net.InetAddress min, java.net.InetAddress max, RangeFieldQuery.QueryType relation)helper method for creating the desired relational queryprivate static QueryIntRange. newRelationQuery(java.lang.String field, int[] min, int[] max, RangeFieldQuery.QueryType relation)helper method for creating the desired relational queryprivate static QueryLongRange. newRelationQuery(java.lang.String field, long[] min, long[] max, RangeFieldQuery.QueryType relation)helper method for creating the desired relational querystatic QueryFeatureField. newSaturationQuery(java.lang.String fieldName, java.lang.String featureName)Same asFeatureField.newSaturationQuery(String, String, float, float)but1fis used as a weight and a reasonably good default pivot value is computed based on index statistics and is approximately equal to the geometric mean of all values that exist in the index.static QueryFeatureField. newSaturationQuery(java.lang.String fieldName, java.lang.String featureName, float weight, float pivot)Return a newQuerythat will score documents asweight * S / (S + pivot)where S is the value of the static feature.private static QueryFeatureField. newSaturationQuery(java.lang.String fieldName, java.lang.String featureName, float weight, java.lang.Float pivot)static QueryBigIntegerPoint. newSetQuery(java.lang.String field, java.math.BigInteger... values)Create a query matching any of the specified 1D values.static QueryBinaryPoint. newSetQuery(java.lang.String field, byte[]... values)Create a query matching any of the specified 1D values.static QueryDoublePoint. newSetQuery(java.lang.String field, double... values)Create a query matching any of the specified 1D values.static QueryDoublePoint. newSetQuery(java.lang.String field, java.util.Collection<java.lang.Double> values)Create a query matching any of the specified 1D values.static QueryFloatPoint. newSetQuery(java.lang.String field, float... values)Create a query matching any of the specified 1D values.static QueryFloatPoint. newSetQuery(java.lang.String field, java.util.Collection<java.lang.Float> values)Create a query matching any of the specified 1D values.static QueryHalfFloatPoint. newSetQuery(java.lang.String field, float... values)Create a query matching any of the specified 1D values.static QueryHalfFloatPoint. newSetQuery(java.lang.String field, java.util.Collection<java.lang.Float> values)Create a query matching any of the specified 1D values.static QueryInetAddressPoint. newSetQuery(java.lang.String field, java.net.InetAddress... values)Create a query matching any of the specified 1D values.static QueryIntPoint. newSetQuery(java.lang.String field, int... values)Create a query matching any of the specified 1D values.static QueryIntPoint. newSetQuery(java.lang.String field, java.util.Collection<java.lang.Integer> values)Create a query matching any of the specified 1D values.static QueryLongPoint. newSetQuery(java.lang.String field, long... values)Create a query matching any of the specified 1D values.static QueryLongPoint. newSetQuery(java.lang.String field, java.util.Collection<java.lang.Long> values)Create a query matching any of the specified 1D values.static QueryFeatureField. newSigmoidQuery(java.lang.String fieldName, java.lang.String featureName, float weight, float pivot, float exp)Return a newQuerythat will score documents asweight * S^a / (S^a + pivot^a)where S is the value of the static feature.static QueryLatLonDocValuesField. newSlowBoxQuery(java.lang.String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)Create a query for matching a bounding box using doc values.static QueryXYDocValuesField. newSlowBoxQuery(java.lang.String field, float minX, float maxX, float minY, float maxY)Create a query for matching a bounding box using doc values.static QueryLatLonDocValuesField. newSlowDistanceQuery(java.lang.String field, double latitude, double longitude, double radiusMeters)Create a query for matching points within the specified distance of the supplied location.static QueryXYDocValuesField. newSlowDistanceQuery(java.lang.String field, float x, float y, float radius)Create a query for matching points within the specified distance of the supplied location.static QueryNumericDocValuesField. newSlowExactQuery(java.lang.String field, long value)Create a query for matching an exact long value.static QuerySortedDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)Create a query for matching an exactBytesRefvalue.static QuerySortedNumericDocValuesField. newSlowExactQuery(java.lang.String field, long value)Create a query for matching an exact long value.static QuerySortedSetDocValuesField. newSlowExactQuery(java.lang.String field, BytesRef value)Create a query for matching an exactBytesRefvalue.static QueryLatLonDocValuesField. newSlowGeometryQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, LatLonGeometry... latLonGeometries)Create a query for matching one or more geometries against the providedShapeField.QueryRelation.static QueryXYDocValuesField. newSlowGeometryQuery(java.lang.String field, XYGeometry... geometries)Create a query for matching points within the supplied geometries.static QueryDoubleRangeDocValuesField. newSlowIntersectsQuery(java.lang.String field, double[] min, double[] max)Create a new range query that finds all ranges that intersect using doc values.static QueryFloatRangeDocValuesField. newSlowIntersectsQuery(java.lang.String field, float[] min, float[] max)Create a new range query that finds all ranges that intersect using doc values.static QueryIntRangeDocValuesField. newSlowIntersectsQuery(java.lang.String field, int[] min, int[] max)Create a new range query that finds all ranges that intersect using doc values.static QueryLongRangeDocValuesField. newSlowIntersectsQuery(java.lang.String field, long[] min, long[] max)Create a new range query that finds all ranges that intersect using doc values.static QueryLatLonDocValuesField. newSlowPolygonQuery(java.lang.String field, Polygon... polygons)Create a query for matching points within the supplied polygons.static QueryXYDocValuesField. newSlowPolygonQuery(java.lang.String field, XYPolygon... polygons)Create a query for matching points within the supplied polygons.private static QueryDoubleRangeDocValuesField. newSlowRangeQuery(java.lang.String field, double[] min, double[] max, RangeFieldQuery.QueryType queryType)private static QueryFloatRangeDocValuesField. newSlowRangeQuery(java.lang.String field, float[] min, float[] max, RangeFieldQuery.QueryType queryType)private static QueryIntRangeDocValuesField. newSlowRangeQuery(java.lang.String field, int[] min, int[] max, RangeFieldQuery.QueryType queryType)private static QueryLongRangeDocValuesField. newSlowRangeQuery(java.lang.String field, long[] min, long[] max, RangeFieldQuery.QueryType queryType)static QueryNumericDocValuesField. newSlowRangeQuery(java.lang.String field, long lowerValue, long upperValue)Create a range query that matches all documents whose value is betweenlowerValueandupperValueincluded.static QuerySortedDocValuesField. newSlowRangeQuery(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)Create a range query that matches all documents whose value is betweenlowerValueandupperValueincluded.static QuerySortedNumericDocValuesField. newSlowRangeQuery(java.lang.String field, long lowerValue, long upperValue)Create a range query that matches all documents whose value is betweenlowerValueandupperValueincluded.static QuerySortedSetDocValuesField. newSlowRangeQuery(java.lang.String field, BytesRef lowerValue, BytesRef upperValue, boolean lowerInclusive, boolean upperInclusive)Create a range query that matches all documents whose value is betweenlowerValueandupperValue.static QueryDoubleRange. newWithinQuery(java.lang.String field, double[] min, double[] max)Create a query for matching indexed ranges that are within the defined range.static QueryFloatRange. newWithinQuery(java.lang.String field, float[] min, float[] max)Create a query for matching indexed ranges that are within the defined range.static QueryInetAddressRange. newWithinQuery(java.lang.String field, java.net.InetAddress min, java.net.InetAddress max)Create a query for matching indexed ip ranges that areWITHINthe defined range.static QueryIntRange. newWithinQuery(java.lang.String field, int[] min, int[] max)Create a query for matching indexed ranges that are within the defined range.static QueryLatLonBoundingBox. newWithinQuery(java.lang.String field, double minLat, double minLon, double maxLat, double maxLon)Create a new 2d query that finds all indexed 2d GeoBoundingBoxField values that are within the defined 2d bounding boxstatic QueryLongRange. newWithinQuery(java.lang.String field, long[] min, long[] max)Create a query for matching indexed ranges that are within the defined range.QueryBinaryRangeFieldRangeQuery. rewrite(IndexReader reader)QueryDoubleRangeSlowRangeQuery. rewrite(IndexReader reader)QueryFeatureQuery. rewrite(IndexReader reader)QueryFloatRangeSlowRangeQuery. rewrite(IndexReader reader)QueryIntRangeSlowRangeQuery. rewrite(IndexReader reader)QueryLongRangeSlowRangeQuery. rewrite(IndexReader reader)QuerySortedNumericDocValuesRangeQuery. rewrite(IndexReader reader)QuerySortedSetDocValuesRangeQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.index
Fields in org.apache.lucene.index declared as Query Modifier and Type Field Description (package private) Query[]FrozenBufferedUpdates. deleteQueriesprivate QueryPKIndexSplitter. docsInFirstIndexFields in org.apache.lucene.index with type parameters of type Query Modifier and Type Field Description (package private) java.util.Map<Query,java.lang.Integer>BufferedUpdates. deleteQueriesprivate java.util.function.Supplier<Query>SoftDeletesRetentionMergePolicy. retentionQuerySupplierMethods in org.apache.lucene.index with parameters of type Query Modifier and Type Method Description (package private) longDocumentsWriterDeleteQueue. addDelete(Query... queries)voidBufferedUpdates. addQuery(Query query, int docIDUpto)(package private) static CodecReaderSoftDeletesRetentionMergePolicy. applyRetentionQuery(java.lang.String softDeleteField, Query retentionQuery, CodecReader reader)private voidPKIndexSplitter. createIndex(IndexWriterConfig config, Directory target, DirectoryReader reader, Query preserveFilter, boolean negateFilter)longIndexWriter. deleteDocuments(Query... queries)Deletes the document(s) matching any of the provided queries.(package private) longDocumentsWriter. deleteQueries(Query... queries)private static ScorerSoftDeletesRetentionMergePolicy. getScorer(Query query, CodecReader reader)Constructors in org.apache.lucene.index with parameters of type Query Constructor Description PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Query docsInFirstIndex)Split an index based on aQuery.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Query docsInFirstIndex, IndexWriterConfig config1, IndexWriterConfig config2)QueryArrayNode(Query[] query)Constructor parameters in org.apache.lucene.index with type arguments of type Query Constructor Description SoftDeletesRetentionMergePolicy(java.lang.String field, java.util.function.Supplier<Query> retentionQuerySupplier, MergePolicy in)Creates a newSoftDeletesRetentionMergePolicy -
Uses of Query in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory with parameters of type Query Modifier and Type Method Description floatMemoryIndex. search(Query query)Convenience method that efficiently returns the relevance score by matching this index against the given Lucene query expression. -
Uses of Query in org.apache.lucene.monitor
Subclasses of Query in org.apache.lucene.monitor Modifier and Type Class Description (package private) classForceNoBulkScoringQueryQuery wrapper that forces its wrapped Query to use the default doc-by-doc BulkScorer.Fields in org.apache.lucene.monitor declared as Query Modifier and Type Field Description private QueryForceNoBulkScoringQuery. inner(package private) QueryParallelMatcher.MatcherTask. matchQuery(package private) QueryPartitionMatcher.MatchTask. matchQuery(package private) QueryQueryCacheEntry. matchQueryThe (possibly partial due to decomposition) queryprivate QueryMonitorQuery. queryFields in org.apache.lucene.monitor with type parameters of type Query Modifier and Type Field Description private java.util.function.BiFunction<Query,TermWeightor,QueryTree>QueryAnalyzer. unknownQueryMapperMethods in org.apache.lucene.monitor that return Query Modifier and Type Method Description QueryMultipassTermFilteredPresearcher.MultipassDocumentQueryBuilder. build()QueryTermFilteredPresearcher.DocumentQueryBuilder. build()private QueryTermFilteredPresearcher. buildFilterClause(LeafReader reader, java.lang.String field)private QueryTermFilteredPresearcher. buildFilterFields(LeafReader reader)abstract QueryPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.QueryQueryIndex.QueryBuilder. buildQuery(java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)QueryTermFilteredPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)QueryMonitorQuery. getQuery()QueryForceNoBulkScoringQuery. getWrappedQuery()QueryForceNoBulkScoringQuery. rewrite(IndexReader reader)Methods in org.apache.lucene.monitor that return types with arguments of type Query Modifier and Type Method Description private static java.util.function.BiFunction<Query,TermWeightor,QueryTree>QueryAnalyzer. buildMapper(java.util.List<CustomQueryHandler> mappers)java.util.Set<Query>QueryDecomposer. decompose(Query q)Split a query up into individual parts that can be indexed and run separatelyjava.util.Set<Query>QueryDecomposer. decomposeBoolean(BooleanQuery q)Decompose aBooleanQueryjava.util.Set<Query>QueryDecomposer. decomposeBoostQuery(BoostQuery q)Methods in org.apache.lucene.monitor with parameters of type Query Modifier and Type Method Description (package private) QueryTreeQueryAnalyzer. buildTree(Query luceneQuery, TermWeightor weightor)Create aQueryTreefrom a passed in Query or FiltervoidQueryAnalyzer.QueryBuilder. consumeTerms(Query query, Term... terms)java.util.Set<Query>QueryDecomposer. decompose(Query q)Split a query up into individual parts that can be indexed and run separatelyQueryVisitorQueryAnalyzer.QueryBuilder. getSubVisitor(BooleanClause.Occur occur, Query parent)QueryTreeCustomQueryHandler. handleQuery(Query query, TermWeightor termWeightor)Builds aQueryTreenode from a queryQueryTreeRegexpQueryHandler. handleQuery(Query q, TermWeightor termWeightor)abstract DocumentPresearcher. indexQuery(Query query, java.util.Map<java.lang.String,java.lang.String> metadata)Build a lucene Document to index the query in a Monitor's queryindexDocumentTermFilteredPresearcher. indexQuery(Query query, java.util.Map<java.lang.String,java.lang.String> metadata)protected abstract voidCandidateMatcher. matchQuery(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)Runs the supplied query against this CandidateMatcher's set of documents, storing any resulting match, and recording the query in the presearcher hitsprotected voidCollectingMatcher. matchQuery(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)protected voidParallelMatcher. matchQuery(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)protected voidPartitionMatcher. matchQuery(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)(package private) longQueryIndex. search(Query query, QueryIndex.QueryCollector matcher)voidQueryAnalyzer.QueryBuilder. visitLeaf(Query query)Method parameters in org.apache.lucene.monitor with type arguments of type Query Modifier and Type Method Description static MonitorQuerySerializerMonitorQuerySerializer. fromParser(java.util.function.Function<java.lang.String,Query> parser)Build a serializer from a query parserConstructors in org.apache.lucene.monitor with parameters of type Query Constructor Description ForceNoBulkScoringQuery(Query inner)MatcherTask(java.lang.String id, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)MatchTask(java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata)MonitorQuery(java.lang.String id, Query query)Creates a new MonitorQuery with empty metadata and no string representationMonitorQuery(java.lang.String id, Query query, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> metadata)Creates a new MonitorQueryQueryCacheEntry(java.lang.String cacheId, java.lang.String queryId, Query matchQuery, java.util.Map<java.lang.String,java.lang.String> metadata) -
Uses of Query in org.apache.lucene.payloads
Methods in org.apache.lucene.payloads with parameters of type Query Modifier and Type Method Description java.util.Collection<byte[]>PayloadSpanUtil. getPayloadsForQuery(Query query)Query should be rewritten for wild/fuzzy support.private voidPayloadSpanUtil. queryToSpanQuery(Query query, java.util.Collection<byte[]> payloads) -
Uses of Query in org.apache.lucene.queries
Subclasses of Query in org.apache.lucene.queries Modifier and Type Class Description classCommonTermsQueryA query that executes high-frequency terms in a optional sub-query to prevent slow queries due to "common" terms like stopwords.Methods in org.apache.lucene.queries that return Query Modifier and Type Method Description protected QueryCommonTermsQuery. buildQuery(int maxDoc, TermStates[] contextArray, Term[] queryTerms)protected QueryCommonTermsQuery. newTermQuery(Term term, TermStates termStates)Builds a new TermQuery instance.QueryCommonTermsQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.queries.function
Subclasses of Query in org.apache.lucene.queries.function Modifier and Type Class Description classFunctionMatchQueryA query that retrieves all documents with aDoubleValuesvalue matching a predicate This query works by a linear scan of the index, and is best used in conjunction with other queries that can restrict the number of documents visitedclassFunctionQueryReturns a score for each document based on a ValueSource, often some function of the value of a field.classFunctionRangeQueryA Query wrapping aValueSourcethat matches docs in which the values in the value source match a configured range.classFunctionScoreQueryA query that wraps another query, and uses a DoubleValuesSource to replace or modify the wrapped query's score If the DoubleValuesSource doesn't return a value for a particular document, then that document will be given a score of 0.Fields in org.apache.lucene.queries.function declared as Query Modifier and Type Field Description private QueryFunctionScoreQuery. inMethods in org.apache.lucene.queries.function that return Query Modifier and Type Method Description QueryFunctionScoreQuery. getWrappedQuery()QueryFunctionScoreQuery. rewrite(IndexReader reader)Methods in org.apache.lucene.queries.function with parameters of type Query Modifier and Type Method Description static FunctionScoreQueryFunctionScoreQuery. boostByQuery(Query in, Query boostMatch, float boostValue)Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by a boost factor if the document being scored also matches a separate boosting query.static FunctionScoreQueryFunctionScoreQuery. boostByValue(Query in, DoubleValuesSource boost)Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by the value of a DoubleValuesSource.Constructors in org.apache.lucene.queries.function with parameters of type Query Constructor Description FunctionScoreQuery(Query in, DoubleValuesSource source)Create a new FunctionScoreQueryFunctionScoreWeight(Query query, Weight inner, DoubleValuesSource valueSource, float boost) -
Uses of Query in org.apache.lucene.queries.function.valuesource
Fields in org.apache.lucene.queries.function.valuesource declared as Query Modifier and Type Field Description (package private) QueryQueryDocValues. q(package private) QueryQueryValueSource. qMethods in org.apache.lucene.queries.function.valuesource that return Query Modifier and Type Method Description QueryQueryValueSource. getQuery()Constructors in org.apache.lucene.queries.function.valuesource with parameters of type Query Constructor Description QueryValueSource(Query q, float defVal) -
Uses of Query in org.apache.lucene.queries.intervals
Subclasses of Query in org.apache.lucene.queries.intervals Modifier and Type Class Description classIntervalQueryA query that retrieves documents containing intervals returned from anIntervalsSourceStatic constructor functions for various different sources can be found in theIntervalsclass Scores for this query are computed as a function of the sloppy frequency of intervals appearing in a particular document.Fields in org.apache.lucene.queries.intervals declared as Query Modifier and Type Field Description private Query[]CachingMatchesIterator. matchingQueriesMethods in org.apache.lucene.queries.intervals that return Query Modifier and Type Method Description QueryConjunctionIntervalsSource.ConjunctionMatchesIterator. getQuery()QueryDisjunctionIntervalsSource.DisjunctionMatchesIterator. getQuery()QueryMinimizingConjunctionMatchesIterator. getQuery()QueryMinimumShouldMatchIntervalsSource.MinimumMatchesIterator. getQuery()QueryRepeatingIntervalsSource.DuplicateMatchesIterator. getQuery()Constructors in org.apache.lucene.queries.intervals with parameters of type Query Constructor Description IntervalWeight(Query query, float boost, ScoreMode scoreMode) -
Uses of Query in org.apache.lucene.queries.mlt
Subclasses of Query in org.apache.lucene.queries.mlt Modifier and Type Class Description classMoreLikeThisQueryA simple wrapper for MoreLikeThis for use in scenarios where a Query object is required eg in custom QueryParser extensions.Methods in org.apache.lucene.queries.mlt that return Query Modifier and Type Method Description private QueryMoreLikeThis. createQuery(PriorityQueue<MoreLikeThis.ScoreTerm> q)Create the More like query from a PriorityQueueQueryMoreLikeThis. like(int docNum)Return a query that will return docs like the passed lucene document ID.QueryMoreLikeThis. like(java.lang.String fieldName, java.io.Reader... readers)Return a query that will return docs like the passed Readers.QueryMoreLikeThis. like(java.util.Map<java.lang.String,java.util.Collection<java.lang.Object>> filteredDocument)QueryMoreLikeThisQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.queries.payloads
Subclasses of Query in org.apache.lucene.queries.payloads Modifier and Type Class Description classPayloadScoreQueryA Query class that uses aPayloadFunctionto modify the score of a wrapped SpanQueryclassSpanPayloadCheckQueryOnly return those matches that have a specific payload at the given position.Methods in org.apache.lucene.queries.payloads that return Query Modifier and Type Method Description QueryPayloadScoreQuery. rewrite(IndexReader reader)QuerySpanPayloadCheckQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic that return Query Modifier and Type Method Description private QueryMultiFieldQueryParser. applySlop(Query q, int slop)QueryQueryParser. Clause(java.lang.String field)protected QueryQueryParserBase. getBooleanQuery(java.util.List<BooleanClause> clauses)Factory method for generating query, given a set of clauses.protected QueryMultiFieldQueryParser. getFieldQuery(java.lang.String field, java.lang.String queryText, boolean quoted)protected QueryMultiFieldQueryParser. getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)protected QueryQueryParserBase. getFieldQuery(java.lang.String field, java.lang.String queryText, boolean quoted)protected QueryQueryParserBase. getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)Base implementation delegates toQueryParserBase.getFieldQuery(String,String,boolean).protected QueryMultiFieldQueryParser. getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)protected QueryQueryParserBase. getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)Factory method for generating a query (similar toQueryParserBase.getWildcardQuery(java.lang.String, java.lang.String)).protected QueryMultiFieldQueryParser. getMultiFieldQuery(java.util.List<Query> queries)Creates a multifield queryprotected QueryMultiFieldQueryParser. getPrefixQuery(java.lang.String field, java.lang.String termStr)protected QueryQueryParserBase. getPrefixQuery(java.lang.String field, java.lang.String termStr)Factory method for generating a query (similar toQueryParserBase.getWildcardQuery(java.lang.String, java.lang.String)).protected QueryMultiFieldQueryParser. getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean startInclusive, boolean endInclusive)protected QueryQueryParserBase. getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean startInclusive, boolean endInclusive)protected QueryMultiFieldQueryParser. getRegexpQuery(java.lang.String field, java.lang.String termStr)protected QueryQueryParserBase. getRegexpQuery(java.lang.String field, java.lang.String termStr)Factory method for generating a query.protected QueryMultiFieldQueryParser. getWildcardQuery(java.lang.String field, java.lang.String termStr)protected QueryQueryParserBase. getWildcardQuery(java.lang.String field, java.lang.String termStr)Factory method for generating a query.(package private) QueryQueryParserBase. handleBareFuzzy(java.lang.String qfield, Token fuzzySlop, java.lang.String termImage)(package private) QueryQueryParserBase. handleBareTokenQuery(java.lang.String qfield, Token term, Token fuzzySlop, boolean prefix, boolean wildcard, boolean fuzzy, boolean regexp)(package private) QueryQueryParserBase. handleBoost(Query q, Token boost)(package private) QueryQueryParserBase. handleQuotedTerm(java.lang.String qfield, Token term, Token fuzzySlop)QueryQueryParser. MultiTerm(java.lang.String field, java.util.List<BooleanClause> clauses)Returns the first query if splitOnWhitespace=true or otherwise the entire produced queryprotected QueryQueryParserBase. newFieldQuery(Analyzer analyzer, java.lang.String field, java.lang.String queryText, boolean quoted)protected QueryQueryParserBase. newFuzzyQuery(Term term, float minimumSimilarity, int prefixLength)Builds a new FuzzyQuery instanceprotected QueryQueryParserBase. newMatchAllDocsQuery()Builds a new MatchAllDocsQuery instanceprotected QueryQueryParserBase. newPrefixQuery(Term prefix)Builds a new PrefixQuery instanceprotected QueryQueryParserBase. newRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean startInclusive, boolean endInclusive)Builds a newTermRangeQueryinstanceprotected QueryQueryParserBase. newRegexpQuery(Term regexp)Builds a new RegexpQuery instanceprotected QueryQueryParserBase. newWildcardQuery(Term t)Builds a new WildcardQuery instancestatic QueryMultiFieldQueryParser. parse(java.lang.String[] queries, java.lang.String[] fields, Analyzer analyzer)Parses a query which searches on the fields specified.static QueryMultiFieldQueryParser. parse(java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.static QueryMultiFieldQueryParser. parse(java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.QueryQueryParserBase. parse(java.lang.String query)Parses a query string, returning aQuery.QueryQueryParser. Query(java.lang.String field)QueryQueryParser. Term(java.lang.String field)QueryQueryParser. TopLevelQuery(java.lang.String field)abstract QueryQueryParserBase. TopLevelQuery(java.lang.String field)Methods in org.apache.lucene.queryparser.classic with parameters of type Query Modifier and Type Method Description protected voidQueryParserBase. addClause(java.util.List<BooleanClause> clauses, int conj, int mods, Query q)protected voidQueryParserBase. addMultiTermClauses(java.util.List<BooleanClause> clauses, Query q)Adds clauses generated from analysis over text containing whitespace.private QueryMultiFieldQueryParser. applySlop(Query q, int slop)(package private) QueryQueryParserBase. handleBoost(Query q, Token boost)protected BooleanClauseQueryParserBase. newBooleanClause(Query q, BooleanClause.Occur occur)Builds a new BooleanClause instanceMethod parameters in org.apache.lucene.queryparser.classic with type arguments of type Query Modifier and Type Method Description protected QueryMultiFieldQueryParser. getMultiFieldQuery(java.util.List<Query> queries)Creates a multifield query -
Uses of Query in org.apache.lucene.queryparser.complexPhrase
Subclasses of Query in org.apache.lucene.queryparser.complexPhrase Modifier and Type Class Description (package private) static classComplexPhraseQueryParser.ComplexPhraseQueryFields in org.apache.lucene.queryparser.complexPhrase declared as Query Modifier and Type Field Description private Query[]ComplexPhraseQueryParser.ComplexPhraseQuery. contentsMethods in org.apache.lucene.queryparser.complexPhrase that return Query Modifier and Type Method Description protected QueryComplexPhraseQueryParser. getFieldQuery(java.lang.String field, java.lang.String queryText, int slop)protected QueryComplexPhraseQueryParser. getFuzzyQuery(java.lang.String field, java.lang.String termStr, float minSimilarity)protected QueryComplexPhraseQueryParser. getRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean startInclusive, boolean endInclusive)protected QueryComplexPhraseQueryParser. getWildcardQuery(java.lang.String field, java.lang.String termStr)protected QueryComplexPhraseQueryParser. newRangeQuery(java.lang.String field, java.lang.String part1, java.lang.String part2, boolean startInclusive, boolean endInclusive)protected QueryComplexPhraseQueryParser. newTermQuery(Term term, float boost)QueryComplexPhraseQueryParser. parse(java.lang.String query)QueryComplexPhraseQueryParser.ComplexPhraseQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.queryparser.ext
Methods in org.apache.lucene.queryparser.ext that return Query Modifier and Type Method Description protected QueryExtendableQueryParser. getFieldQuery(java.lang.String field, java.lang.String queryText, boolean quoted)abstract QueryParserExtension. parse(ExtensionQuery query)Processes the givenExtensionQueryand returns a correspondingQueryinstance. -
Uses of Query in org.apache.lucene.queryparser.flexible.standard
Methods in org.apache.lucene.queryparser.flexible.standard that return Query Modifier and Type Method Description static QueryQueryParserUtil. parse(java.lang.String[] queries, java.lang.String[] fields, Analyzer analyzer)Parses a query which searches on the fields specified.static QueryQueryParserUtil. parse(java.lang.String[] queries, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.static QueryQueryParserUtil. parse(java.lang.String query, java.lang.String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)Parses a query, searching on the fields specified.QueryStandardQueryParser. parse(java.lang.String query, java.lang.String defaultField)OverridesQueryParserHelper.parse(String, String)so it casts the return object toQuery. -
Uses of Query in org.apache.lucene.queryparser.flexible.standard.builders
Methods in org.apache.lucene.queryparser.flexible.standard.builders that return Query Modifier and Type Method Description QueryBoostQueryNodeBuilder. build(QueryNode queryNode)QueryGroupQueryNodeBuilder. build(QueryNode queryNode)QueryModifierQueryNodeBuilder. build(QueryNode queryNode)QueryPhraseQueryNodeBuilder. build(QueryNode queryNode)QueryPointRangeQueryNodeBuilder. build(QueryNode queryNode)QuerySlopQueryNodeBuilder. build(QueryNode queryNode)QueryStandardQueryBuilder. build(QueryNode queryNode)QueryStandardQueryTreeBuilder. build(QueryNode queryNode)QuerySynonymQueryNodeBuilder. build(QueryNode queryNode) -
Uses of Query in org.apache.lucene.queryparser.simple
Fields in org.apache.lucene.queryparser.simple declared as Query Modifier and Type Field Description (package private) QuerySimpleQueryParser.State. topMethods in org.apache.lucene.queryparser.simple that return Query Modifier and Type Method Description protected QuerySimpleQueryParser. newDefaultQuery(java.lang.String text)Factory method to generate a standard query (no phrase or prefix operators).protected QuerySimpleQueryParser. newFuzzyQuery(java.lang.String text, int fuzziness)Factory method to generate a fuzzy query.protected QuerySimpleQueryParser. newPhraseQuery(java.lang.String text, int slop)Factory method to generate a phrase query with slop.protected QuerySimpleQueryParser. newPrefixQuery(java.lang.String text)Factory method to generate a prefix query.QuerySimpleQueryParser. parse(java.lang.String queryText)Parses the query text and returns parsed queryprotected QuerySimpleQueryParser. simplify(BooleanQuery bq)Helper to simplify boolean queries with 0 or 1 clauseMethods in org.apache.lucene.queryparser.simple with parameters of type Query Modifier and Type Method Description private static BooleanQuerySimpleQueryParser. addClause(BooleanQuery bq, Query query, BooleanClause.Occur occur)private voidSimpleQueryParser. buildQueryTree(SimpleQueryParser.State state, Query branch) -
Uses of Query in org.apache.lucene.queryparser.surround.query
Subclasses of Query in org.apache.lucene.queryparser.surround.query Modifier and Type Class Description (package private) classDistanceRewriteQuery(package private) classRewriteQuery<SQ extends SrndQuery>(package private) classSimpleTermRewriteQueryMethods in org.apache.lucene.queryparser.surround.query that return Query Modifier and Type Method Description QueryDistanceQuery. getSpanNearQuery(IndexReader reader, java.lang.String fieldName, BasicQueryFactory qf)static QuerySrndBooleanQuery. makeBooleanQuery(java.util.List<Query> queries, BooleanClause.Occur occur)QuerySrndQuery. makeLuceneQueryField(java.lang.String fieldName, BasicQueryFactory qf)QueryAndQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QueryDistanceQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QueryFieldsQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QueryNotQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QueryOrQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QuerySimpleTerm. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)abstract QuerySrndQuery. makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)QueryFieldsQuery. makeLuceneQueryNoBoost(BasicQueryFactory qf)QueryDistanceRewriteQuery. rewrite(IndexReader reader)abstract QueryRewriteQuery. rewrite(IndexReader reader)QuerySimpleTermRewriteQuery. rewrite(IndexReader reader)Methods in org.apache.lucene.queryparser.surround.query that return types with arguments of type Query Modifier and Type Method Description java.util.List<Query>ComposedQuery. makeLuceneSubQueriesField(java.lang.String fn, BasicQueryFactory qf)Methods in org.apache.lucene.queryparser.surround.query with parameters of type Query Modifier and Type Method Description voidSpanNearClauseFactory. addSpanQuery(Query q)Method parameters in org.apache.lucene.queryparser.surround.query with type arguments of type Query Modifier and Type Method Description static voidSrndBooleanQuery. addQueriesToBoolean(BooleanQuery.Builder bq, java.util.List<Query> queries, BooleanClause.Occur occur)static QuerySrndBooleanQuery. makeBooleanQuery(java.util.List<Query> queries, BooleanClause.Occur occur) -
Uses of Query in org.apache.lucene.queryparser.xml
Methods in org.apache.lucene.queryparser.xml that return Query Modifier and Type Method Description QueryCoreParser. getQuery(org.w3c.dom.Element e)QueryQueryBuilder. getQuery(org.w3c.dom.Element e)QueryQueryBuilderFactory. getQuery(org.w3c.dom.Element n)QueryCoreParser. parse(java.io.InputStream xmlStream)Parses the given stream as XML file and returns aQuery. -
Uses of Query in org.apache.lucene.queryparser.xml.builders
Methods in org.apache.lucene.queryparser.xml.builders that return Query Modifier and Type Method Description QueryBooleanQueryBuilder. getQuery(org.w3c.dom.Element e)QueryConstantScoreQueryBuilder. getQuery(org.w3c.dom.Element e)QueryDisjunctionMaxQueryBuilder. getQuery(org.w3c.dom.Element e)QueryFuzzyLikeThisQueryBuilder. getQuery(org.w3c.dom.Element e)QueryLikeThisQueryBuilder. getQuery(org.w3c.dom.Element e)QueryMatchAllDocsQueryBuilder. getQuery(org.w3c.dom.Element e)QueryPointRangeQueryBuilder. getQuery(org.w3c.dom.Element e)QueryRangeQueryBuilder. getQuery(org.w3c.dom.Element e)QuerySpanBuilderBase. getQuery(org.w3c.dom.Element e)QuerySpanQueryBuilderFactory. getQuery(org.w3c.dom.Element e)QueryTermQueryBuilder. getQuery(org.w3c.dom.Element e)QueryTermsQueryBuilder. getQuery(org.w3c.dom.Element e)QueryUserInputQueryBuilder. getQuery(org.w3c.dom.Element e) -
Uses of Query in org.apache.lucene.sandbox.queries
Subclasses of Query in org.apache.lucene.sandbox.queries Modifier and Type Class Description classFuzzyLikeThisQueryFuzzifies ALL terms provided as strings and then picks the best n differentiating terms.Methods in org.apache.lucene.sandbox.queries that return Query Modifier and Type Method Description private QueryFuzzyLikeThisQuery. newTermQuery(IndexReader reader, Term term)QueryFuzzyLikeThisQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.search
Subclasses of Query in org.apache.lucene.search Modifier and Type Class Description classAutomatonQueryAQuerythat will match terms against a finite-state machine.classBlendedTermQueryAQuerythat blends index statistics across multiple terms.classBM25FQueryAQuerythat treats multiple fields as a single stream and scores terms as if you had indexed them as a single term in a single field.classBooleanQueryA Query that matches documents matching boolean combinations of other queries, e.g.classBoostQueryAQuerywrapper that allows to give a boost to the wrapped query.classConstantScoreQueryA query that wraps another query and simply returns a constant score equal to 1 for every document that matches the query.classCoveringQueryAQuerythat allows to have a configurable number or required matches per document.classDisjunctionMaxQueryA query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.classDocValuesFieldExistsQueryAQuerythat matches documents that have a value for a given field as reported by doc values iterators.classDocValuesNumbersQueryLikeDocValuesTermsQuery, but this query only runs on a longNumericDocValuesFieldor aSortedNumericDocValuesField, matching all documents whose value in the specified field is contained in the provided set of long values.(package private) static classDocValuesRewriteMethod.MultiTermQueryDocValuesWrapperclassDocValuesTermsQueryAQuerythat only accepts documents whose term value in the specified field is contained in the provided set of allowed terms.classFuzzyQueryImplements the fuzzy search query.classIndexOrDocValuesQueryA query that uses either an index structure (points or terms) or doc values in order to run a query, depending which one is more efficient.classIndexSortSortedNumericDocValuesRangeQueryA range query that can take advantage of the fact that the index is sorted to speed up execution.classMatchAllDocsQueryA query that matches all documents.classMatchNoDocsQueryA query that matches no documents.classMultiPhraseQueryA generalized version ofPhraseQuery, with the possibility of adding more than one term at the same position that are treated as a disjunction (OR).classMultiRangeQueryAbstract class for range queries involving multiple ranges against physical points such asIntPointsAll ranges are logically ORed together TODO: Add capability for handling overlapping ranges at rewrite timeclassMultiTermQueryAn abstractQuerythat matches documents containing a subset of terms provided by aFilteredTermsEnumenumeration.(package private) classMultiTermQueryConstantScoreWrapper<Q extends MultiTermQuery>This class also provides the functionality behindMultiTermQuery.CONSTANT_SCORE_REWRITE.private static classNamedMatches.NamedQueryclassNGramPhraseQueryThis is aPhraseQuerywhich is optimized for n-gram phrase query.classNormsFieldExistsQueryAQuerythat matches documents that have a value for a given field as reported by field norms.classPhraseQueryA Query that matches documents containing a particular sequence of terms.classPhraseWildcardQueryA generalized version ofPhraseQuery, built with one or moreMultiTermQuerythat provides term expansions for multi-terms (one of the expanded terms must match).classPointInSetQueryAbstract query class to find all documents whose single or multi-dimensional point values, previously indexed with e.g.classPointRangeQueryAbstract class for range queries against single or multidimensional points such asIntPoint.classPrefixQueryA Query that matches documents containing terms with a specified prefix.classRegexpQueryA fast regular expression query based on theorg.apache.lucene.util.automatonpackage.classSynonymQueryA query that treats multiple terms as synonyms.classTermAutomatonQueryA proximity query that lets you express an automaton, whose transitions are terms, to match documents.classTermInSetQuerySpecialization for a disjunction over many terms that behaves like aConstantScoreQueryover aBooleanQuerycontaining onlyBooleanClause.Occur.SHOULDclauses.classTermQueryA Query that matches documents containing a term.classTermRangeQueryA Query that matches documents within an range of terms.classWildcardQueryImplements the wildcard search query.Fields in org.apache.lucene.search declared as Query Modifier and Type Field Description private Query[]DisjunctionMaxQuery. disjunctsprivate QueryIndexOrDocValuesQuery. dvQueryprivate QueryIndexSortSortedNumericDocValuesRangeQuery. fallbackQueryprivate QueryNamedMatches.NamedQuery. inprivate QueryIndexOrDocValuesQuery. indexQueryprotected static QueryPhraseWildcardQuery. NO_MATCH_QUERYprotected QueryWeight. parentQueryprivate QueryBooleanClause. queryThe query whose matching documents are combined by the boolean query.private QueryBoostQuery. queryprivate QueryConstantScoreQuery. queryprivate QueryDisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator. queryprivate QueryDoubleValuesSource.QueryDoubleValuesSource. queryprivate QueryQueryRescorer. queryprivate QueryTermMatchesIterator. queryFields in org.apache.lucene.search with type parameters of type Query Modifier and Type Field Description private java.util.Map<Query,DocIdSet>LRUQueryCache.LeafCache. cacheprivate java.util.Map<BooleanClause.Occur,java.util.Collection<Query>>BooleanQuery. clauseSetsprivate java.util.Set<Query>LRUQueryCache. mostRecentlyUsedQueriesprivate java.util.Collection<Query>CoveringQuery. queriesprivate java.util.Map<Query,Query>LRUQueryCache. uniqueQueriesprivate java.util.Map<Query,Query>LRUQueryCache. uniqueQueriesMethods in org.apache.lucene.search that return Query Modifier and Type Method Description protected QueryMultiTermQuery.TopTermsBlendedFreqScoringRewrite. build(BlendedTermQuery.Builder builder)protected QueryMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite. build(BooleanQuery.Builder builder)protected QueryMultiTermQuery.TopTermsScoringBooleanQueryRewrite. build(BooleanQuery.Builder builder)protected abstract QueryTermCollectingRewrite. build(B builder)Finalize the creation of the query from the builder.QueryIndexSortSortedNumericDocValuesRangeQuery. getFallbackQuery()QueryIndexOrDocValuesQuery. getIndexQuery()Return the wrapped query that may be costly to initialize but has a good iterator.QueryBooleanClause. getQuery()QueryBoostQuery. getQuery()Return the wrappedQuery.QueryConstantScoreQuery. getQuery()Returns the encapsulated query.QueryDisjunctionMatchesIterator. getQuery()QueryDisjunctionMatchesIterator.TermsEnumDisjunctionMatchesIterator. getQuery()QueryFilterMatchesIterator. getQuery()QueryMatchesIterator. getQuery()Returns the Query causing the current match If thisMatchesIteratorhas been returned from aMatchesIterator.getSubMatches()call, then returns aTermQueryequivalent to the current match Should only be called afterMatchesIterator.next()has returnedtrueprotected QueryPhraseWildcardQuery.MultiTerm. getQuery()protected abstract QueryPhraseWildcardQuery.PhraseTerm. getQuery()protected QueryPhraseWildcardQuery.SingleTerm. getQuery()QueryTermMatchesIterator. getQuery()QueryWeight. getQuery()The query that this concerns.QueryIndexOrDocValuesQuery. getRandomAccessQuery()Return the wrapped query that may be slow at identifying all matching documents, but which is cheap to initialize and can efficiently verify that some documents match.QueryBlendedTermQuery.DisjunctionMaxRewrite. rewrite(Query[] subQueries)QueryBlendedTermQuery. rewrite(IndexReader reader)abstract QueryBlendedTermQuery.RewriteMethod. rewrite(Query[] subQueries)Merge the provided sub queries into a singleQueryobject.QueryBM25FQuery. rewrite(IndexReader reader)QueryBooleanQuery. rewrite(IndexReader reader)QueryBoostQuery. rewrite(IndexReader reader)QueryConstantScoreQuery. rewrite(IndexReader reader)QueryCoveringQuery. rewrite(IndexReader reader)QueryDisjunctionMaxQuery. rewrite(IndexReader reader)Optimize our representation and our subqueries representationsQueryDocValuesRewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)QueryIndexOrDocValuesQuery. rewrite(IndexReader reader)QueryIndexSearcher. rewrite(Query original)Expert: called to re-write queries into primitive queries.QueryIndexSortSortedNumericDocValuesRangeQuery. rewrite(IndexReader reader)QueryMultiPhraseQuery. rewrite(IndexReader reader)QueryMultiTermQuery. rewrite(IndexReader reader)To rewrite to a simpler form, instead return a simpler enum fromMultiTermQuery.getTermsEnum(Terms, AttributeSource).abstract QueryMultiTermQuery.RewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)QueryNamedMatches.NamedQuery. rewrite(IndexReader reader)QueryNGramPhraseQuery. rewrite(IndexReader reader)QueryPhraseQuery. rewrite(IndexReader reader)QueryPhraseWildcardQuery. rewrite(IndexReader reader)QueryQuery. rewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.QueryScoringRewrite. rewrite(IndexReader reader, MultiTermQuery query)QuerySynonymQuery. rewrite(IndexReader reader)QueryTermAutomatonQuery. rewrite(IndexReader reader)QueryTermInSetQuery. rewrite(IndexReader reader)QueryTopTermsRewrite. rewrite(IndexReader reader, MultiTermQuery query)static QueryNamedMatches. wrapQuery(java.lang.String name, Query in)Wrap a Query so that it associates a name with itsMatchesMethods in org.apache.lucene.search that return types with arguments of type Query Modifier and Type Method Description (package private) java.util.List<Query>LRUQueryCache. cachedQueries()(package private) java.util.Collection<Query>BooleanQuery. getClauses(BooleanClause.Occur occur)Return the collection of queries for the givenBooleanClause.Occur.java.util.List<Query>DisjunctionMaxQuery. getDisjuncts()java.util.Iterator<Query>DisjunctionMaxQuery. iterator()Methods in org.apache.lucene.search with parameters of type Query Modifier and Type Method Description BooleanQuery.BuilderBooleanQuery.Builder. add(Query query, BooleanClause.Occur occur)Add a new clause to thisBooleanQuery.Builder.voidLRUQueryCache. clearQuery(Query query)Remove all cache entries for the given query.voidQueryVisitor. consumeTerms(Query query, Term... terms)Called by leaf queries that match on specific termsvoidQueryVisitor. consumeTermsMatching(Query query, java.lang.String field, java.util.function.Supplier<ByteRunAutomaton> automaton)Called by leaf queries that match on a class of termsintIndexSearcher. count(Query query)Count how many documents match the given query.WeightIndexSearcher. createWeight(Query query, ScoreMode scoreMode, float boost)Creates aWeightfor the given query, potentially adding caching if possible and configured.static MatchesIteratorMatchesUtils. disjunction(LeafReaderContext context, int doc, Query query, java.lang.String field, BytesRefIterator terms)Create a MatchesIterator that is a disjunction over a list of terms extracted from aBytesRefIterator.ExplanationIndexSearcher. explain(Query query, int doc)Returns an Explanation that describes howdocscored againstquery.(package private) intUsageTrackingQueryCachingPolicy. frequency(Query query)static DoubleValuesSourceDoubleValuesSource. fromQuery(Query query)Create a DoubleValuesSource that returns the score of a particular query(package private) static MatchesIteratorDisjunctionMatchesIterator. fromTerms(LeafReaderContext context, int doc, Query query, java.lang.String field, java.util.List<Term> terms)Create aDisjunctionMatchesIteratorover a list of terms Only terms that have at least one match in the given document will be included(package private) static MatchesIteratorDisjunctionMatchesIterator. fromTermsEnum(LeafReaderContext context, int doc, Query query, java.lang.String field, BytesRefIterator terms)Create aDisjunctionMatchesIteratorover a list of terms extracted from aBytesRefIteratorOnly terms that have at least one match in the given document will be included(package private) DocIdSetLRUQueryCache. get(Query key, IndexReader.CacheHelper cacheHelper)(package private) DocIdSetLRUQueryCache.LeafCache. get(Query query)QueryVisitorQueryVisitor. getSubVisitor(BooleanClause.Occur occur, Query parent)Pulls a visitor instance for visiting child clauses of a query The default implementation returnsthis, unlessoccuris equal toBooleanClause.Occur.MUST_NOTin which case it returnsQueryVisitor.EMPTY_VISITOR(package private) static booleanUsageTrackingQueryCachingPolicy. isCostly(Query query)private static booleanUsageTrackingQueryCachingPolicy. isPointQuery(Query query)protected intUsageTrackingQueryCachingPolicy. minFrequencyToCache(Query query)For a given filter, return how many times it should appear in the history before being cached.private voidLRUQueryCache. onEviction(Query singleton)protected voidLRUQueryCache. onHit(java.lang.Object readerCoreKey, Query query)Expert: callback when there is a cache hit on a given query.protected voidLRUQueryCache. onMiss(java.lang.Object readerCoreKey, Query query)Expert: callback when there is a cache miss on a given query.protected voidLRUQueryCache. onQueryCache(Query query, long ramBytesUsed)Expert: callback when a query is added to this cache.protected voidLRUQueryCache. onQueryEviction(Query query, long ramBytesUsed)Expert: callback when a query is evicted from this cache.voidQueryCachingPolicy. onUse(Query query)Callback that is called every time that a cached filter is used.voidUsageTrackingQueryCachingPolicy. onUse(Query query)static voidTopFieldCollector. populateScores(ScoreDoc[] topDocs, IndexSearcher searcher, Query query)Populatescoresof the giventopDocs.(package private) voidLRUQueryCache.LeafCache. putIfAbsent(Query query, DocIdSet set)private voidLRUQueryCache. putIfAbsent(Query query, DocIdSet set, IndexReader.CacheHelper cacheHelper)(package private) voidLRUQueryCache.LeafCache. remove(Query query)static TopDocsQueryRescorer. rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScoreQueryBlendedTermQuery.DisjunctionMaxRewrite. rewrite(Query[] subQueries)abstract QueryBlendedTermQuery.RewriteMethod. rewrite(Query[] subQueries)Merge the provided sub queries into a singleQueryobject.QueryIndexSearcher. rewrite(Query original)Expert: called to re-write queries into primitive queries.TopDocsIndexSearcher. search(Query query, int n)Finds the topnhits forquery.TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort)Search implementation with arbitrary sorting.TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort, boolean doDocScores)Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.voidIndexSearcher. search(Query query, Collector results)Lower-level search API.<C extends Collector,T>
TIndexSearcher. search(Query query, CollectorManager<C,T> collectorManager)Lower-level search API.private TopFieldDocsIndexSearcher. searchAfter(FieldDoc after, Query query, int numHits, Sort sort, boolean doDocScores)TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits)Finds the topnhits forquerywhere all results are after a previous result (after).TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int n, Sort sort)Finds the topnhits forquerywhere all results are after a previous result (after).TopFieldDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores)Finds the topnhits forquerywhere all results are after a previous result (after), allowing control over whether hit scores and max score should be computed.booleanQueryCachingPolicy. shouldCache(Query query)Whether the givenQueryis worth caching.booleanUsageTrackingQueryCachingPolicy. shouldCache(Query query)private static booleanUsageTrackingQueryCachingPolicy. shouldNeverCache(Query query)voidQueryVisitor. visitLeaf(Query query)Called by leaf queries that do not match on termsstatic QueryNamedMatches. wrapQuery(java.lang.String name, Query in)Wrap a Query so that it associates a name with itsMatchesConstructors in org.apache.lucene.search with parameters of type Query Constructor Description BM25FWeight(Query query, IndexSearcher searcher, ScoreMode scoreMode, float boost)BooleanClause(Query query, BooleanClause.Occur occur)Constructs a BooleanClause.BoostQuery(Query query, float boost)Sole constructor: wrapqueryin such a way that the produced scores will be boosted byboost.ConstantScoreQuery(Query query)Strips off scores from the passed in Query.ConstantScoreWeight(Query query, float score)CoveringWeight(Query query, java.util.Collection<Weight> weights, LongValuesSource minimumNumberMatch)FilterWeight(Query query, Weight weight)Alternative constructor.IndexOrDocValuesQuery(Query indexQuery, Query dvQuery)Create anIndexOrDocValuesQuery.IndexSortSortedNumericDocValuesRangeQuery(java.lang.String field, long lowerValue, long upperValue, Query fallbackQuery)Creates a newIndexSortSortedNumericDocValuesRangeQuery.NamedQuery(java.lang.String name, Query in)PhraseWeight(Query query, java.lang.String field, IndexSearcher searcher, ScoreMode scoreMode)QueryDoubleValuesSource(Query query)QueryRescorer(Query query)Sole constructor, passing the 2nd pass query to assign scores to the 1st pass hits.SynonymWeight(Query query, IndexSearcher searcher, ScoreMode scoreMode, float boost)TermMatchesIterator(Query query, PostingsEnum pe)Create a newTermMatchesIteratorfor the given term and postings listTermsEnumDisjunctionMatchesIterator(MatchesIterator first, BytesRefIterator terms, TermsEnum te, int doc, Query query)Weight(Query query)Sole constructor, typically invoked by sub-classes.Constructor parameters in org.apache.lucene.search with type arguments of type Query Constructor Description CoveringQuery(java.util.Collection<Query> queries, LongValuesSource minimumNumberMatch)Sole constructor.DisjunctionMaxQuery(java.util.Collection<Query> disjuncts, float tieBreakerMultiplier)Creates a new DisjunctionMaxQuery -
Uses of Query in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as Query Modifier and Type Field Description private QueryGroupingSearch. groupEndDocsMethods in org.apache.lucene.search.grouping with parameters of type Query Modifier and Type Method Description protected TopGroups<?>GroupingSearch. groupByDocBlock(IndexSearcher searcher, Query query, int groupOffset, int groupLimit)protected TopGroupsGroupingSearch. groupByFieldOrFunction(IndexSearcher searcher, Query query, int groupOffset, int groupLimit)<T> TopGroups<T>GroupingSearch. search(IndexSearcher searcher, Query query, int groupOffset, int groupLimit)Executes a grouped search.Constructors in org.apache.lucene.search.grouping with parameters of type Query Constructor Description GroupingSearch(GroupSelector<?> grouper, Query groupEndDocs)GroupingSearch(Query groupEndDocs)Constructor for grouping documents by doc block. -
Uses of Query in org.apache.lucene.search.highlight
Fields in org.apache.lucene.search.highlight declared as Query Modifier and Type Field Description private QueryQueryScorer. queryMethods in org.apache.lucene.search.highlight with parameters of type Query Modifier and Type Method Description voidQueryTermExtractor.BoostedTermExtractor. consumeTerms(Query query, Term... terms)protected voidWeightedSpanTermExtractor. extract(Query query, float boost, java.util.Map<java.lang.String,WeightedSpanTerm> terms)protected voidWeightedSpanTermExtractor. extractUnknownQuery(Query query, java.util.Map<java.lang.String,WeightedSpanTerm> terms)protected voidWeightedSpanTermExtractor. extractWeightedTerms(java.util.Map<java.lang.String,WeightedSpanTerm> terms, Query query, float boost)static WeightedTerm[]QueryTermExtractor. getIdfWeightedTerms(Query query, IndexReader reader, java.lang.String fieldName)Extracts all terms texts of a given Query into an array of WeightedTermsQueryVisitorQueryTermExtractor.BoostedTermExtractor. getSubVisitor(BooleanClause.Occur occur, Query parent)static WeightedTerm[]QueryTermExtractor. getTerms(Query query)Extracts all terms texts of a given Query into an array of WeightedTermsstatic WeightedTerm[]QueryTermExtractor. getTerms(Query query, boolean prohibited)Extracts all terms texts of a given Query into an array of WeightedTermsstatic WeightedTerm[]QueryTermExtractor. getTerms(Query query, boolean prohibited, java.lang.String fieldName)Extracts all terms texts of a given Query into an array of WeightedTermsjava.util.Map<java.lang.String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTerms(Query query, float boost, TokenStream tokenStream)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.java.util.Map<java.lang.String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTerms(Query query, float boost, TokenStream tokenStream, java.lang.String fieldName)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.java.util.Map<java.lang.String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTermsWithScores(Query query, float boost, TokenStream tokenStream, java.lang.String fieldName, IndexReader reader)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.private voidQueryScorer. init(Query query, java.lang.String field, IndexReader reader, boolean expandMultiTermQuery)Method parameters in org.apache.lucene.search.highlight with type arguments of type Query Modifier and Type Method Description protected booleanWeightedSpanTermExtractor. isQueryUnsupported(java.lang.Class<? extends Query> clazz)Constructors in org.apache.lucene.search.highlight with parameters of type Query Constructor Description QueryScorer(Query query)QueryScorer(Query query, java.lang.String field)QueryScorer(Query query, java.lang.String field, java.lang.String defaultField)QueryScorer(Query query, IndexReader reader, java.lang.String field)QueryScorer(Query query, IndexReader reader, java.lang.String field, java.lang.String defaultField)QueryTermScorer(Query query)QueryTermScorer(Query query, java.lang.String fieldName)QueryTermScorer(Query query, IndexReader reader, java.lang.String fieldName) -
Uses of Query in org.apache.lucene.search.join
Subclasses of Query in org.apache.lucene.search.join Modifier and Type Class Description (package private) classGlobalOrdinalsQuery(package private) classGlobalOrdinalsWithScoreQueryclassParentChildrenBlockJoinQueryA query that returns all the matching child documents for a specific parent document indexed together in the same block.(package private) classPointInSetIncludingScoreQuery(package private) classTermsIncludingScoreQuery(package private) classTermsQueryA query that has an array of terms from a specific field.classToChildBlockJoinQueryJust likeToParentBlockJoinQuery, except this query joins in reverse: you provide a Query matching parent documents and it joins down to child documents.classToParentBlockJoinQueryThis query requires that you index children and parent docs as a single block, using theIndexWriter.addDocuments()orIndexWriter.updateDocuments()API.Fields in org.apache.lucene.search.join declared as Query Modifier and Type Field Description private QueryParentChildrenBlockJoinQuery. childQueryprivate QueryToParentBlockJoinQuery. childQueryprivate QueryGlobalOrdinalsQuery. fromQueryprivate QueryGlobalOrdinalsWithScoreQuery. fromQueryprivate QueryTermsIncludingScoreQuery. fromQueryprivate QueryTermsQuery. fromQuery(package private) QueryPointInSetIncludingScoreQuery. originalQueryprivate QueryToChildBlockJoinQuery. parentQueryprivate QueryQueryBitSetProducer. queryprivate QueryGlobalOrdinalsQuery. toQueryprivate QueryGlobalOrdinalsWithScoreQuery. toQueryMethods in org.apache.lucene.search.join that return Query Modifier and Type Method Description private static QueryJoinUtil. createJoinQuery(boolean multipleValuesPerDocument, java.lang.String toField, Query fromQuery, java.lang.String fromField, IndexSearcher fromSearcher, ScoreMode scoreMode, GenericTermsCollector collector)static QueryJoinUtil. createJoinQuery(java.lang.String fromField, boolean multipleValuesPerDocument, java.lang.String toField, java.lang.Class<? extends java.lang.Number> numericType, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode)Method for query time joining for numeric fields.static QueryJoinUtil. createJoinQuery(java.lang.String fromField, boolean multipleValuesPerDocument, java.lang.String toField, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode)Method for query time joining.static QueryJoinUtil. createJoinQuery(java.lang.String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap)Delegates toJoinUtil.createJoinQuery(String, Query, Query, IndexSearcher, ScoreMode, OrdinalMap, int, int), but disables the min and max filtering.static QueryJoinUtil. createJoinQuery(java.lang.String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap, int min, int max)A query time join using global ordinals over a dedicated join field.QueryToParentBlockJoinQuery. getChildQuery()Return our child query.QueryToChildBlockJoinQuery. getParentQuery()Return our parent query.QueryQueryBitSetProducer. getQuery()Gets the contained query.QueryParentChildrenBlockJoinQuery. rewrite(IndexReader reader)QueryToChildBlockJoinQuery. rewrite(IndexReader reader)QueryToParentBlockJoinQuery. rewrite(IndexReader reader)Methods in org.apache.lucene.search.join with parameters of type Query Modifier and Type Method Description private static QueryJoinUtil. createJoinQuery(boolean multipleValuesPerDocument, java.lang.String toField, Query fromQuery, java.lang.String fromField, IndexSearcher fromSearcher, ScoreMode scoreMode, GenericTermsCollector collector)static QueryJoinUtil. createJoinQuery(java.lang.String fromField, boolean multipleValuesPerDocument, java.lang.String toField, java.lang.Class<? extends java.lang.Number> numericType, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode)Method for query time joining for numeric fields.static QueryJoinUtil. createJoinQuery(java.lang.String fromField, boolean multipleValuesPerDocument, java.lang.String toField, Query fromQuery, IndexSearcher fromSearcher, ScoreMode scoreMode)Method for query time joining.static QueryJoinUtil. createJoinQuery(java.lang.String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap)Delegates toJoinUtil.createJoinQuery(String, Query, Query, IndexSearcher, ScoreMode, OrdinalMap, int, int), but disables the min and max filtering.static QueryJoinUtil. createJoinQuery(java.lang.String joinField, Query fromQuery, Query toQuery, IndexSearcher searcher, ScoreMode scoreMode, OrdinalMap ordinalMap, int min, int max)A query time join using global ordinals over a dedicated join field.Constructors in org.apache.lucene.search.join with parameters of type Query Constructor Description BlockJoinWeight(Query joinQuery, Weight childWeight, BitSetProducer parentsFilter, ScoreMode scoreMode)GlobalOrdinalsQuery(LongBitSet foundOrds, java.lang.String joinField, OrdinalMap globalOrds, Query toQuery, Query fromQuery, java.lang.Object indexReaderContextId)GlobalOrdinalsWithScoreQuery(GlobalOrdinalsWithScoreCollector collector, ScoreMode scoreMode, java.lang.String joinField, OrdinalMap globalOrds, Query toQuery, Query fromQuery, int min, int max, java.lang.Object indexReaderContextId)ParentChildrenBlockJoinQuery(BitSetProducer parentFilter, Query childQuery, int parentDocId)Creates aParentChildrenBlockJoinQueryinstancePointInSetIncludingScoreQuery(ScoreMode scoreMode, Query originalQuery, boolean multipleValuesPerDocument, java.lang.String field, int bytesPerDim, PointInSetIncludingScoreQuery.Stream packedPoints)QueryBitSetProducer(Query query)Wraps another query's result and caches it into bitsets.TermsIncludingScoreQuery(ScoreMode scoreMode, java.lang.String toField, boolean multipleValuesPerDocument, BytesRefHash terms, float[] scores, java.lang.String fromField, Query fromQuery, java.lang.Object indexReaderContextId)TermsQuery(java.lang.String toField, BytesRefHash terms, java.lang.String fromField, Query fromQuery, java.lang.Object indexReaderContextId)ToChildBlockJoinQuery(Query parentQuery, BitSetProducer parentsFilter)Create a ToChildBlockJoinQuery.ToChildBlockJoinWeight(Query joinQuery, Weight parentWeight, BitSetProducer parentsFilter, boolean doScores)ToParentBlockJoinQuery(Query childQuery, BitSetProducer parentsFilter, ScoreMode scoreMode)Create a ToParentBlockJoinQuery.W(Query query, Weight approximationWeight, float boost)W(Query query, Weight approximationWeight) -
Uses of Query in org.apache.lucene.search.spans
Subclasses of Query in org.apache.lucene.search.spans Modifier and Type Class Description classFieldMaskingSpanQueryWrapper to allowSpanQueryobjects participate in composite single-field SpanQueries by 'lying' about their search field.classSpanBoostQueryCounterpart ofBoostQueryfor spans.classSpanContainingQueryKeep matches that contain another SpanScorer.(package private) classSpanContainQueryclassSpanFirstQueryMatches spans near the beginning of a field.classSpanMultiTermQueryWrapper<Q extends MultiTermQuery>Wraps anyMultiTermQueryas aSpanQuery, so it can be nested within other SpanQuery classes.classSpanNearQueryMatches spans which are near one another.private static classSpanNearQuery.SpanGapQueryclassSpanNotQueryRemoves matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.classSpanOrQueryMatches the union of its clauses.classSpanPositionCheckQueryBase class for filtering a SpanQuery based on the position of a match.classSpanPositionRangeQueryChecks to see if theSpanPositionCheckQuery.getMatch()lies between a start and end position SeeSpanFirstQueryfor a derivation that is optimized for the case where start position is 0.classSpanQueryBase class for span-based queries.classSpanTermQueryMatches spans containing a term.classSpanWithinQueryKeep matches that are contained within another Spans.Methods in org.apache.lucene.search.spans that return Query Modifier and Type Method Description QuerySpanMultiTermQueryWrapper. getWrappedQuery()Returns the wrapped queryQueryFieldMaskingSpanQuery. rewrite(IndexReader reader)QuerySpanBoostQuery. rewrite(IndexReader reader)QuerySpanContainQuery. rewrite(IndexReader reader)QuerySpanMultiTermQueryWrapper. rewrite(IndexReader reader)QuerySpanNearQuery. rewrite(IndexReader reader)QuerySpanNotQuery. rewrite(IndexReader reader)QuerySpanOrQuery. rewrite(IndexReader reader)QuerySpanPositionCheckQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing that return Query Modifier and Type Method Description protected QueryAnalyzingInfixSuggester. finishQuery(BooleanQuery.Builder in, boolean allTermsRequired)Subclass can override this to tweak the Query before searching.protected QueryAnalyzingInfixSuggester. getLastTokenQuery(java.lang.String token)This is called if the last token isn't ended (e.g. -
Uses of Query in org.apache.lucene.search.suggest.document
Subclasses of Query in org.apache.lucene.search.suggest.document Modifier and Type Class Description classCompletionQueryAbstractQuerythat match documents containing terms with a specified prefix filtered byBitsProducer.classContextQueryACompletionQuerythat matches documents specified by a wrappedCompletionQuerysupporting boosting and/or filtering by specified contexts.classFuzzyCompletionQueryACompletionQuerythat match documents containing terms within an edit distance of the specified prefix.classPrefixCompletionQueryACompletionQuerywhich takes anAnalyzerto analyze the prefix of the query term.classRegexCompletionQueryACompletionQuerywhich takes a regular expression as the prefix of the query term.Methods in org.apache.lucene.search.suggest.document that return Query Modifier and Type Method Description QueryCompletionQuery. rewrite(IndexReader reader) -
Uses of Query in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight declared as Query Modifier and Type Field Description private QueryUHComponents. queryFields in org.apache.lucene.search.uhighlight with type parameters of type Query Modifier and Type Field Description private java.util.HashMap<Query,BytesRef>OffsetsEnum.OfMatchesIteratorWithSubs. queryToTermMapMethods in org.apache.lucene.search.uhighlight that return Query Modifier and Type Method Description QueryUHComponents. getQuery()Methods in org.apache.lucene.search.uhighlight that return types with arguments of type Query Modifier and Type Method Description protected java.util.Collection<Query>UnifiedHighlighter. preSpanQueryRewrite(Query query)When highlighting phrases accurately, we may need to handle custom queries that aren't supported in theWeightedSpanTermExtractoras called by thePhraseHelper.Methods in org.apache.lucene.search.uhighlight with parameters of type Query Modifier and Type Method Description static booleanMultiTermHighlighting. canExtractAutomataFromLeafQuery(Query query)Indicates if the the leaf query (fromQueryVisitor.visitLeaf(Query)) is a type of query that we can extract automata from.voidMultiTermHighlighting.AutomataCollector. consumeTermsMatching(Query query, java.lang.String field, java.util.function.Supplier<ByteRunAutomaton> automaton)(package private) static LabelledCharArrayMatcher[]MultiTermHighlighting. extractAutomata(Query query, java.util.function.Predicate<java.lang.String> fieldMatcher, boolean lookInSpan)Extracts MultiTermQueries that match the provided field predicate.protected static java.util.Set<Term>UnifiedHighlighter. extractTerms(Query query)Extracts matching terms after rewriting against an empty indexprotected LabelledCharArrayMatcher[]UnifiedHighlighter. getAutomata(java.lang.String field, Query query, java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags)protected FieldHighlighterUnifiedHighlighter. getFieldHighlighter(java.lang.String field, Query query, java.util.Set<Term> allTerms, int maxPassages)protected UHComponentsUnifiedHighlighter. getHighlightComponents(java.lang.String field, Query query, java.util.Set<Term> allTerms)protected PhraseHelperUnifiedHighlighter. getPhraseHelper(java.lang.String field, Query query, java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags)QueryVisitorMultiTermHighlighting.AutomataCollector. getSubVisitor(BooleanClause.Occur occur, Query parent)protected booleanUnifiedHighlighter. hasUnrecognizedQuery(java.util.function.Predicate<java.lang.String> fieldMatcher, Query query)java.lang.String[]UnifiedHighlighter. highlight(java.lang.String field, Query query, TopDocs topDocs)Highlights the top passages from a single field.java.lang.String[]UnifiedHighlighter. highlight(java.lang.String field, Query query, TopDocs topDocs, int maxPassages)Highlights the top-N passages from a single field.java.util.Map<java.lang.String,java.lang.String[]>UnifiedHighlighter. highlightFields(java.lang.String[] fieldsIn, Query query, int[] docidsIn, int[] maxPassagesIn)Highlights the top-N passages from multiple fields, for the provided int[] docids.java.util.Map<java.lang.String,java.lang.String[]>UnifiedHighlighter. highlightFields(java.lang.String[] fields, Query query, TopDocs topDocs)Highlights the top passages from multiple fields.java.util.Map<java.lang.String,java.lang.String[]>UnifiedHighlighter. highlightFields(java.lang.String[] fields, Query query, TopDocs topDocs, int[] maxPassages)Highlights the top-N passages from multiple fields.protected java.util.Map<java.lang.String,java.lang.Object[]>UnifiedHighlighter. highlightFieldsAsObjects(java.lang.String[] fieldsIn, Query query, int[] docIdsIn, int[] maxPassagesIn)Expert: highlights the top-N passages from multiple fields, for the provided int[] docids, to custom Object as returned by thePassageFormatter.java.lang.ObjectUnifiedHighlighter. highlightWithoutSearcher(java.lang.String field, Query query, java.lang.String content, int maxPassages)Highlights text passed as a parameter.protected java.util.Collection<Query>UnifiedHighlighter. preSpanQueryRewrite(Query query)When highlighting phrases accurately, we may need to handle custom queries that aren't supported in theWeightedSpanTermExtractoras called by thePhraseHelper.private BytesRefOffsetsEnum.OfMatchesIteratorWithSubs. queryToTerm(Query query)Maps a Query fromMatchesIterator.getQuery()toOffsetsEnum.getTerm().Constructors in org.apache.lucene.search.uhighlight with parameters of type Query Constructor Description PhraseHelper(Query query, java.lang.String field, java.util.function.Predicate<java.lang.String> fieldMatcher, java.util.function.Function<SpanQuery,java.lang.Boolean> rewriteQueryPred, java.util.function.Function<Query,java.util.Collection<Query>> preExtractRewriteFunction, boolean ignoreQueriesNeedingRewrite)Constructor.UHComponents(java.lang.String field, java.util.function.Predicate<java.lang.String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags) -
Uses of Query in org.apache.lucene.search.vectorhighlight
Methods in org.apache.lucene.search.vectorhighlight that return types with arguments of type Query Modifier and Type Method Description (package private) java.util.Collection<Query>FieldQuery. expand(java.util.Collection<Query> flatQueries)Methods in org.apache.lucene.search.vectorhighlight with parameters of type Query Modifier and Type Method Description (package private) voidFieldQuery.QueryPhraseMap. add(Query query, IndexReader reader)protected voidFieldQuery. flatten(Query sourceQuery, IndexReader reader, java.util.Collection<Query> flatQueries, float boost)FieldQueryFastVectorHighlighter. getFieldQuery(Query query)create aFieldQueryobject.FieldQueryFastVectorHighlighter. getFieldQuery(Query query, IndexReader reader)create aFieldQueryobject.private java.lang.StringFieldQuery. getKey(Query query)(package private) FieldQuery.QueryPhraseMapFieldQuery. getRootMap(Query query)private java.util.Set<java.lang.String>FieldQuery. getTermSet(Query query)Method parameters in org.apache.lucene.search.vectorhighlight with type arguments of type Query Modifier and Type Method Description private voidFieldQuery. checkOverlap(java.util.Collection<Query> expandQueries, Term[] src, Term[] dest, int slop, float boost)private voidFieldQuery. checkOverlap(java.util.Collection<Query> expandQueries, PhraseQuery a, float aBoost, PhraseQuery b, float bBoost)(package private) java.util.Collection<Query>FieldQuery. expand(java.util.Collection<Query> flatQueries)protected voidFieldQuery. flatten(Query sourceQuery, IndexReader reader, java.util.Collection<Query> flatQueries, float boost)(package private) voidFieldQuery. saveTerms(java.util.Collection<Query> flatQueries, IndexReader reader)Constructors in org.apache.lucene.search.vectorhighlight with parameters of type Query Constructor Description FieldQuery(Query query, boolean phraseHighlight, boolean fieldMatch)For backwards compatibility you can initialize FieldQuery without an IndexReader, which is only required to support MultiTermQueryFieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch) -
Uses of Query in org.apache.lucene.util
Fields in org.apache.lucene.util declared as Query Modifier and Type Field Description (package private) QueryRamUsageEstimator.RamUsageQueryVisitor. rootMethods in org.apache.lucene.util that return Query Modifier and Type Method Description protected QueryQueryBuilder. analyzeBoolean(java.lang.String field, TokenStream stream)Creates simple boolean query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeGraphBoolean(java.lang.String field, TokenStream source, BooleanClause.Occur operator)Creates a boolean query from a graph token stream.protected QueryQueryBuilder. analyzeGraphPhrase(TokenStream source, java.lang.String field, int phraseSlop)Creates graph phrase query from the tokenstream contentsprotected QueryQueryBuilder. analyzeMultiBoolean(java.lang.String field, TokenStream stream, BooleanClause.Occur operator)Creates complex boolean query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeMultiPhrase(java.lang.String field, TokenStream stream, int slop)Creates complex phrase query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzePhrase(java.lang.String field, TokenStream stream, int slop)Creates simple phrase query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeTerm(java.lang.String field, TokenStream stream)Creates simple term query from the cached tokenstream contentsQueryQueryBuilder. createBooleanQuery(java.lang.String field, java.lang.String queryText)Creates a boolean query from the query text.QueryQueryBuilder. createBooleanQuery(java.lang.String field, java.lang.String queryText, BooleanClause.Occur operator)Creates a boolean query from the query text.protected QueryQueryBuilder. createFieldQuery(Analyzer analyzer, BooleanClause.Occur operator, java.lang.String field, java.lang.String queryText, boolean quoted, int phraseSlop)Creates a query from the analysis chain.protected QueryQueryBuilder. createFieldQuery(TokenStream source, BooleanClause.Occur operator, java.lang.String field, boolean quoted, int phraseSlop)Creates a query from a token stream.QueryQueryBuilder. createMinShouldMatchQuery(java.lang.String field, java.lang.String queryText, float fraction)Creates a minimum-should-match query from the query text.QueryQueryBuilder. createPhraseQuery(java.lang.String field, java.lang.String queryText)Creates a phrase query from the query text.QueryQueryBuilder. createPhraseQuery(java.lang.String field, java.lang.String queryText, int phraseSlop)Creates a phrase query from the query text.protected QueryQueryBuilder. newGraphSynonymQuery(java.util.Iterator<Query> queries)Builds a new GraphQuery for multi-terms synonyms.protected QueryQueryBuilder. newSynonymQuery(QueryBuilder.TermAndBoost[] terms)Builds a new SynonymQuery instance.protected QueryQueryBuilder. newTermQuery(Term term, float boost)Builds a new TermQuery instance.Methods in org.apache.lucene.util with parameters of type Query Modifier and Type Method Description voidRamUsageEstimator.RamUsageQueryVisitor. consumeTerms(Query query, Term... terms)QueryVisitorRamUsageEstimator.RamUsageQueryVisitor. getSubVisitor(BooleanClause.Occur occur, Query parent)static longRamUsageEstimator. sizeOf(Query q)Returns the size in bytes of a Query object.static longRamUsageEstimator. sizeOf(Query q, long defSize)Returns the size in bytes of a Query object.voidRamUsageEstimator.RamUsageQueryVisitor. visitLeaf(Query query)Method parameters in org.apache.lucene.util with type arguments of type Query Modifier and Type Method Description protected QueryQueryBuilder. newGraphSynonymQuery(java.util.Iterator<Query> queries)Builds a new GraphQuery for multi-terms synonyms.Constructors in org.apache.lucene.util with parameters of type Query Constructor Description RamUsageQueryVisitor(Query root, long defSize) -
Uses of Query in org.apache.lucene.util.automaton
Methods in org.apache.lucene.util.automaton with parameters of type Query Modifier and Type Method Description voidCompiledAutomaton. visit(QueryVisitor visitor, Query parent, java.lang.String field)Report back to a QueryVisitor how this automaton matches terms
-