Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 697
3
votes
Use V1/products instead of V1/search and add fields=items[sku],items[name] GET parameter to the request URL. This allows to get only requested fields in the response.
answered Dec 21 '15 by Alex Paliarush
0
votes
It is better to use search API (rest/V1/search), is faster because based on index tables, and then load full information about products returned from search using product repository (rest/V1/products) …
answered Dec 10 '15 by Alex Paliarush
0
votes
The problem seems to be that the same field is used in 2 filters of the same filter group. In this particular case replace 2 eq filters with one in filter: searchCriteria[filter_groups][0][filters][0 …
answered Dec 22 '15 by Alex Paliarush
27
votes
Check out the following sample class. To filter by SKU, try this: $productFilterDemo->getProducts('sku', 'product_sku_value', 'eq'); To get products created after specific date, this: $productFilt …
answered Nov 20 '15 by Alex Paliarush
5
votes
One order can contain multiple products, which are represented as order items in the context of order. With order APIs you cannot get order list with order items in one request. But it can be done as …
answered Nov 25 '15 by Alex Paliarush
13
votes
Actual annotation of \Magento\Framework\Api\Search\FilterGroup says (class phpDoc): Groups two or more filters together using a logical OR It means that you need to create two groups with one fi …
answered Nov 20 '15 by Alex Paliarush