Specifying code pages for phrased text search of Thai language content
Review the special instructions if you want to use phrased text search of Thai language content.
When you do a text search of Thai language content, you can perform one-word searches or phrased searches. A phrased search is several Thai words written together without spaces.
To support phrased searches in Thai content in IBM® Content Manager, create the Db2® database in the Thai code page. Then create the text index in the Thai code page with the language specified as TH_TH. Alternatively, create the Db2 database in Unicode and create the text index in the Thai code page CCSID 1208.
After the database and the text index
are created, you can perform two types of text searches through Db2 Net Search Extender.
- To search for one Thai word by using the regular advanced text
search syntax:
/MyItemTypeView[contains-text(ICMPARTS/@TIEREF, " 'Thai characters' ")=1] - To search for Thai phrases by using the Db2 Thai-specific advanced text search syntax:
/MyItemTypeView[contains-text-db2(ICMPARTS/@TIEREF, \" IS ABOUT TH_TH 'Thai characters' \")=1]