Comments (7)
We've released v3.39.1 which rolls back the new search, for now. We will have a deeper look at these issues and reintroduce it when we feel it is sufficiently tested.
from sanity.
Hey @jorngeorg, thank you for reporting this. Would you be able to share the API request that's produced for this search query? You can identify it by filtering your network logs on textsearch
. Sharing as a curl request would be perfect, but you should redact your API token.
from sanity.
We've been experiencing a few issues too, the main one is sometimes an obvious result just won't appear.
For example, we have an entry titled: JAX BEACH '64: YOU WIN THIS ONE, JOHNNY LAW!
Yesterday when searching "Jax Beach" it wasn't returning. This morning it's the second result. This has been the case with a few other items too. I haven't managed to find a pattern to it yet, though it felt like some behind-the-scenes indexing hasn't finished? Who knows.
from sanity.
@juice49 Thanks for getting back to me, Ash. Is this the right one?
curl 'https://cvvjxa4t.api.sanity.io/v2024-03-12/data/textsearch/production_new?tag=sanity.studio.search.global' \
-H 'accept: application/json' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'content-type: application/json' \
-H 'cookie: sanitySession=API-TOKEN' \
-H 'dnt: 1' \
-H 'origin: http://localhost:3333' \
-H 'priority: u=1, i' \
-H 'sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36' \
--data-raw '{"query":{"string":"jeg savner gro*"},"filter":"_type in $__types","params":{"__types":["media.tag","article","blogArticle","bydel","documentFile","frontPage","fylke","issue","kommune","lag","legacyArticle","mediaLink","page","partiet","person"]},"types":{"media.tag":{"weights":{"name.source":0}},"article":{"weights":{"title":10,"slug.source":0}},"blogArticle":{"weights":{"title":10,"slug.source":0}},"bydel":{"weights":{"name":10,"slug.source":0}},"documentFile":{"weights":{"title":10}},"frontPage":{"weights":{"title":10}},"fylke":{"weights":{"name":10,"slug.source":0}},"issue":{"weights":{"title":10,"slug.source":0}},"kommune":{"weights":{"name":10,"slug.source":0}},"lag":{"weights":{"title":10,"slug.source":0}},"legacyArticle":{"weights":{"title":10}},"mediaLink":{"weights":{"title":10}},"page":{"weights":{"title":10,"slug.source":0}},"partiet":{"weights":{"title":10}}},"order":[{"attribute":"_updatedAt","direction":"desc"}],"includeAttributes":["_id","_type"],"limit":1000}'
from sanity.
@jorngeorg that's great, thank you!
@Ojay thank you reporting this. Do you know whether a draft has existed for that document—and whether a draft of it has been published—in the past day?
from sanity.
I'll find out from the boss man for you @juice49 - I think it was published though.
I'm experiencing similar to @jorngeorg too. Searching but for the work of kahanamoku, we would all have perished
returns the item containing that in the title as the 18th result...
Here's the request copied as curl for you. Thanks so much for digging into this!
curl 'https://f1hjpcr4.api.sanity.io/v2024-03-12/data/textsearch/production?tag=sanity.studio.search.global' \
-H 'accept: application/json' \
-H 'accept-language: en-GB,en;q=0.6' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:3333' \
-H 'sec-ch-ua: "Brave";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-gpc: 1' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--data-raw '{"query":{"string":"but for the work of kahanamoku, we would all have perished*"},"filter":"_type in $__types","params":{"__types":["media.tag","eos","hos","hos_chapter","contest","interview","video","books","surfboard","page","page-donors","subscribePage","feature","joint","images","author","latest","surfer","subscriptions","aboutPage","contactPage","contact","donation","gift","todo","headerSettings","generalSettings","gridSettings","latestSettings","homepageSettings"]},"types":{"media.tag":{"weights":{"name.source":0}},"eos":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"hos":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"hos_chapter":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0}},"contest":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"interview":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"video":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"books":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"surfboard":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"page":{"weights":{"title":10,"slug.source":0,"content[].image.captionPosition":0}},"page-donors":{"weights":{"title":10,"slug.source":0,"content[].image.captionPosition":0}},"subscribePage":{"weights":{"title":10}},"feature":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"joint":{"weights":{"title":10,"slug.source":0,"meta.primaryName":0,"meta.index":0,"meta.gender":0,"meta.peopleDates.birthYear":0,"meta.peopleDates.deathYear":0,"meta.peopleDates.birthYear2":0,"meta.peopleDates.deathYear2":0,"meta.peopleDates.birthYear3":0,"meta.peopleDates.deathYear3":0,"meta.peopleDates.birthYear4":0,"meta.peopleDates.deathYear4":0,"meta.continent1":0,"meta.nation1":0,"meta.states1":0,"meta.continent2":0,"meta.nation2":0,"meta.states2":0,"media.muxPlaybackId":0,"media.quotePosition":0,"media.imageGrid[].captionPosition":0}},"images":{"weights":{"slug.source":0}},"author":{"weights":{"name":10,"slug.source":0}},"latest":{"weights":{"title":10}},"surfer":{"weights":{"name":10}},"subscriptions":{"weights":{"title":10}},"aboutPage":{"weights":{"title":10,"staff[].headshot.captionPosition":0,"creators[].headshot.captionPosition":0}},"contactPage":{"weights":{"title":10,"support[].headshot.captionPosition":0}},"contact":{"weights":{"title":10}},"donation":{"weights":{"title":10,"slug.source":0}},"gift":{"weights":{"title":10,"slug.source":0}},"todo":{"weights":{"title":10}}},"order":[{"attribute":"_updatedAt","direction":"desc"}],"includeAttributes":["_id","_type"],"limit":1000}'```
from sanity.
@Ojay thank you for providing an example!
from sanity.
Related Issues (20)
- Typegen not reading `=> @` correctly. HOT 3
- Typegen result names are not customizable HOT 1
- Sanity npm package throws type error on build HOT 3
- Ability to order documents using an array value
- Hide schedule action in some documents
- Unable to upload images to block content type field on Safari
- Introduce Selective CLI Logging Suppression
- How can I restrict access to resources only through my domain? HOT 2
- TypeGen not generating union type for string array with list option
- can't use `npx @sanity/cli init --template shopify` with the next.js embedded studio option
- On >3.41.0 dragging blocks in PTE gives "Can't upload this file here" error HOT 1
- TypeGen generates Array<never> for query using "in" HOT 1
- TypeGen generates Array<never> for query using chained parent operator
- Hang introduced by #5269, (a0f93cb) (fix included) HOT 3
- Typegen: Can't generate types with conditional values in slice and ordering operations even when the it doesn't effect the type. HOT 3
- All Studio UI menus broken/empty in Dev HOT 1
- Both new and legacy search don't work with documents with a custom title field
- Desk tool crash: editOpsOf does not expect a draft id HOT 1
- throw new Error("'block' type is not defined in this schema (required).");
- Cannot Paste Into Block Content in Mozilla HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanity.