Hello Everyone,
Anyone please suggested the inputs for Search G2 string sorting. I have tried this but didn't helped us "sort=custom_s_heading(home,max)%20desc"
We have a requirement of sorting based on number of occurrence of string value in the search G2 result.
Search: Plumbing – will try to find how many times plumbing is available in “custom_s_heading” and sort it based on the number of occurrence. Then find the same in “content” and sort and display.
For example: below are some values of “custom_s_heading”,
Sentence 1: My name is plumbing
Sentence 2: Plumbing can be done with those who knows plumbing works. Plumbing is an easy job.
Sentence 3: My plumbing work is in progress. Plumbing is good.
Since the 2nd sentence is having plumbing 3 times, it will return as first item from the search G2 result followed by sentence 3(2 times word plumbing used) and sentence 1(only 1 time word plumbing used).