You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
I am wondering if anyone has tried on APIv4 to do a search similar to what the Octopart playground has done on searching for parts based on some description:
This is an example on Playground and I am hoping to have similar code in the APIv4 that does this.
Would it be PartsMatchQuery?
query {
search(q: "1k 0603 1W", limit: 2) {
results {
part {
mpn
manufacturer {
name
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
Hi @vivienwwp - the search query API performs a search and returns zero or more parts. There's also the search_mpn which is like search but looks only for the input query string in the MPNs.
The type you quote, PartsMatchQuery, is an input for a different query, multi_match. This performs a match (based on MPN, SKU or MPN_or_SKU) rather than a search.
You can read more on the search behavior on the Octopart documentation here:
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am wondering if anyone has tried on APIv4 to do a search similar to what the Octopart playground has done on searching for parts based on some description:
This is an example on Playground and I am hoping to have similar code in the APIv4 that does this.
Would it be PartsMatchQuery?
query {
search(q: "1k 0603 1W", limit: 2) {
results {
part {
mpn
manufacturer {
name
}
}
}
The text was updated successfully, but these errors were encountered: