Yeh that seems to be the issue:
"query": "",
"queryAsProcessed": "[accounting \"accounting finance\" \"accounting and mathematics statistics\" \"accounting business law\" \"accounting business enterprise\"] [andersonian \"and tourism management\" \"and creative writing french\" \"and creative writing\"] [finance finance finance finance finance]",
"queryRaw": "",
"querySystemRaw": "[\"accounting\" \"accounting finance\" \"accounting and mathematics statistics\" \"accounting business law\" \"accounting business enterprise\" ] [\"and\" \"andersonian\" \"and tourism management\" \"and creative writing french\" \"and creative writing\" ] [\"finance\" \"finance\" \"finance\" \"finance\" \"finance\" ]",
Because I'm using a script similar to this:
But when I remove this script the ras
option works and the stop word ("and") is removed. Then I see results:
"query": "accounting and finance",
"queryAsProcessed": "accounting finance",
"queryRaw": "accounting and finance",
"querySystemRaw": null,
"queryCleaned": "accounting and finance",
But now I've lost allowing partial queries
Within the script above, before it fetches suggestions for the query, to strip out stop words at that stage - is this a good idea? If so, is there a means of fetching my list of stop words for this collection within the script, rather than hard coding them in, and then I can strip them out before proceeding with the rest of the script fetch suggestions?
Otherwise, do you have any suggestions how I can continue to allow partials queries, but also remove stop words?