Skip to content

Commit

Permalink
chore: deprecate Answers components (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz authored Jul 6, 2022
1 parent 180909a commit 35e6848
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import Foundation
import AlgoliaSearchClient

@available(*, deprecated, message: "Answers feature is deprecated")
public extension AnswersSearcher {

/**
Connection between AnswersSearcher and FilterState
*/
@available(*, deprecated, message: "Answers feature is deprecated")
struct FilterStateConnection: Connection {

public let searcher: AnswersSearcher
Expand All @@ -38,6 +40,7 @@ public extension AnswersSearcher {

}

@available(*, deprecated, message: "Answers feature is deprecated")
public extension AnswersSearcher {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
/// An entity performing Answers search
///
/// [Documentation](https://www.algolia.com/doc/guides/algolia-ai/answers/)
@available(*, deprecated, message: "Answers feature is deprecated")
public final class AnswersSearcher: IndexSearcher<AlgoliaAnswersSearchService> {

public override var request: Request {
Expand Down Expand Up @@ -43,6 +44,7 @@ public final class AnswersSearcher: IndexSearcher<AlgoliaAnswersSearchService> {

}

@available(*, deprecated, message: "Answers feature is deprecated")
extension AnswersSearcher: IndexNameSettable {

public func setIndexName(_ indexName: IndexName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

@available(*, deprecated, message: "Answers feature is deprecated")
public final class AlgoliaAnswersSearchService: SearchService {

public let client: SearchClient
Expand All @@ -21,6 +22,7 @@ public final class AlgoliaAnswersSearchService: SearchService {

}

@available(*, deprecated, message: "Answers feature is deprecated")
extension AlgoliaAnswersSearchService {

public struct Request: IndexNameProvider, TextualQueryProvider, AlgoliaRequest {
Expand Down

0 comments on commit 35e6848

Please sign in to comment.