[]
        
(Showing Draft Content)

C1.LiveLinq.Indexing.Search.IndexQuery-1.Subindex

Subindex Method

Subindex<TKey>(Subindex<T, TKey>)

Used to apply subindex search to the result of a search operation.

Declaration
public virtual IIndexScanner<T, TKey> Subindex<TKey>(Subindex<T, TKey> definition)
Parameters
Type Name Description
Subindex<T, TKey> definition

Subindex to use for narrowing the search.

Returns
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.

Type Parameters
Name Description
TKey

Type of the subindex key.

Remarks

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");

Subindex(Subindex<T>)

Used to apply subindex search to the result of a search operation.

Declaration
public IIndexScanner<T> Subindex(Subindex<T> definition)
Parameters
Type Name Description
Subindex<T> definition

Subindex to use for narrowing the search.

Returns
Type Description
IIndexScanner<T>

An IIndexScanner<T> collection indexed by the subindex that can be used to perform search operations narrowing the collection.

Remarks

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");