IDOL Content Component 12.13

# 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. 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 Content Component 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 Content Component 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 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 Content Component 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 Content Component 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 Content Component 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 Content Component returns terms or phrases that start with the word great, for example `GREAT`, `GREATER` (terms), and `GREAT BRITAIN` (phrase). `TermExpand&Text=man&Expansion=Phrase` For this query, IDOL Content Component 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 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Content Component 12.13

Topic Title: Expansion