5.13.3 • Published 3 years ago

@mentor-medier/search-content-source-block v5.13.3

Weekly downloads
188
License
CC-BY-NC-ND-4.0
Repository
github
Last release
3 years ago

@wpmedia/search-content-source-block

Fusion News Theme unpublished API content source block. Please provide a 1-2 sentence description of what the block is and what it does.

Acceptance Criteria

  • Add AC relevant to the block

Endpoint

  • Add the endpoint that this content source is hitting

ANS Schema

ANS Fields

  • n/a

Example output

{
  data: [
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
  ],
  metadata: {
  q: "obama"
    page: "1"
    per_page: 10
    t: "*"
    s: "score"
    timeframe: "*"
    total_hits: 1876
    took: 41
  },
  aggregations: {
    all: 1876
    story: 1865
    image: 0
    video: 11
    gallery: 0
  },
  _id: "7d23d241bfcb79e1891c13f8fae45183c49e1356667429ef2f064cde493335a1"
}

Configurable Params

ParamTypeDescription
query
page

TTL

  • Add the TTL of the content source

Additional Considerations

Requirements

Search Key is required to be set as an environment variable.

For local set this in your .env. file

For all other environments make sure you have updated the necessary files in the environment folder of your feature pack repo.

searchKey=ABCDEF
5.13.2

3 years ago

5.13.3

3 years ago

5.11.3

3 years ago

5.11.2

3 years ago

5.10.4

3 years ago

5.10.2

3 years ago

5.10.0

3 years ago

5.9.15

3 years ago