/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using Linq. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IRavenQueryable <T> Query <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var indexCreator = new TIndexCreator { Conventions = Conventions }; return(Query <T>(indexCreator.IndexName) .Customize(x => x.TransformResults(indexCreator.ApplyReduceFunctionIfExists))); }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using Linq. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IRavenQueryable <T> Query <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var indexCreator = new TIndexCreator { Conventions = Conventions }; return(Query <T>(indexCreator.IndexName, indexCreator.IsMapReduce) #pragma warning disable 612,618 .Customize(x => x.TransformResults(indexCreator.ApplyReduceFunctionIfExists))); #pragma warning restore 612,618 }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using lucene syntax. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IDocumentQuery <T> LuceneQuery <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var index = new TIndexCreator(); return(LuceneQuery <T>(index.IndexName)); }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using Linq. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IRavenQueryable <T> Query <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var indexCreator = new TIndexCreator(); return(Query <T>(indexCreator.IndexName)); }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using lucene syntax. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IAsyncDocumentQuery <T> AsyncLuceneQuery <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var index = new TIndexCreator(); return(AsyncLuceneQuery <T>(index.IndexName, index.IsMapReduce)); }
public IDocumentQuery <T> DocumentQuery <T, TIndexCreator>() where TIndexCreator : AbstractIndexCreationTask, new() { var indexName = new TIndexCreator().IndexName; return(DocumentQuery <T>(indexName)); }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using lucene syntax. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IDocumentQuery <T> DocumentQuery <T, TIndexCreator>() where TIndexCreator : AbstractCommonApiForIndexes, new() { var index = new TIndexCreator(); return(DocumentQuery <T>(index.IndexName, null, index.IsMapReduce)); }
/// <summary> /// Queries the index specified by <typeparamref name="TIndexCreator"/> using Linq. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <typeparam name="TIndexCreator">The type of the index creator.</typeparam> /// <returns></returns> public IRavenQueryable <T> Query <T, TIndexCreator>() where TIndexCreator : AbstractCommonApiForIndexes, new() { var indexCreator = new TIndexCreator(); return(Query <T>(indexCreator.IndexName, null, indexCreator.IsMapReduce)); }