Results for “as_word_replacements_pk”

6 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The AS_WORD_REPLACEMENTS table is a Sales Foundation (AS) configuration object in Oracle E-Business Suite, owned by the OSM schema. Its documented purpose is to define word replacement rules for the Fuzzy Find functionality — the search-assist behavior that resolves user-entered search strings into the vocabulary actually used in stored master and transactional data. Each row maps an original word, or an alias a user might type, to a replacement word that the search engine should apply when matching records.

Applications in the Oracle Sales family, including Oracle iStore, Oracle Sales Online, and related catalog and order-capture flows, depend on this behavior to reconcile colloquial or variant terminology with canonical product, customer, and reference data. When a user searches for a term, the Fuzzy Find logic consults the replacement rules to decide which stored token should be matched, improving retrieval recall without altering the underlying records.

The ETRM documentation classifies this object heuristically as standalone in the Data Vault model. This is a modeling suggestion: the table has no mined foreign-key dependencies, so it behaves as an independent reference or lookup structure rather than a hub, link, or satellite within a connected Data Vault graph. It is best treated as reference data that is maintained centrally and consumed at search time.

Key Information Stored

The table contains 25 documented columns. The most significant are:

  • ORIGINAL_WORD — the source token, typically the word or phrase typed by a user during a search. It forms part of the primary key.
  • TYPE — classifies the replacement rule, distinguishing, for example, categories of word-level versus phrase-level or context-specific substitutions. It is the second component of the unique business key.
  • REPLACEMENT_WORD — the target token that the Fuzzy Find process substitutes for the original word during matching.
  • COUNTRY_CODE — constrains a rule to a specific country or locale, allowing region-specific vocabulary and language variants.
  • ATTRIBUTE_CATEGORY and ATTRIBUTE1 through ATTRIBUTE15 — the standard Oracle EBS descriptive flexfield columns, available for customer-specific extensions without modifying the table definition.
  • CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — the standard who-column audit set recording row creation and modification.

The surrogate primary key is AS_WORD_REPLACEMENTS_PK, defined on ORIGINAL_WORD. A separate unique index, AS_WORD_REPLACEMENTS_U1, is defined on the composite of ORIGINAL_WORD and TYPE. The unique index is the strongest documented business-key candidate, indicating that a given original word may appear more than once, once per rule type, but never twice with the same type. COUNTRY_CODE further qualifies applicability but is not part of the documented unique key.

Common Use Cases and Queries

Typical usage centers on maintaining and auditing replacement rules. Administrators and support analysts query the table to verify that a given search term resolves as expected, to identify duplicate or conflicting rules, and to confirm which rules are scoped to a country.

  • Retrieve all rules for a specific original word across types: SELECT ORIGINAL_WORD, TYPE, REPLACEMENT_WORD, COUNTRY_CODE FROM AS_WORD_REPLACEMENTS WHERE ORIGINAL_WORD = :word;
  • Detect conflicting replacements for the same original word and type, which would violate the unique index if inserted: SELECT ORIGINAL_WORD, TYPE, COUNT(*) FROM AS_WORD_REPLACEMENTS GROUP BY ORIGINAL_WORD, TYPE HAVING COUNT(*) > 1;
  • List all rules active for a country: SELECT * FROM AS_WORD_REPLACEMENTS WHERE COUNTRY_CODE = :country;
  • Audit recent changes by user and date using LAST_UPDATED_BY and LAST_UPDATE_DATE.

Reporting use cases include rule-coverage reports showing how many stored terms have active replacements, and migration checks comparing rule sets between environments using the concatenation of ORIGINAL_WORD and TYPE as the natural comparison key.

Related Objects

The mined relationship data classifies this object as standalone, so no foreign keys are documented as originating from or referencing it. Consequently, related objects are those that consume its rules at runtime rather than enforce referential integrity:

  • The Fuzzy Find search logic in the Sales Foundation module, which reads rules by ORIGINAL_WORD and TYPE.
  • Oracle iStore and Oracle Sales Online search and catalog pages, which surface results shaped by the replacement rules.
  • AS_LOOKUPS and other Sales Foundation reference tables that commonly accompany Fuzzy Find configuration.
  • The AS_WORD_REPLACEMENTS_PK and AS_WORD_REPLACEMENTS_U1 indexes, which enforce uniqueness on ORIGINAL_WORD and on ORIGINAL_WORD with TYPE.

Because no FK columns are documented, joins to other tables rely on matching ORIGINAL_WORD, REPLACEMENT_WORD, or COUNTRY_CODE values to equivalent attributes in catalog, customer, or lookup data, rather than on enforced foreign-key constraints. Changes to this table therefore affect search behavior directly and should be validated in a test environment before promotion.