Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
foundation1-gcp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Bilal Raees
foundation1-gcp
Commits
807bca5c
Commit
807bca5c
authored
Jun 05, 2023
by
Muneeb Saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update search-simple-query.js
parent
18577ced
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
search-simple-query.js
...mples/interactive-tutorials/search/search-simple-query.js
+4
-0
No files found.
nodejs-retail/samples/interactive-tutorials/search/search-simple-query.js
View file @
807bca5c
...
...
@@ -33,6 +33,9 @@ async function main(searchQuery, facets, filters, pageSize, pageOffset) {
const
facetSpecs
=
facets
?
facets
:
[];
const
filter
=
filters
;
/// TRY DIFFERENT FILTER EXPRESSIONS
// const filter = '(colors: ANY("Cool gray" ,"Light gray"))'; // TRY DIFFERENT FILTER EXPRESSIONS
const
queryExpansionSpec
=
{
condition
:
'AUTO'
,
// TRY OTHER QUERY EXPANSION CONDITIONS HERE
};
// A unique identifier for tracking visitors.
const
visitorId
=
'12345'
;
...
...
@@ -59,6 +62,7 @@ async function main(searchQuery, facets, filters, pageSize, pageOffset) {
filter
,
visitorId
,
pageSize
,
queryExpansionSpec
,
offset
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment