Configure  context to return similar words

Dear experts,
we have Oracle 11.2.0.4 and we are using context index.
What needs to be done so that searching for  the term 'center'  will return  center as well as centre automatically without the user having to do soundex search.
Thanks.

Here is an example of the kind of thing I think is going on, but with a different error.  In earlier versions I believe you may have received the error you got instead.  The following demonstrates the behavior you described, then corrects the problem by granting the privilege directly, instead of through a role.
SCOTT@orcl> select banner from v$version
  2  /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0    Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
5 rows selected.
SCOTT@orcl> select owner, object_type from dba_objects where object_name = 'CTX_THES'
  2  /
OWNER                          OBJECT_TYPE
PUBLIC                         SYNONYM
CTXSYS                         PACKAGE BODY
CTXSYS                         PACKAGE
3 rows selected.
SCOTT@orcl> select * from dba_synonyms where synonym_name = 'CTX_THES'
  2  /
OWNER                          SYNONYM_NAME
TABLE_OWNER                    TABLE_NAME
DB_LINK
PUBLIC                         CTX_THES
CTXSYS                         CTX_THES
1 row selected.
SCOTT@orcl> BEGIN
  2    CTX_THES.CREATE_THESAURUS ('test_thes');
  3    CTX_THES.CREATE_RELATION ('test_thes', 'center', 'SYN', 'centre');
  4    CTX_THES.CREATE_RELATION ('test_thes', 'SUN', 'SYN', 'ORACLE');
  5  END;
  6  /
PL/SQL procedure successfully completed.
SCOTT@orcl> CREATE USER test IDENTIFIED BY test
  2  /
User created.
SCOTT@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
  2  /
User altered.
SCOTT@orcl> GRANT CREATE SESSION TO test
  2  /
Grant succeeded.
SCOTT@orcl> GRANT CREATE PROCEDURE TO test
  2  /
Grant succeeded.
SCOTT@orcl> GRANT CTXAPP TO test
  2  /
Grant succeeded.
SCOTT@orcl> CONNECT test/test
Connected.
TEST@orcl> CREATE OR REPLACE FUNCTION synonyms
  2    (p_terms IN VARCHAR2)
  3    RETURN       VARCHAR2
  4  AS
  5    v_terms       VARCHAR2(4000) := LTRIM (p_terms) || ' ';
  6    v_result    VARCHAR2(4000);
  7  BEGIN
  8    WHILE INSTR (v_terms, '    ') > 0 LOOP
  9       v_terms := REPLACE (v_terms, '  ', ' ');
10    END LOOP;
11    WHILE INSTR (v_terms, ' ') > 0 LOOP
12       v_result := v_result
13       || ' AND (' || CTX_THES.SYN (SUBSTR (v_terms, 1, INSTR (v_terms, ' ') - 1), 'test_thes') || ')';
14       v_terms := LTRIM (SUBSTR (v_terms, INSTR (v_terms, ' ')));
15    END LOOP;
16    RETURN SUBSTR (REPLACE (REPLACE (v_result, '{', ''), '}', ''), 6);
17  END synonyms;
18  /
Warning: Function created with compilation errors.
TEST@orcl> SHOW ERRORS
Errors for FUNCTION SYNONYMS:
LINE/COL ERROR
12/5     PL/SQL: Statement ignored
13/20    PLS-00201: identifier 'CTX_THES' must be declared
TEST@orcl> SELECT synonyms ('oracle') FROM DUAL
  2  /
SELECT synonyms ('oracle') FROM DUAL
ERROR at line 1:
ORA-06575: Package or function SYNONYMS is in an invalid state
TEST@orcl> SELECT CTX_THES.SYN ('oracle', 'test_thes') FROM DUAL
  2  /
CTX_THES.SYN('ORACLE','TEST_THES')
{ORACLE}|{SUN}
1 row selected.
TEST@orcl> CONNECT ctxsys/ctxsys
Connected.
CTXSYS@orcl> GRANT EXECUTE ON CTX_THES TO test
  2  /
Grant succeeded.
CTXSYS@orcl> CONNECT test/test
Connected.
TEST@orcl> CREATE OR REPLACE FUNCTION synonyms
  2    (p_terms IN VARCHAR2)
  3    RETURN       VARCHAR2
  4  AS
  5    v_terms       VARCHAR2(4000) := LTRIM (p_terms) || ' ';
  6    v_result    VARCHAR2(4000);
  7  BEGIN
  8    WHILE INSTR (v_terms, '    ') > 0 LOOP
  9       v_terms := REPLACE (v_terms, '  ', ' ');
10    END LOOP;
11    WHILE INSTR (v_terms, ' ') > 0 LOOP
12       v_result := v_result
13       || ' AND (' || CTX_THES.SYN (SUBSTR (v_terms, 1, INSTR (v_terms, ' ') - 1), 'test_thes') || ')';
14       v_terms := LTRIM (SUBSTR (v_terms, INSTR (v_terms, ' ')));
15    END LOOP;
16    RETURN SUBSTR (REPLACE (REPLACE (v_result, '{', ''), '}', ''), 6);
17  END synonyms;
18  /
Function created.
TEST@orcl> SHOW ERRORS
No errors.
TEST@orcl> SELECT synonyms ('oracle') FROM DUAL
  2  /
SYNONYMS('ORACLE')
(ORACLE|SUN)
1 row selected.
TEST@orcl> SELECT CTX_THES.SYN ('oracle', 'test_thes') FROM DUAL
  2  /
CTX_THES.SYN('ORACLE','TEST_THES')
{ORACLE}|{SUN}
1 row selected.

Similar Messages

  • "Primitive Type Returned", when I try to configure the data return type.

    I am basically following this tutorial, Getting started with ColdFusion and Flash Builder 4 beta, but instead of using the database provided, I am using SQL Server 2008.  I am now stuck on the part titled, "Configuring the data return type".  In step 5 of this section, I submit my credentials and then I get a popup titled:
    Primitive Type Returned
    The operation returned a response of the type "Object".
    You may either update server code to fix the returned data or Click OK to set "Object" as the return type of this operation.
    I am not sure if "server code" would be my database and/or the Coldfusion code that was provided in this tutorial.  I am thinking that its the former, however I am new to both technologies.  Would anyone know why FlashBuilder will not strong type this data for me?

    Hi,
    Thanks for your feedback!
    The server code here means the ColdFusion code provided in the tutorial.
    The "Configure return type" step is performed to change the return type of the function.
    If you notice after importing the CFC in the Flash Builder the return type of getAllData was Object but with this step you are trying to change it to a Strong Type.
    So context click on the getAllData function,select 'Configure return type', enter "EmployeeSalesData" click NEXT , enter valid RDS credentials in the security dialog and click FINISH.
    This should have ideally set your return type to "EmployeeSalesData"(Strong type).
    Also if you are extremely new to this i suggest you to pick up a pre-release build of Flash Builder which has a COOL feature which can help you get started pretty fast and simplify most of these workflows.
    To avail for the pre-release build please send a mail to [email protected]
    Hope this helps!
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Configuration Context for Master UIBB in Tabbed UIBB ist not taken

    Hello,
    i have definied a UIBB (UIBB A) with own configuration context.
    If i uses this UIBB direct in OIF, configuration context is used.
    If i define a tabbed UIBB and use UIBB A as Master UIBB with specific configuration -
    the configuration context is not loaded.
    I have SP14
    Regards
    Paul

    Hello Paul,
    in cases where you encounter obvious erros you should open a message. The respective component is bc-wd-cmp-fpm.
    Regards,
    Ulrich

  • How to return the word Breakfast if today is Sunday between 6AM and 10AM?

    Hello
    I'm trying to figure this formula that makes a cell return the word Breakfast if it is currently between 6AM and 10AM on a Sunday. However if it is currently between 6AM and 10AM on a Monday it would return the word Brunch for example.
    Any suggestion?
    Thank you

    Alex,
    Here's an approach.
    The expression in B is:
    =IF(AND(TIMEVALUE(A)>6÷24 ,TIMEVALUE(A)<10÷24,WEEKDAY(A)=1),  "Breakfast",IF(AND(TIMEVALUE(A)>6÷24 ,TIMEVALUE(A)<10÷24,WEEKDAY(A)=2),"Brunch", "Other"))
    For this to work in real time, substitute NOW() for A in the expressions.
    Jerry

  • Copying content from a PDF created from Mac os x10.6.7 quartzpdf context to a MS-Word document

    When I select the text from the PDF document, choose the copy option, then paste, I see garbled text in the Word document. I tried OCR recognition using Acrobat Professional 9
    but that failed stating "This page has graphics other than images and text. It cannot be captured"
    I checked the properties of the PDF document, and noticed that it was created from Mac os x10.6.7 quartz pdf context and PDF version was 1.4.
    The text I am trying to copy is not an image and the document has no protection at all.
    What else can I try?

    If you look at the fonts (ctrl-D>fonts) you will probably see the fonts may not be embedded, or if they are you do not have them on your system. For instance, a MAC uses Helvetica and Windows uses Arial. They look similar, but are different fonts. Likely when you copy to WORD, you are having the problem that the fonts are not on your system. Why not just ask the author for the original document if you need to copy the information. You should asking anyway if you are going to use their info.

  • Returns  of a Configurable material / Handling returns using VC

    Hi,
    We are using Variant Configuration and Material type 'KMAT'. We are using Assembly processing (strategy group 82). The MM/PP consultant is using movement type 101 (MIGO) to receive the finished KMAT in to Sales order Stock. This stock is then picked and delivered.
    Now, the customer wants to return the KMAT. After returning it, the client may either repair / rework on it, or make a new one (replacement) or give the customer a credit.
    I'm stuck in the very first stage. i.e., I cannot even create a return order (RE)  for item category TAC.
    Can someone please help me on how should I proceed with this? (step by step procedure will be really helpful)
    **Helpful Answers will be rewarded*****
    Thank You,
    Manoj.

    Hi Manoj,
    It is true that you can  not create a Return order with an Item Category 'TAC'. But again you never create a Sales document for one Item Category, actually the Item category will get determined in sales order with the combination of sales order type and the Item Category Group. And you can define your own rule to determine ur Item Category. If it is an urgent requirement then yes it is possible.
    For your Return order you must have 'REN' as your Item Category and not the 'TAC'.
    For the determination; Order Type(RE) - Item Category Group - Usage - Higher Item Category = Item Category.
    You may require to go as; 'RE' - '0002' - Usage - Higher Item Category = TAC.
    You use that and if your get any issue please come back.

  • How to (grep) similar words ending or not in s?

    The idea is to recognize identical words like:
    car /cars
    house/houses, etc.
    Could not solve with look-behinds, etc.

    We are working in an interactive grammar (spanish) where practically all the words, at least for our project, form plural with the addition of letter s. (Spanish do not have double ss ending words). Working with plurals is part of the goals.
    The copy is a list (single words separated by hard returns already alfabetized):
    Dardo
    DardoS
    Dedo
    DedoS
    Día
    DíaS
    Duda
    DudaS
    It is required that grep identify the singular or the plural when both words are the same.
    (Some exceptions like the word Dios/Dioses= God will be resolved  by other means)
    Thank you!

  • Configure Solution Manager for MS Word 2002

    Hi experts,
    I am currently facing a problem when I want to create a business blueprint from the SOLAR01.
    The MS Word document for the blueprint is created fine, but when I try to execute the macro it stops with error "library not found".
    The reason is that "Microsoft Excel 12.0 Object Library" is not present on my PC. That is because I am using MS Office 2002 (where only version 10.0 of this library exist).
    As far as I know the 12.0 Object library is part of MS Office 2007. I therefore presume that the Solution Manager is configured to create word documents for office 2007. So is there any possibility to configure it for office 2002?
    Thanks a lot for all answers.
    Best regards,
    Torben

    Hi,
    what is your solman system version?
    please refer this [Note 1442338 - Business Blueprint Document: collection of fixes|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1442338]
    jansi

  • How to return a word from an input string in random

    iam trying to return a single word from an input string.the word has to be selected in random.can u help?
    this is wat i tried so far
    private String findKeyWord(String remark)
    String[] input= stringobj.trim().toLowerCase().split(" "); // am splitting the string here and it gets stored in string array//
    return ????? //i should return any one word in the string in random//
    }

    array[random.nextInt(array.length)]

  • Return key word

    i know that when u write a mutator method ie getter that you specify the return type and u can specify the key word return.
    but am still confused about when you you sholud use it, i know that people say when u want to return a value , but that still doesn't explain it enough how do u know if u want to return a value..
    thanks

    i mean if a method had to perform a calculation and
    then the result had to be used else where in the
    program i would use the return keyword but thats the
    only case i know about
    public class bukaroo
      public static void main (String[] args)
        bukaroo b = new bukaroo();
        String theQuestion = "Why is dustpan sooooo cool?";
        String theAnswer =  bukaroo.AnswerMyQuestion( theQuestion );
        System.out.println("Aha, The answer is: "+theAnswer);
      public String AnswerMyQuestion(String myQuestion)
        String answer = JOptionPane.showMessageDialog(null, myQuestion, "My Question is:", JOptionPane.QUESTION_MESSAGE);
        return answer;

  • Missing help with similar word

    It is problem with search words in help.
    It is FF version independed.
    I use this category, because no one from listed fits.
    for example. I looking for help with word "cookie". Help should search for 'cookie' and "cookies'.
    another example with polish language.
    I tryed to find help about word 'ciastko'. no one were found, i should write word 'ciasteczko', that list me usefull help topics.
    'ciastko', 'ciasteczko', 'ciastka', 'ciasteczka' are about the same thing 'cookie', but are variants by plural/singular and diminutive. Difference is the same like between 'cookie' and 'cake', but all means the same 'cookie' in polish language.
    this problem affects many words in many languages.

    I have a basic Vowel coding that doeswnt work...
    public class vowel{
    String word = "heyyou";
    String vowels = "aeiouy";
    int[] countv = new int[vowels.length()];
    int countv2;
    int i=0;
    if(i<word.length();) { i++ {
    if (int j=0 && j<vowels.length()) {
    return j++;
    if (word.charAt(i)==vowels.charAt(j)) {
    countV[j]++; countV2++;
    for (int i=0; i<vowels.length(); i++) {
    System.out.println("Vowel "vowels.charAt(i)" = "+vcnt);
    System.out.println("Consonants = "+(word.length()-vtot)); }
    I also have a basic Palindrome code that works as a boolean but I need to make it return what the palindromes are and how many of them are there. I wanna know how I would do this.
    public class Palindrome{
    public static boolean isPalindrome(String word) {
    int left = 0;
    int right = word.length() -1;
    while (left < right) {       
    if (word.charAt(left) != word.charAt(right)) {
    return false;
    left++;
    right--;
    return true;
    I would also like to know how to actually start writing the word counter.

  • Item category for Configurable material in return sales

    Hi all
    I would like to know the Item category for the Configurable Material in Sales Returns process. (In MTO scenario)
    Thanks and Regards
    BMS

    Hi  BMS
    The item category will be  REN , because the return process is same . But the only thing is in  REN item category you have to maintain the BOM data as item categroy TAC has
    Secondly make sure in item category determination in VOV4 you determine the item category REN .
    For example RE  + 0004 + --- + = REN
    Regards
    Srinath

  • Java.io.File only returns similar file names

    I have written a bean which reads a directory and places the file names in an array, which can be accessed by a JSP page. At first, the files inside the directory were named wb_1.jsp, wb_2.jsp, wb_3.jsp and so on. When I change a filename to something like work.jsp, it still appears in the file list, but when I rename it to something like identify.jsp, it doesn't!
    If I count the array, it does read the correct number of files.
    Class FileHandler
    // Imports
    import java.io.File;
    // Class
    public class FileHandler
         // Constants and variables
         public File dir;
         public File[] files;
          * Returns the number of files found inside the given directory
         public int showFiles()
              try
                   setDir(getDir());     // Get file directory as set in the bean property
                   files = dir.listFiles();     // List the files found inside the directory
              catch (Exception e)
                   System.out.println(e + " : No files found to return a value");
              return files.length;      // Return the number of files
          * Returns the file name by using the in value in the files array
         public String returnFileName(int in)
              return files[in].getName();     // Return the name of the file
          * Sets dir file type to the setproperty value in
         public void setDir(File in)
              dir = in;     // Set class variable value for dir
          * Returns the dir value
         public File getDir()
              return dir;     // Return the setproperty value for dir
    }And the JSP code which reads the array
    out.println("<select onChange=\"jumpMenu('top',this,0)\" size=\"5\" style=\"width: 200\"");
    String fileName = new String();
    for(int x=0; x<file.showFiles(); x++)
         fileName = file.returnFileName(x);
         out.println("<option selected value=\"beheer.jsp?action=2&file=" +  fileName + "\">" +  fileName +"</option>");
    out.println("</select>");

    I forgot bean properties im the above code lines. Here it is, just in case.
    <jsp:useBean id="file" class="FileHandler" scope="page" />
    <jsp:setProperty name="file" property="dir" value="C:\\IBM Websphere workspace\\Project\\Web Content\\WEB-INF\\include" />

  • Dynamic configuration "null" value returned

    Hi all,
    I have reviewed the Michal blog and created a function to return the directory name, but it always returns a null value...
    Here is the code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","DirectoryName");
    String ourSourceDirName = conf.get(key);
    return ourSourceDirName; 
    I can't find the error....
    i will reward points....
    Gerardo.

    Hi 
    Please check the Adapter setting also and need addtional parameter where it return the value like
    DCJMSReplyTo
    DCJMSTimestamp

  • Calculated key figures are returning the word "ERROR"

    Hi All,
    the calculated key figures which i used in one query are displaying the word  "ERROR" at the end of the results as part of each cells formatting.But when i copied the same query to my system then its not showing the word error and even i created one more query which is a replica of the first one and then also iam not getting the error .
    what might be the cause of this issue . kindly suggest me how to control the word error in the out put
    regards,
    jayakrishna

    Hi,
    you can control the way BW displays exceptions with customizing (SPRO) transaction RSCUSTV4.
    identify differences of these settings in your systems and apply them accordingly.
    hope this helps...
    Olivier.

Maybe you are looking for

  • How to connect Airport Time Capsule to WD Live TV

    I recently bought an Airport Time Capsule with 2tb storage. I am wanting to access the media files I save to the Time Capsule on my WD TV Live. I have tried doing wirelessly and it works but if I shut my computer it disconnects and wont automatically

  • Officejet Pro L7590 - disconnected message

    After reinstalling the drivers and checking for updates, which are current, I'm still haveing problems printing from my CAD program Vectorworks Fundamentals.  When I send a document to print the system hangs on "spooling".  I can delete the file only

  • Horrid u201Ccrash for no apparent reasonu201D in the crystal viewer

    Hi We have embedded the new 2010 for VS crystal viewer in our .NET 4 enterprise application. We are sometimes seeing this crash: at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)    at System.Windows.Forms.Control.WmMouseMov

  • BSET table updation

    Hi We are changing the cart of account. The actual FI postings happen to the new GL account but in the TAX data tab, I still see the old GL accounts. Can any one help me how to default the TAX data segment to consider GL account from the New Chart of

  • Erroring while im installing

    I had to uninstall my previous version of itunes because it errored while uninstalling. That is no longer the case. I physically deleted all files and the itunes folder, hoping that i could just reinstall no problem. While installing, i get the messa