Topic
  • 1 reply
  • Latest Post - ‏2011-09-21T16:14:46Z by Jochen
vzlomanov
vzlomanov
1 Post

Pinned topic Omnifind 8.4 a complex query syntax

‏2011-09-14T07:16:51Z |
Is it possible to create a complex query in IBM Omnifind 8.4?
I don't find anything in the infocenter :(

Actually, I need something like this:


(all of these words) OR (field1:all AND field1:of AND field1:these AND field1:words) OR (field2:all AND field2:of AND field2:these AND field2:words)
Updated on 2011-09-21T16:14:46Z at 2011-09-21T16:14:46Z by Jochen
  • Jochen
    Jochen
    42 Posts

    Re: Omnifind 8.4 a complex query syntax

    ‏2011-09-21T16:14:46Z  
    Hi,

    there are 2 kinds of Omnifind query syntax: freestyle and opaque terms:
    http://publib.boulder.ibm.com/infocenter/discover/v8r5m0/topic/com.ibm.discovery.es.ap.doc/developing/iiyspqysyntx.htm

    THe freestyle syntax does not allow you to nest and AND within an OR, but the complex syntax does allow for that.
    Try:
    @xmlf2::'<.or><.and>all of these words</.and> <.and>field1:all field1:of field1:these field1:words</.and> <.and>field2:all field2:of field2:these field2:words</.and> </.or>'
    This syntax is actually for querying XML structure, but it should work as well without.
    I think this is also valid for 8.4, but I cannot validate.
    Cheers, /Jochen