Page 1 of 1

Looking for a more compact metamorph query syntax

Posted: Wed Apr 30, 2014 9:21 pm
by barry.marcus
I'm looking for a more efficient way to phrase some of our lengthier metamorph queries. Here is a *small* example... We often have situations where we have a large number of required words to find near one or more non-required words, but where only one of the required words *has* to be found. In other words, something like this:

MyField like '+ship* @0 online* internet* w/6' or MyField like '+shop* @0 online* internet* w/6' or MyField like '+commerce @0 online* internet* w/6' or ... etc.

This gets cumbersome to construct, and I was hoping to find a more compact syntax along the lines of:

MyField like '(+ship* or +shop* or +commerce or ...) @0 online* internet* w/6'

Another reason we'd like to be able to do this is that our application also translates our texis queries to the syntax required by a third party search engine that we use for the purpose of finding and purchasing additional data for our databases. That engine occasionally balks when the queries are structured in the "non-compact" form described above (albeit translated to the proper syntax) with a lot of structural repetition. The code that does a one-to-one translation from the texis syntax is easy, not to mention already implemented. Building code to recognize where phrases are repeated and combining them into a more compact structure, as well as translating that revised structure, would be much harder.

So far nothing I've tried seems to work right. Is there syntax for this sort of thing? Thanks.

Looking for a more compact metamorph query syntax

Posted: Wed Apr 30, 2014 9:53 pm
by John
Not with the wildcards. Otherwise it would be the invite thesaurus syntax.

+(ship,shop,commerce) (online,internet) w/6

Looking for a more compact metamorph query syntax

Posted: Thu May 01, 2014 12:18 pm
by barry.marcus
OK, thanks. We will try to work with something like that. But what do you mean by "invite thesaurus"?

Looking for a more compact metamorph query syntax

Posted: Thu May 01, 2014 5:31 pm
by mark
I suspect "inline" got auto-corrected to "invite".