Example: Search expression and search term association handling

This example shows a search expression with a search scope, relevancy, and search term associations.

The following example shows how a search expression is built by default:
The default search scope:

fl=[ catentry_id,storeent_id,buyable,partNumber_ntk,name,thumbnail,keyword,mfName_ntk,catenttype_id_ntk_cs,price_USD ]
The default search relevancy:

qf=[ name^10.0 defaultSearch^1.0 categoryname^100.0 shortDescription^5.0 ]
Where the following search term associations exist:
Synonyms
men, pants, at office
Replacement terms
sleeveless instead searches for strapless.

The following table shows the possible scenarios when the search expression is built:

Default search expression behavior
Search In Match Type Keywords Exclude Brand Search query (q=) Search Filter Query (fq=)
All Departments ANY dress "dress"
All Departments ANY hermit* hermit*
All Departments ANY herm!tage "herm\!tage"
All Departments ANY dress hermitage -(hermitage) "dress"
All Departments ANY dress hermitage -(\!hermitage) "dress"
All Departments ANY dress hermitage "dress" mfName:hermitage
Health ANY dress hermitage "dress" mfName:hermitage parentCatgroup_id_search:(10001_10038
All Departments ANY kitchen's "kitchen's"
All Departments ANY kitchen's "kitchen\"s"
All Departments ANY hermitage dress "hermitage" "dress"
All Departments ALL hermitage dress +"hermitage" +"dress"
All Departments EXACT hermitage dress "hermitage dress"
All Departments ANY hermit* dress hermit* "dress"
All Departments ALL hermit* dress hermit* +"dress"
All Departments EXACT hermit* dress "hermit* dress"
All Departments ANY hermitage pants "hermitage" "men" "at office" "pants"
All Departments ALL hermitage pants +"hermitage" "men" "at office" +"pants"
All Departments EXACT hermitage pants "hermitage pants"
All Departments ANY hermitage sleeveless dress "hermitage" "strapless" "dress"
All Departments ALL hermitage sleeveless dress +"hermitage" "strapless" +"dress"
All Departments EXACT hermitage sleeveless dress "hermitage sleeveless dress"