How to implement fuzzy search in Query variables

Dear Experts,
Fuzzy search is eazy implemented in the abap  , but I do not know how to implement fuzzy search in Query variables
our company have  a report,with input variable of customer code,   the user want to input 3 bits as fuzzy search. for example,
the customer code  have 10 bit,  she want to only  input 3 bits before-- EAE *
and hope the results will  be displayed.  if you have any solution , please advise. 
ManyTthanks.
Best Regards.
Steve

closed

Similar Messages

  • How to implement the search help exit to MM01 for Material by product hiera

    Hi,
    How to implement the search help exit to MM01 T-code for Material by product hierarchy,
    but system default it gives the data from MVKE table, my client wants from MARA table,
    i created the one Function Module, write this code in that FM.
    IF CALLCONTROL-STEP EQ 'DISP'.
    REFRESH RECORD_TAB.
    SELECT * FROM MARA INTO TABLE RECORD_TAB
    WHERE PRDHA = 
    ENDIF.
    I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
    is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
    thanks to all.

    Hi there..
    check my web blog on search help exit...
    [Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0]

  • How to implement google search in portal application

    Hi,
      I am using  "http://api.google.com/GoogleSearch.wsdl" file to implement google search in portal application. but i am not able to get the search result. how to implement google search. is this "http://api.google.com/GoogleSearch.wsdl" is vaild now ?. how to achieve the soultion.
    Regards,
    Shanthakumar.

    Hi Shanthakumar,
    The "GoogleSearch.WSDL" is no longer available as google has replaced it with the new AJAX based searching and they have eventually removed it from public use as well from 7th September 2009. So, I would imagine you would not be able to use the earlier WSDL file for google search. You might have to look in using the new "AJAX Search API". For more information have a look the following links. You can notice "No Longer Available" at the top of the page.
    http://googlecode.blogspot.com/2009/08/well-earned-retirement-for-soap-search.html
    http://code.google.com/apis/soapsearch/api_faq.html#tech15
    I hope this helps you.
    Regards,
    Gopal.

  • How to implement alphabetic search in combo box

    Hi all,
    how to implement alphabetic search in combo box through coding.
    Thanks for any replies

    Im not sure if I undestand correctly, but example is
    sCFL_ID = oCFLEvento.ChooseFromListUID
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFL = oFormKontrolaMZ.ChooseFromLists.Item(sCFL_ID)
                        If oCFLEvento.BeforeAction = False Then
                            Dim oDataTable As SAPbouiCOM.DataTable
                            oDataTable = oCFLEvento.SelectedObjects
                                    val = oDataTable.GetValue(1, 0)
    oForm.DataSources.UserDataSources.Item("EditDS").ValueEx  = val
    and then load from datasource to matrix.
    hope it helps
    Petr

  • How to Implement the Search page for Workflow Notifications?

    Hi All,
    I want to implement the new Search page for Workflow Notifications. Search page containing Company, Paygroup, Source, Initiator, Supplier Name, From date & To date fields. These fields(Poplist & Calendar) are getting the values from different tables and these fields are not in WF_NOTIFICATIONS table only Initiator & dates are there. After selecting the values in all fields or one field based upon these values I want to display the all Workflow Notifications ( Those are satisfy the search criteria only not all ) in Advance Worklist Table RN in the Notifications page. Is it possible to create the Search page based upon the above scenario if Yes Let me know how to implement this search page for Workflow. Page was designed but how to get the sortlisted Notifications and how to pass these values to next page?
    Thanks in advance.
    Edited by: user635152 on Nov 13, 2008 10:53 AM

    Hi Guru,
    I crete the Search page having 5 poplists and select the values from dropdown list and click GO button it serch the records and displays that records in ResultsTable in same page.
    My case, Search page is running fine if I select the values and click GO button page is refreshed without errors but I am unable to displays the records in ResultsTable.
    What I am missing?
    My Select Stmt:
    SELECT * FROM      
    (select wn.nid notification_id
    ,ou.name company
              ,I.PAY_GROUP_LOOKUP_CODE paygroup
              ,'AP' source
              ,pf.full_name initiator
              ,pv.vendor_name supplier_name
              ,I.GL_DATE FROM_TO_DATE
    from ap_invoices_all i
    , po_vendors pv
         , hr_operating_units ou
         , per_all_people_f pf     
         , FND_USER FU
    , (SELECT trim(substr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),
    1,instr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),' for'))) inv_no
    ,notification_id nid
    FROM WF_NOTIFICATIONS WN
    WHERE WN.MESSAGE_TYPE = 'APINV'
    AND WN.STATUS NOT IN ('CANCELED','CLOSED')) wn
    where i.vendor_id = pv.vendor_id
    and i.invoice_num = wn.inv_no
    and i.WFAPPROVAL_STATUS = 'REQUIRED'
    and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
    and i.org_id = OU.organization_id
    AND OU.name like nvl(:company_name,name)
    and i.pay_group_lookup_code = nvl(:pay_group,i.pay_group_lookup_code)
    and exists (select ad.invoice_id
    from ap_invoice_distributions_all ad
    where ad.invoice_id = i.invoice_id
    and ad.accounting_date between nvl(:from_date,ad.accounting_date)
                                       and nvl(:to_date,ad.accounting_date))
    and 'AP' = nvl(:source,'AP')
         and i.created_by = fu.user_id
         AND fu.EMPLOYEE_ID = pf.person_id
         AND pf.full_name like nvl(:initiator, pf.full_name)
    UNION ALL
              select po_num.nid notification_id
              ,ou.name company
              ,ps.PAY_GROUP_LOOKUP_CODE paygroup
              ,'PO' source
              ,pf.full_name initiator
              ,pv.vendor_name supplier_name
              ,P.CREATION_DATE FROM_TO_DATE
         from po_headers_all p
         ,po_vendors pv
              ,po_vendor_sites_all ps
              ,hr_operating_units ou
              ,per_all_people_f pf
         ,(select trim(substr(wn.subject,24,instr(wn.subject,' for')-24)) po_no, notification_id nid
              FROM WF_NOTIFICATIONS WN
         WHERE WN.MESSAGE_TYPE = 'POAPPRV'
         AND WN.STATUS NOT IN ('CANCELED','CLOSED')
         and wn.subject like 'Standard Purchase Order%') po_num
         where p.SEGMENT1 = po_num.po_no
         and p.vendor_id = pv.vendor_id
         and p.org_id in(select organization_id
         from hr_operating_units
         where name like nvl(:company_name,name))
         and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
         and p.AUTHORIZATION_STATUS = 'IN PROCESS'
         and p.CANCEL_FLAG = 'N'
         and 'PO' = nvl(:source,'PO')
         and p.agent_id = pf.person_id
         and pf.full_name like nvl(:initiator, pf.full_name)
         and pv.vendor_id = ps.vendor_id
         and ps.org_id = ou.organization_id
         and ou.name like nvl(:company_name,name)
    and ps.PAY_GROUP_LOOKUP_CODE = nvl(:pay_group,ps.PAY_GROUP_LOOKUP_CODE)
         and trunc(p.creation_date) between nvl(:from_date,trunc(p.creation_date)) and nvl(:to_date,trunc(p.creation_date))
    In CO PFR Code:
    if (pageContext.getParameter("Go") != null)
    OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
         String COMPANY = pageContext.getParameter("COMPANY");
    String PAYGROUP = pageContext.getParameter("PAYGROUP");
    String SOURCE = pageContext.getParameter("SOURCE");
    String INITIATOR = pageContext.getParameter("INITIATOR");
    String SUPPLIER_NAME = pageContext.getParameter("SUPPLIER_NAME");
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    Serializable[] parameters = { COMPANY, PAYGROUP, SOURCE, INITIATOR, SUPPLIER_NAME, executeQuery};
    Class[] paramTypes = { String.class, String.class, String.class, String.class, String.class, Boolean.class };
    am.invokeMethod("initSearch", parameters, paramTypes);
    OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("ResultsTable");
    table.queryData(pageContext, false);
    AM invoke Method():
    public void initSearch(String company,
    String paygroup,
    String source,
    String initiator,
    String supplier_name,
    Boolean executeQuery)
    WorklistFindVOImpl vo = getWorklistFindVO1();
    if (vo == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "WorklistFindVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    vo.initQuery(company, paygroup, source, initiator, supplier_name, executeQuery);
    VO Code:
    public void initQuery(String company,
    String paygroup,
    String source,
    String initiator,
    String supplier_name,
    Boolean executeQuery)
    StringBuffer whereClause = new StringBuffer(500);
    Vector parameters = new Vector(5);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null); // Always reset
    if ((company != null))
    String companyname = null;
    try
    companyname = new String(company);
    catch(Exception e) {}
    whereClause.append("COMPANY= :COMPANY");
    whereClause.append(++bindCount);
    parameters.addElement(company);
    clauseCount++;
    if ((paygroup != null) && (!("".equals(paygroup))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("PAYGROUP = :PAYGROUP");
    whereClause.append(++bindCount);
    parameters.addElement(paygroup);
    clauseCount++;
    if ((source != null) && (!("".equals(source))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("SOURCE = :SOURCE");
    whereClause.append(++bindCount);
    parameters.addElement(source);
    clauseCount++;
    if ((initiator != null) && (!("".equals(initiator))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("INITIATOR = :INITIATOR");
    whereClause.append(++bindCount);
    parameters.addElement(initiator);
    clauseCount++;
    if ((supplier_name != null) && (!("".equals(supplier_name))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append("SUPPLIER_NAME = :SUPPLIER_NAME");
    whereClause.append(++bindCount);
    parameters.addElement(supplier_name);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    if ((executeQuery != null) && (executeQuery.booleanValue()))
    executeQuery();
    } // end initQuery()
    Please let me know what I did mistake in my code?
    I am unable to find it what I missing and there is no errors but no records displayed in Results Table.
    Please it's urgent.
    Thanks
    Nag.
    Edited by: user635152 on Nov 19, 2008 4:43 PM

  • How to implement saved search delete feature in af:query

    Hi,
    I have implement MDS for af:query. However, delete button in "Personalized" window of af:query is still being disable.
    My test flow is the following:
    1) fire a search on the query component and then save it as "savedSearch1".
    2) then try to personalize it. Observed that "Delete" button in Personalize window is being disable. Not able to delete "savedSearch1"
    My question is: Is there a way for me to enable the "Delete" Button at the personalized window so that user can delete the saved search?
    I have af:query component with the following code:
    <af:query id="qryId1" headerText="#{uiBundle.SEARCH}" disclosed="true"
    value="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryDescriptor}"
    model="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryModel}"
    queryListener="#{KanbanSummaryBean.queryListener}"
    queryOperationListener="#{bindings.KanbanCardSummaryVOCriteriaQuery.processQueryOperation}"
    resultComponentId="::pc1:t1" maxColumns="2" rows="1"/>

    Hi,
    Does anyone knows the answer for this question?
    Thanks,
    Hong

  • How to implement a search engine in java ?

    Hi All,
    1. Can anyone explain me with java code how to connect to a excel database residing on a
    different(I know that we do it thro' dsn) machine in my network. I know that we do it with a dsn.
    I created a network map but when I execute the statement
    "Connection conn = (Connection)DriverManager.getConnection("jdbc:odbc:accesscarddsn");"
    then I am getting the error:
    SQLException:[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    2. I am doing a website where some pages of website are jsp, servlets. I want to implement a search functionality in my site so that if the user types a keyword then I need to show him the links to the pages(whether jsp,html) which contain this keyword. How do I do that other than using property files .
    Thanks & Regards,
    Kumar.

    With regard to your first question,you need to supply user name and passwrd in the connection statement.I guess that's problem when it saya..too few parameters. IF there is no user name and passwd, sne dnull strings.
    With regard to the search functionality, there are many ways you can implement it.I am not sure about any readymade products available on the web, however you can code it yourself, it might be time consuming but I feel it is better.You can do it this way:
    1. Parse all the html docs in ur website, ignore all the html tags and maintain a HASH table of all words and the locations you found the word in.You can optioanlly remove all stopwords, i.e. words that occur commonly like 'a', 'an' etc..
    2. The next phase is to take a query through a cgi program and search the hash table for all keywords,make sure you seach for each keyword in the query seperately.Retreieve the docs, display the results on a html page.
    Cheers!

  • How to implement "Date searching criteria"

    I have a block contains some textboxes such as project_no, project_name, startdate.
    I would like to search by startdate.
    For example, I have 2 other text items for searching only. the first item is "DATE1" the second item is "DATE2". I want a user to enter a date into the first text item "DATE1" and enter another date into the second text item "DATE2". then click on execute button to get the result.
    The result is supposed to be all StartDates that match the criteria.
    How can i implement this in forms6i???
    Thank you in advance for your help.

    ok, i will explain more in details,
    I have a data block contains some text boxes (sno, empno, projectno, startdate), currently, users can click the "Execute" button and return all records or users can go to Enter query mode and insert a value (search criteria) into any of these textboxes, and then they will get the required record after clicking the "Execute" button.
    I added 2 non database text boxes(date1,date2) for searching purpose, it will return all startdates located between these 2 dates. I used the following code for that and its working fine but "IT DISABLED THE OTHER SEARCHING CRITERIA (sno, empno...)" which is not good because i want a suer to have a choice.
    Declare
    where_dt varchar2(150);
    Begin
         IF :System.Mode = 'NORMAL' THEN
         set_block_property('blk_name', default_where,'');
         Else
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    set_block_property('blk_name', default_where,where_dt);
         End if;
    Execute_query;
    End;
    So, i edited the code to include the other criteria, users can search by one criteria only.
    Declare
    where_dt varchar2(150);
    Begin
    IF :System.Mode = 'NORMAL' THEN
    set_block_property('blk_name', default_where,'');
    Else if :System.Mode = 'Query' Then
    if :blk_name.Date1 and :blk_name.Date2 is not null then
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    end if;
    if :blk_name.sno is not null then
    where_dt:='sno = :blk_name.sno';
    end if;
    if :blk_name.empno is not null then
    where_dt:='empno = :blk_name.empno';
    end if;
    set_block_property('blk_name', default_where,where_dt);
    End if;
    Execute_query;
    End;
    Unfortunately, this code is not working, i am getting error.
    It points to the last "END;" and returns error: "Encountered the symbol ";" when expecting one of the following IF "
    Any help please??

  • How to implement enter and execute query in ADF

    I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help me / point me to how this can be implemented.
    Thanks,
    Srini.

    Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
    Regards,
    Srini.

  • How to implement a search functinality for lists in sharepint 2013 programatically

    Hi Team,
    I have a requirement like,
    Need to implement a custom webpart to search the results from lists in sharepoint 2013 programatically.
    Regards,
    Dhayanand

    Hi,
    According to your post, my understanding is that you want to implement a custom list search in SharePoint.
    In SharePoint 2013, there is an out of the box list search “Find an item” search box, you can use it to search items in a list.
    We can also use the JavaScript to achieve it, there is a simple code deme about this, you can refer to it.
    https://social.technet.microsoft.com/Forums/office/en-US/2529ba3e-9cd6-4f83-9258-435fedfc1e96/sharepoint-list-search-in-moss-2007?forum=sharepointsearchlegacy
    What’s more, there is a third-party software to achieve the same scenario.
    http://store.bamboosolutions.com/sharepoint-list-search-web-part.aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How is implemented the search for collab objects?

    Hello everybody!!
    Can someone tell me how are stored the 'cards' (but i'm not sure it's card for collab objects like projects, discussions...)? Because i'm not sure these objects are crawled...
    In fact i would like to disable the search on some specific native collab objects (some projects needs to be hidden completly) but not all. Is it possible??
    Thanks.

    Unfortunately, there is no configuration setting in Collab that you can disable certain types of objects to be indexed, nor can you disable objects from certain projects to be indexed. I am not sure this will help your case, but just FYI: you can disable certain types of documents to be indexed by editing filetypes.xml.

  • How to view sap standard 0P_PRFP1 query variable

    Hi Guys,
    I want to view the code for sap stadard query varibale Previous Period of Current Fiscal Year (SAP Exit) 0P_PRFP1. I have checked in TCode SE37. I know i can view customer exits by viewing Tcode CMOD. Is there a transaction to view SAP standard variables?
    Thanks
    Forhad

    Hi,
    Is it Function Group BWCO -> Function Module RSVAREXIT_0P_PRFP1 ?
    Regards,
    Michael

  • OSES how to restrict the Search Term

    How can SES forbid the words which will be used to search. For example, if I enter "secret" word in the searchTerm box,Then the SES will restrict the search result or will return nothing. How to implement this search restricted function? Can you tell me for this question. Thanks...

    You can't forbid the use of particular terms via the standard API. You would need to build an app using the Web Services API, and remove any sensitive terms before submitting the query to SES.
    If you were feeling daring, you could delete the entries from the underying Oracle Text index, which would prevent them being found, but that definitely wouldn't be supported.

  • How to enable wild search(*) on a query variable

    how to enable wild search(*) on a query variable?

    Prakash,
    When you build the variable, what did you use as the "Processing By"? Were there any other special options you had to use to get it to work....This is something our client base would love to use....
    Thank you in advance...
    Jim

  • Trying to pass a variable to fuzzy search

    I'm trying to write code like this:
       for x in 1 .. 6 loop
           v_searchword := listgetat(replace(p_searchphrase,',',' '),x,' ');
           for c1 in (select * from
                          (select score(1) as score, searchterms, suggestions from suggestions_table
                           where contains(searchterms,'fuzzy({'||v_searchword||'},,,weight)',1)>0
                           order by score desc)
                       where rownum < 10) loop                                    
            end loop;                  
       end loop;Someone passes in a long search phrase. I separate it into words and take up to the first 6. The set of words is looped through. Each word in turn is assigned to the v_searchword variable. I then do an Oracle Text fuzzy search on that word. The above code, however, gives me an Oracle Text parser error (DRG-50901: text query parser syntax error...).
    I've modified the code so that the all-important line reads *where contains(searchterms,'fuzzy({v_searchword},,,weight)',1)>0*, and whilst that doesn't produce a syntax error, it doesn't produce any results, either! Words that I know will generate suggestions when I do a manual fuzzy search in plain SQL (such as "womman" and "tomartoe") don't generate anything in this case, because (I think) instead of searching for 'womman' or 'tomartoe' it's actually just searching for the word 'v_searchword' each time.
    Could someone tell me how to write my code so that the correct word is passed into the contains function each time, please? It seems syntactically not very difficult, but I'm stumped!

    If any value for v_searchword is null it would result in an invalid syntax, searching for {}. This would happen if there was no such element, such as no sixth word in a string of five words. You might also want to remove duplciate spaces from the string. Please see the demonstration below that first reproduces, then corrects the error simply by adding a condition that v_searchword is not null.
    SCOTT@orcl_11g> create table suggestions_table
      2    (searchterms  varchar2 (30),
      3       suggestions  varchar2 (20))
      4  /
    Table created.
    SCOTT@orcl_11g> insert all
      2  into suggestions_table values ('woman', null)
      3  into suggestions_table values ('women', null)
      4  into suggestions_table values ('tomato', null)
      5  into suggestions_table values ('tomatoes', null)
      6  select * from dual
      7  /
    4 rows created.
    SCOTT@orcl_11g> create index your_index
      2  on suggestions_table (searchterms)
      3  indextype is ctxsys.context
      4  /
    Index created.
    SCOTT@orcl_11g> CREATE OR REPLACE FUNCTION listgetat
      2       (p_string    VARCHAR2,
      3        p_element   INTEGER,
      4        p_separator VARCHAR2 DEFAULT ' ')
      5       RETURN          VARCHAR2
      6  AS
      7    v_string      VARCHAR2 (32767);
      8  BEGIN
      9    -- ensure there are starting and ending separators:
    10    v_string := p_separator || p_string || p_separator;
    11    -- remove all double separators:
    12    WHILE INSTR (v_string, p_separator || p_separator) > 0 LOOP
    13        v_string := REPLACE (v_string, p_separator || p_separator, p_separator);
    14    END LOOP;
    15    -- check if element exists:
    16    IF LENGTH (v_string) - LENGTH (REPLACE (v_string, p_separator, '')) >
    17         LENGTH (p_separator) * p_element
    18    THEN
    19        v_string := SUBSTR (v_string,
    20                      INSTR (v_string, p_separator, 1, p_element)
    21                      + LENGTH (p_separator));
    22        RETURN SUBSTR (v_string, 1, INSTR (v_string, p_separator) - 1);
    23    ELSE
    24        RETURN NULL;
    25    END IF;
    26  END listgetat;
    27  /
    Function created.
    SCOTT@orcl_11g> -- reproduction of error:
    SCOTT@orcl_11g> create or replace procedure test_proc
      2    (p_searchphrase     in varchar2)
      3  as
      4    v_searchword    varchar2 (100);
      5  begin
      6       for x in 1 .. 6 loop
      7           v_searchword := listgetat(replace(p_searchphrase,',',' '),x,' ');
      8 
      9           for c1 in (select * from
    10                    (select score(1) as score, searchterms, suggestions from suggestions_table
    11                     where contains(searchterms,'fuzzy({'||v_searchword||'},,,weight)',1)>0
    12                     order by score desc)
    13                 where rownum < 10) loop
    14              dbms_output.put_line
    15             (lpad (c1.score, 3) || ' ' ||
    16              rpad (c1.searchterms, 30) || ' ' ||
    17              v_searchword);
    18            end loop;
    19       end loop;
    20  end test_proc;
    21  /
    Procedure created.
    SCOTT@orcl_11g> show errors
    No errors.
    SCOTT@orcl_11g> exec test_proc ('womman,and,tomartoe')
    38 woman                          womman
    25 women                          womman
    29 tomato                         tomartoe
    26 tomatoes                       tomartoe
    BEGIN test_proc ('womman,and,tomartoe'); END;
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 8
    ORA-06512: at "SCOTT.TEST_PROC", line 9
    ORA-06512: at line 1
    SCOTT@orcl_11g> -- correction of error:
    SCOTT@orcl_11g> create or replace procedure test_proc
      2    (p_searchphrase     in varchar2)
      3  as
      4    v_searchword    varchar2 (100);
      5  begin
      6       for x in 1 .. 6 loop
      7           v_searchword := listgetat(replace(p_searchphrase,',',' '),x,' ');
      8           -- check if xth word exists:
      9           if v_searchword is not null then
    10             for c1 in (select * from
    11                      (select score(1) as score, searchterms, suggestions from suggestions_table
    12                       where contains(searchterms,'fuzzy({'||v_searchword||'},,,weight)',1)>0
    13                       order by score desc)
    14                   where rownum < 10) loop
    15             dbms_output.put_line
    16               (lpad (c1.score, 3) || ' ' ||
    17                rpad (c1.searchterms, 30) || ' ' ||
    18                v_searchword);
    19              end loop;
    20           end if;
    21       end loop;
    22  end test_proc;
    23  /
    Procedure created.
    SCOTT@orcl_11g> show errors
    No errors.
    SCOTT@orcl_11g> exec test_proc ('womman,and,tomartoe')
    38 woman                          womman
    25 women                          womman
    29 tomato                         tomartoe
    26 tomatoes                       tomartoe
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g>

Maybe you are looking for

  • New Ipod Touch 5g, poor sound quality?

    Hi, I recently got given a silver ipod touch for christmas, after having had a 5G nano ipod for a few years. i had always had no problem with sound quality with that ipod. However, I have noticed that even with my Bose headphones and on my Bose dock,

  • Play 24p file (IshowU file) on a 23.976 project (FCP)

    Hi Everyone! I am having a bit of a hard time with the Software IShowU. I am trying to make a tutorial with FCP mixing footages of my Canon 7D (in 23.976fps) and footages from IshowU. It appears that IshowU is not able to provide actual 23.976p but O

  • ODI scheduling issue

    I was scheduled one agent, for the first time it took only 20 min to execute, but 2nd time onwards it is taking 7 to 8hrs, I'm unable to find the why it is running more time. what is the issue? can any one help on this?

  • Purchase Requisition Date before SC Creation Date

    Hi We have a odd situation with a shopping Cart where Purchase Requisition Date (REL_DATE = March 11 2009) before SC Creation Date (March 31 2009). Any comments/suggestions? Nikhil

  • Equalizer presets don't work in iTunes 11

    Equalizer presets don't seem to be working in iTunes 11. I try selecting a number of them and they don't do anything. Anyone else having that problem?