Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
shyamcharan
Creator III
Creator III

Replacing keywords with synonymns

Hi Experts,

I have a requirement where I should allow users to let search with various Synonyms words but still get the closest match in the result.

For example:

Synonym Table:

Keyword, Synonym

Sydn, Sydney

Syd, Sydney

Sydney, Syd

Syd, Syd

Trn, Train

Tr, Trn

Tran, Trn

Tran, Train

T, Train

St, Station

Stn, Station

St, St

Stn, Stn

Plt, Platform

Pltfm, Platform

Platform, Plat

Actual Table:

Column1

Sydney Train Station Platform

I need something like a column that will created in the Actual Table and called as Column1Synonym and values should be like as below

Actual Table:(With synonym column)

Column1, Column1Synonym

Sydney Train Station Platform, Sydn Sydney Syd Trn Train Tr Tran Trn T St Station Stn Plt Platform Pltfm Plat

Is this acheivable by any function like Applymap?

Or is there a functionality that I can build that could be called as Data Dictionary so that this can be used for searching?

Thanks heaps in advance.

Regards,

Shyam.

4 Replies
shyamcharan
Creator III
Creator III
Author

Hi Shankarece,

Thanks for tagging in my own old posts.

But this requirement is completely different.

This time I need a column that is created using the Actual Column data and the Synonym words.

Sorry if I misunderstood your reply.

Thanks heaps in advance.

Regards,

Shyam.

robert_mika
Master III
Master III

This time I need a column that is created using the Actual Column

Could you post an example how this column should look like?

shyamcharan
Creator III
Creator III
Author

Hi Robert,

Thanks for the response. I have put an example in my first post and the same I am putting down below for reference.

Actual Table:(With synonym column)

Column1, Column1Synonym

Sydney Train Station Platform, Sydn Sydney Syd Trn Train Tr Tran Trn T St Station Stn Plt Platform Pltfm Plat

The Synonyms are from the Synonym table as said in my first post.

Regards,

Shyam.