Input Forms

Input forms have a double role. They determine what fields are displayed to the user (what HTML form is presented), and they determine how the parameters entered by the user have to be interpreted.

Consequently, when using query-meta, there are two important variables regarding the forms:

It is important to understand the rationale behind these two variables. When a user switches from an advanced form to a simple form, the form used to interpret the query (the advanced form) is different from the form displayed to the user. In particular, Watson Explorer Engine will need to properly convert the query from one form to the other if possible.

Elements that you can add to an input form are the following:

Note: Non-alphanumeric characters in query words are automatically quoted (addition of double quotation marks) by the query-meta script. This means that any of the quoted words will be handled with phrase logic. For example, the query tim's search would be translated to "tim's" search within the search engine. If this behavior is not wanted, the special characters should be added to the word-chars attribute of your form's query input. For example, to add an apostrophe as a word character to the simple form the query input would be modified as follows:
  <input name="query" word-chars="'" syntax="AND and () CONTAINING CONTENT %field%: + NEAR - NOT NOTCONTAINING NOTWITHIN OR0 quotes regex stem THRU BEFORE FOLLOWEDBY weight wildcard WITHIN WORDS site less-than less-than-or-equal greater-than greater-than-or-equal equal range" field="query" size="50" />

See the schema for a complete specification of forms. For information on fields, click Fields.