[]
Used to apply subindex search to the result of a search operation.
public virtual IIndexScanner<T, TKey> Subindex<TKey>(Subindex<T, TKey> definition)
Type | Name | Description |
---|---|---|
Subindex<T, TKey> | definition | Subindex to use for narrowing the search. |
Type | Description |
---|---|
IIndexScanner<T, TKey> | An IIndexScanner<T, TKey> collection indexed by the subindex that can be used to perform search operations narrowing the collection. |
Name | Description |
---|---|
TKey | Type of the subindex key. |
A subindex can be used to further narrow the result of a search operation, if the corresponding subindex exists in the index or subindex used to perform that search operation. For example,
var idxByCity = customers.Indexes(c => c.City);
var subindexByContactTitle = idxByCity.Subindexes(c => c.ContactTitle);
var ownersInLondon = idxByCity.Find("London").Subindex(subindexByContactTitle).Find("Owner");
Used to apply subindex search to the result of a search operation.
public IIndexScanner<T> Subindex(Subindex<T> definition)
Type | Name | Description |
---|---|---|
Subindex<T> | definition | Subindex to use for narrowing the search. |
Type | Description |
---|---|
IIndexScanner<T> | An IIndexScanner<T> collection indexed by the subindex that can be used to perform search operations narrowing the collection. |
A subindex can be used to further narrow the result of a search operation, if the corresponding subindex exists in the index or subindex used to perform that search operation. For example,
var idxByCity = customers.Indexes(c => c.City);
var subindexByContactTitle = idxByCity.Subindexes(c => c.ContactTitle);
var ownersInLondon = idxByCity.Find("London").Subindex<string>(subindexByContactTitle).Find("Owner");