Show / Hide Table of Contents

Class RediSearchCommands

extension methods for redisearch.

Inheritance
System.Object
RediSearchCommands
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Redis.OM
Assembly: Redis.OM.dll
Syntax
public static class RediSearchCommands

Methods

| Improve this Doc View Source

CreateIndex(IRedisConnection, Type)

Creates an index.

Declaration
public static bool CreateIndex(this IRedisConnection connection, Type type)
Parameters
Type Name Description
IRedisConnection connection

the connection.

System.Type type

the type to use for creating the index.

Returns
Type Description
System.Boolean

whether the index was created or not.

| Improve this Doc View Source

CreateIndexAsync(IRedisConnection, Type)

Creates an index.

Declaration
public static async Task<bool> CreateIndexAsync(this IRedisConnection connection, Type type)
Parameters
Type Name Description
IRedisConnection connection

the connection.

System.Type type

the type to use for creating the index.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

whether the index was created or not.

| Improve this Doc View Source

DropIndex(IRedisConnection, Type)

Deletes an index.

Declaration
public static bool DropIndex(this IRedisConnection connection, Type type)
Parameters
Type Name Description
IRedisConnection connection

the connection.

System.Type type

the type to drop the index for.

Returns
Type Description
System.Boolean

whether the index was dropped or not.

| Improve this Doc View Source

DropIndexAndAssociatedRecords(IRedisConnection, Type)

Deletes an index. And drops associated records.

Declaration
public static bool DropIndexAndAssociatedRecords(this IRedisConnection connection, Type type)
Parameters
Type Name Description
IRedisConnection connection

the connection.

System.Type type

the type to drop the index for.

Returns
Type Description
System.Boolean

whether the index was dropped or not.

| Improve this Doc View Source

DropIndexAsync(IRedisConnection, Type)

Deletes an index.

Declaration
public static async Task<bool> DropIndexAsync(this IRedisConnection connection, Type type)
Parameters
Type Name Description
IRedisConnection connection

the connection.

System.Type type

the type to drop the index for.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

whether the index was dropped or not.

| Improve this Doc View Source

Search<T>(IRedisConnection, RedisQuery)

Search redis with the given query.

Declaration
public static SearchResponse<T> Search<T>(this IRedisConnection connection, RedisQuery query)
Parameters
Type Name Description
IRedisConnection connection

the connection to redis.

RedisQuery query

the query to use in the search.

Returns
Type Description
SearchResponse<T>

A typed search response.

Type Parameters
Name Description
T

the type.

| Improve this Doc View Source

SearchAsync<T>(IRedisConnection, RedisQuery)

Search redis with the given query.

Declaration
public static async Task<SearchResponse<T>> SearchAsync<T>(this IRedisConnection connection, RedisQuery query)
Parameters
Type Name Description
IRedisConnection connection

the connection to redis.

RedisQuery query

the query to use in the search.

Returns
Type Description
System.Threading.Tasks.Task<SearchResponse<T>>

A typed search response.

Type Parameters
Name Description
T

the type.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX