This content has been marked as final. Show 6 replies
did you try this ?
http://localhost:8006/endeca_jspref/controller.jsp?sid=13E802CBE173&enePort=17001&eneHost=localhost&N=0&Nrs=collection()/record[P_Region = "Sonoma"]&Ntk=P_Description&Ntt=polihed&Ntx=mode+matchall+spell+nospell
http://localhost:8006/endeca_jspref/controller.jsp?sid=13E802CBE173&enePort=17001&eneHost=localhost&N=0&Nrs=collection()/record[P_Region = "Sonoma"]&Ntk=P_Description&Ntt=polihed&Ntx=mode+matchall
(Ntt is polihed instead of polished)
The first query didnot return any records and the second query returned few records.
I tried testing it on Wine app and it works perfectly.
This works for disabling spelling correction, however the records returned are an intersection of what's returned by Ntt/Ntk/Ntx and Nrs. I don't want that as my Nrs query is just an OR statement of different "matches" (aka search) queries. It's more expansive than what would be returned by Ntt/Ntk/Ntx alone, or adding Ntt/Ntk/Ntx to the query as you suggest.
What does the OR statement look like? Any way you could rewrite it to use a search, then use multiple searches as that would give you the intersection, i.e.
Ntk=product_interface|boolean_interface&Ntt=<regular-search>|<id> OR <id> OR <id>&Ntx=mode+matchallpartial|mode+matchboolean
I don't think boolean matches support spell-correction, but you could also use match-any match mode if you want to be able to switch on/off spell correction with spell+nospell for each of the searches. Of course it'll need your OR logic to be simple enough to match the boolean search logic, so not possible if you're doing anything complex, but thought I'd mention it in case it might work.
Ah, I thought this was for product identifiers so you wouldn't need thesaurus/spell correction etc. In that case, rather than using a boolean search couldn't you use a regular search with match mode of "Any"? I've done that in the past for a similar-ish requirement and it worked well, with the proviso that you need to phrase any of your multi-term OR matches and increase the search_max threshold.