Examples: Search term association expansion
The following examples illustrate combining minimum match with search term associations, in all cases the minimum match value is 2:
Example: Using synonyms
Product data | Shopper's query | MinMatchOption | Search result | Explanation |
---|---|---|---|---|
|
men navy blue shirt | 1 |
|
Minimum match is applied to the expanded query. For reference, the following code snippet
shows the expanded Solr query: |
2 |
|
Return search results that satisfy the minimum match condition on the shopper's search terms,
and any predefined search term associations for single words within the search terms. The behavior
depends on the shopper's query:
For reference, the following code snippet shows the expanded Solr query:
|
||
3 |
|
Always use two sub-queries, where the first subquery contains the minMatch parameter, the
shopper's search terms, and the expanded search term association terms for the single word search
term associations in shopper's query. The second subquery contains no minMatch parameter, and the
shopper's search terms and all corresponding expanded search term association terms. The first
subquery is boosted by a factor. For reference, the following code snippet shows the expanded Solr
query: |
||
4 |
|
Products that meet the minimum match criteria on the shopper's search terms are returned
first, followed by products that satisfy the minimum match condition on the shopper's search terms
and corresponding search term associations. For reference, the following code snippet shows the
expanded Solr query: |
Example: Using synonyms and replacement terms (instead-search-for)
Product data | Shopper's query | MinMatchOption | Search result | Explanation |
---|---|---|---|---|
|
young men navy blue shirt | 1 |
|
Minimum match is applied to the query. For reference, the following code snippet shows the
expanded Solr query: |
2 |
|
Minimum match is ignored. For reference, the following code snippet shows the
expanded Solr query: |
||
3 |
|
Products that match the transformed query are boosted. For reference, the
following code snippet shows the expanded Solr query: |
||
4 |
|
Minimum match is applied to the query. For reference, the following code snippet shows the
expanded Solr query: |