ftsMatch (Field Text Search Match) - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

ftsMatch predicate allows to make a super exact query. The following values are available: word, phrase, field, permField or strict.

  • word: the behavior is identical as without the option, word are processed one by one.
  • phrase: all the keywords are processed like a phrase, like if there were exact string quotes around the keywords (it means the words are in this order in indexed text).
  • field: all the keywords are processed like atomic entity. It means they appears as is in an afs:item indexing tag (same number of words in the same order).
  • permField: the keywords match either exactly or after permutation with the content of an indexed item.
  • strict: all the keywords are processed identically that with word, and in addition all the normalizations are removed (it means words are in this order in indexed text, with the same case, same accent, and without normalization neither thesauri).

Example

The following item has been indexed by a PaF:

<Foo bar foobar>

Queried words

Mode

Query example

Result triggered?

foo bar

Word

...&afs:query=foo bar&afs:ftsMatch=word&...

Yes

foo foobar

Phrase

...&afs:query=foo foobar&afs:ftsMatch=phrase&...

No

foo bar

Phrase

...&afs:query=foo bar&afs:ftsMatch=phrase&...

Yes

bar foobar

Phrase

...&afs:query=bar foobar&afs:ftsMatch=phrase&...

Yes

foo bar

Field

...&afs:query=foo bar&afs:ftsMatch=field&...

No

foo bar foobar

Field

...&afs:query=foo bar foobar&afs:ftsMatch=field&...

Yes

bar foobar

Field

...&afs:query=bar foobar&afs:ftsMatch=field&...

No

Foo bar

Strict

...&afs:query=Foo bar&afs:ftsMatch=strict&...

Yes

foo bar

Strict

...&afs:query=foo bar&afs:ftsMatch=strict&...

No

Foo foobar

Strict

...&afs:query=Foo foobar&afs:ftsMatch=strict&...

Yes

Foo Foobar

Strict

...&afs:query=Foo Foobar&afs:ftsMatch=strict&...

No

bar foo foobar

Permfield

...&afs:query=bar foo foobar&afs:ftsMatch=permField&...

Yes

bar foobar

Permfield

...&afs:query=bar foobar&afs:ftsMatch=permField&...

No