IDOL Server 24.1

# Expansion

The method to use to expand the specified Text. You can use one of the following options:

- `Autocomplete`. Returns terms or phrases that start with the specified Text, which can be a substring. For example, an input of great might return great and greater (terms), and Great Britain and Greater London (phrases).

  When the input text ends with a space character, IDOL Server treats it as a whole word and returns only phrases that contain it as a whole word. For example, `text=great%20` returns Great Britain, but does not return great or greater. When the input has multiple terms, IDOL Server attempts to find phrases based on the whole input. If it cannot find any, it returns suggestions based on just the trailing term or terms.

  NOTE: To return phrases based on the whole input, you must enable the phrase index. See EnablePhraseIndex.

- `Fuzzy`. Return terms whose spelling is similar to that of the misspelled term specified for Text. You can also specify a number that indicates the maximum fuzzy distance to expand the terms over. For example:

      action=TermExpand&Text=acomodation&Expansion=Fuzzy3

- `Phrase`. Return phrases that start with the whole word or words in the specified Text. All phrases start with the input text as a whole word or words.

  NOTE: To use this option, you must enable the phrase index. See EnablePhraseIndex.

- `Synonym`. Return the term phrases that the synonym link specified for Text corresponds to.

- `Stem`. Return all terms (in unstemmed form) that stem to the same stem as the Text term. Stemming is carried out according to the language of the query language type (the Stemming parameter has no effect for this option).

- `Wild`. Return terms that match the Wildcard term specified for Text.

Actions: | TermExpand
Type: | String
Default: |
Example: | `TermExpand&Text=ryhthm&Expansion=Fuzzy` For this query, IDOL Server returns terms whose spelling is similar to that of the term ryhthm, for example, `RHYTHM`, `RHYTHMIC`, and so on. `TermExpand&Text=car*&Expansion=Wild` For this query, IDOL Server returns terms that match the Wildcard term `car*`, for example, `CARAT`, `CARBONOXID`, `CARDIGAN`, and so on. `TermExpand&Text=FKKKNNLLX&Expansion=Synonym` For this query, IDOL Server returns the term phrases that the synonym link `FKKKNNLLX` corresponds to. For example, if the synonym link was returned by a synonym query for dog, the synonym link might expand to `MANS BEST FRIEND`, `HOUND`, `DOG`, and so on. `TermExpand&Text=great&Expansion=Autocomplete` For this query, IDOL Server returns terms or phrases that start with the word great, for example `GREAT`, `GREATER` (terms), and `GREAT BRITAIN`, `GREATER LONDON` (phrases). `TermExpand&Text=man&Expansion=Phrase` For this query, IDOL Server returns phrases that start with the word man, for example, `MAN ON THE MOON`, `MAN OF STEEL`, and so on. It does not return phrases that start with man as a substring (for example, man does not expand to `MANCHESTER UNITED` or `MANCHESTER CITY`).
See Also: | Text

Copyright 2023 Open Text
Version 24.1 | Last updated December 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL Server 24.1

Topic Title: Expansion