Giter VIP home page Giter VIP logo

Comments (5)

joelhooks avatar joelhooks commented on May 23, 2024

anything /s is going to forward to the “api domain” because it is reserved for a url shortener

we’d originally used it in our naming convention for this site for search, but had to migrate to /q

https://share.getcloudapp.com/KoulNbZj

I recorded this to try and reproduce the issue and wasn’t able to. A screen recording would be useful.

from egghead-next.

YonatanKra avatar YonatanKra commented on May 23, 2024

@joelhooks - here's a recording: https://youtu.be/mGnB-L8AC28
One thing I didn't mention - I'm using brave as a browser. Might that be the issue?

from egghead-next.

joelhooks avatar joelhooks commented on May 23, 2024

Looks like there is something up with a couple items in Algolia as this particular video is on Page 1 of the results with the proper link and ~4 videos have the /s/* path.

I'm closing this, as it's not related to this application, but we'll look into it.

image

from egghead-next.

joelhooks avatar joelhooks commented on May 23, 2024

image

from egghead-next.

joelhooks avatar joelhooks commented on May 23, 2024

this felt like an indexing anomaly so I just scripted a little cleaner to remove the objects from Algolia:

import algoliasearch from 'algoliasearch'

const client = algoliasearch(APP_ID, API_SECRET)
const index = client.initIndex(INDEX_NAME)

const filter = {
  hitsPerPage: 1200,
  facetFilters: [
    'type:-lesson',
    'type:-course',
    'type:-podcast',
    'type:-talk',
    'type:-playlist',
  ],
}

const results = await index.search('', filter)

const offensiveIds = results.hits
  .filter((hit) => hit.type === null)
  .map((hit) => hit.objectID)

console.log(offensiveIds)

await index.deleteObjects(offensiveIds)

from egghead-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.