Class QueryWrapperFilter
Constrains search results to only match those which also match a provided query.
This could be used, for example, with a NumericRangeQuery on a suitably
formatted date field to implement date filtering. One could re-use a single
CachingWrapperFilter(QueryWrapperFilter)
that matches, e.g., only documents modified
within the last week. This would only need to be reconstructed once per day.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class QueryWrapperFilter : Filter
Constructors
| Improve this Doc View SourceQueryWrapperFilter(Query)
Constructs a filter which only matches documents matching
query
.
Declaration
public QueryWrapperFilter(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query |
Properties
| Improve this Doc View SourceQuery
Returns the inner Query
Declaration
public Query Query { get; }
Property Value
Type | Description |
---|---|
Query |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetDocIdSet(AtomicReaderContext, IBits)
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs |
Returns
Type | Description |
---|---|
DocIdSet |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()