Parse multilingual search string

I'm using Oracle Text to search a multilingual database. The languages include English & Spanish (= white-space delimited) and Chinese (= NON-white-space delimited).
Suppose a user enters the following search string (quotes are mine): "word1 word2 word3"
Then I want to search something like this (thanks to Barbara Boehmer!):
"SELECT id, title, short_description FROM books
WHERE CONTAINS (dummy, 'word1 AND word2 AND word3') > 0;"
If the string is in English, Spanish, German..., no problem.
But does anyone know how I could parse the search string so that Chinese, Japanese, etc. will be handled properly too? In that case, the words consist of one or more characters (instead of letters) and they are NOT separated by spaces.
I've been searching the web and can't figure this out.

I misunderstood the problem. If you want to parse the search string and put spaces between the tokens, then perhaps you could use ctx_doc.policy_tokens on the search string, something like below.
BEGIN
  CTX_DDL.CREATE_PREFERENCE
    ('searchstring_lexer',
     'WORLD_LEXER');
  CTX_DDL.CREATE_POLICY
    (policy_name => 'searchstring_policy',
     lexer       => 'searchstring_lexer');
END;
CREATE OR REPLACE FUNCTION parse_searchstring
  (p_searchstring IN VARCHAR2)
  RETURN VARCHAR2
AS
  rtab            CTX_DOC.TOKEN_TAB;
  v_searchstring  VARCHAR2 (200);
BEGIN
  CTX_DOC.POLICY_TOKENS
    ('searchstring_policy',
     p_searchstring,
     rtab);
  FOR i IN 1 .. rtab.COUNT LOOP
    v_searchstring := v_searchstring || rtab(i).token || ' ';
  END LOOP;
  RETURN RTRIM (v_searchstring);
END parse_searchstring;
SELECT parse_searchstring ('英语 翻译') FROM DUAL
/

Similar Messages

  • Stopwords within a search string

    Hi,
    I've found a funny behaviour for the combination of
    non-searchable characters and non-searchable words (stopwords):
    1.) I definea hyphen '-' as a non-searchable character
    (printjoins explicitly defined without '-')
    2.) I index one document containing 'oracle'.
    3.) I search for '{oracle}' and get one hit.
    4.) I search for '{to-oracle}' and get no hits.
    Hint: 'to' is a stopword.
    So far so good.
    But if a switch to a very large database containing 100,000 documents
    the behaviour changes:
    1.) I again define '-' as a non-searchable character
    (printjoins explicitly defined without '-')
    2.) I index 100,000 documents containing 'oracle'.
    3.) I search for '{oracle}' and get 100,000 hits.
    4.) I search for '{to-oracle}' and get 100,000 hits (instead of none).
    Hint: 'to' is again a stopword.
    I got the impression that due to the number of documents (or whatever)
    suddenly an optimizer decides to parse the search string. Since '-' is
    a non-searchable character '{to-oracle}' is read '{to oracle}'; since
    'to' is a stopword '{to oracle}' is read {oracle}. If the index is too
    small the optimizer doesn't care because the search will be fast anyway
    and the search string needs not to be analyzed before the search is executed.
    This is just a theory; has anybody similar experiences?
    I use 8.1.7.2.0 and the same preferences (including stoplists and lexer)
    for both the small and the large database.
    Regards, OT

    Hello Moti,
    <b>If you want to search for a phrase you have to put double quotes around.</b>
    If you want to use a boolean operator, the OR is the default operator, so
    backup restore <=> backup OR restore.
    So if you want an and operator, you have to use backup && restore, or backup AND restore.
    About the '&' char, I dont think there is any problem because '&' is not a part of the query syntax.
    According to sap search help :
    "There are a number of special characters that are part of the query syntax. The current list special characters are
    + - && || ! ( ) { } [ ] ^ " ~ * ? : \
    To escape these character use the \ before the character. For example to search for (1+1):2 use the query:
    \(1\+1\)\:2"
    Hope this helps!
    Regards,
    Julien.

  • WCS#2009.10.20.11.20.34: No matching users were found with search string ..

    Hi,
    I setup my webcenter spaces using OID. I used the console application to setup OIDAuthenticator. I can see OID users and groups in the console application. I can also login to webcenter spaces using any of the OID user. But when I try to create a page in webcenter spaces I get error
    WCS#2009.10.20.11.20.34: No matching users were found with search string ..
    Also, when I try to change permission grants for a given page in webcenter spaces using 'Set Page Access' I cannot search for any of the OID users.
    I have modified my jps-config.xml to add
         <property name="username.attr" value="uid"/>
    <property name="user.login.attr" value="uid"/>
    inside the 'idstore.ldap' serverInstance as mentioned in the document. But stilll it does not work.
    Can anybody help me..
    I see the following error in my WLS_Spaces-diagnostic.log
    [2009-10-20T11:20:34.203-05:00] [WLS_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: executive] [ecid: 0000IHmjzSbFg4WFLzyGOA1ArTye00000E,0] [APP: webcenter] WCS#2009.10.20.11.20.34: No matching users were found with search string executive
    [2009-10-20T11:20:34.203-05:00] [WLS_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: executive] [ecid: 0000IHmjzSbFg4WFLzyGOA1ArTye00000E,0] [APP: webcenter] [[
    oracle.webcenter.webcenterapp.security.WCSecurityException: No matching users were found with search string executive
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getPrincipal(WebCenterSecurityUtils.java:494)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getUserPrincipal(WebCenterSecurityUtils.java:377)
         at oracle.webcenter.webcenterapp.internal.view.shell.WebCenterPagesManagerImpl._grantCustomPermission(WebCenterPagesManagerImpl.java:650)
         at oracle.webcenter.webcenterapp.internal.view.shell.WebCenterPagesManagerImpl.createPersonalPage(WebCenterPagesManagerImpl.java:582)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean._createPage(BoilerplateBean.java:818)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean.clickCreatePageFromWizard(BoilerplateBean.java:947)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean.clickCreatePageFromWizard(BoilerplateBean.java:929)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1282)
         at oracle.adf.view.rich.component.UIXDialog.broadcast(UIXDialog.java:81)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:145)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:145)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:787)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:280)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:210)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:603)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:256)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:228)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.security.idm.ObjectNotFoundException: No User found matching the criteria
         at oracle.security.idm.providers.stdldap.util.DirectSearchResponse.initSearch(DirectSearchResponse.java:171)
         at oracle.security.idm.providers.stdldap.util.NonPagedSearchResponse.<init>(NonPagedSearchResponse.java:52)
         at oracle.security.idm.providers.stdldap.util.NonPagedSearchResponse.<init>(NonPagedSearchResponse.java:43)
         at oracle.security.idm.providers.stdldap.util.LDAPRealm.searchUsers(LDAPRealm.java:480)
         at oracle.security.idm.providers.stdldap.LDIdentityStore.search(LDIdentityStore.java:265)
         at oracle.security.idm.providers.stdldap.LDIdentityStore.searchUsers(LDIdentityStore.java:358)
         at oracle.webcenter.framework.service.Utility.getUserFromUserName(Utility.java:571)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.searchUser(WebCenterSecurityUtils.java:315)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getPrincipal(WebCenterSecurityUtils.java:486)

    I have run dead smack into this issue using AD also. Is there a solution? I have tried all of the options for the following settings which seem to control the look up process:
    <property name="username.attr" value="cn"/>
    <property name="user.login.attr" value="sAMAcountName"/>.
    For me, this issue rears its ugly head when attempting to add a role to an AD user. I can enter the login name in the find user box, click the find button, and the user is found. I select the user, pick the role, click "Add Member(s)", and then bam "No matching users were found with search string <login user>" message.
    Based on my analysis of the problem, my guess would be that the look up process, which works, differs from the role assignment process in source of data and/or the key-field used to find a match.
    Any help would be greatly appreciated.
    Thanks In Advance.

  • How to make search string for the searched text containing single quote?

    Hi all,
    When trying to search some Contacts from Eloqua, I have to make a search string which would list out some specified EmailAddress.
    Unfortunately, I meet several emails who have single quote in their spelling.
    I got 'invalid format' error when both using them directly and making single quote twice.
    Any suggestions?
    Thanks,
    Biao

    When testing, the following examples:
    GET /Api/rest/1.0/data/contacts?search=emailAddress=bm'[email protected]
    GET /Api/rest/1.0/data/contacts?search='emailAddress=bm'[email protected]'
    GET /Api/rest/1.0/data/contacts?search=emailAddress="bm'[email protected]"
    GET /Api/rest/1.0/data/contacts?search="emailAddress=bm'[email protected]"
    All return:
      "elements":
        "type":"Contact",
        "id":"1421620",
        "createdAt":"1419611518",
        "depth":"minimal",
        "name":"bm'[email protected]",
        "updatedAt":"1419611519",
        "emailAddress":"bm'[email protected]"
      "page":1,
      "pageSize":1000,
      "total":1
    Likewise, the following returns nothing:
    GET /Api/rest/1.0/data/contacts?search=emailAddress='bm'[email protected]'
    Hopefully this helps,
    Bojan

  • Bank statement search string for posting rule 2

    Hello,
    I created a search string (also activated) for clearing sub legder account. Folowing are the combinations i tried:
    1) ###(.| )#######
    2) (^| )###(.| )#######( |$)
    3) ###.#######
    Open document reference text on header normally carries  3digits followed by a dot and then seven digits. For example:
    123.1234567.  I also want to include 123 1234567 (sometimes it appears like this in bank statement) but the system should intrepret it as 123.1234567.
    I think above string acheived this when i did a TEST (button) next mapping screen on the same screen.
    I uploaded the bank statement and then went to another config where you do simulation for a bank statement (uploaded). There the system checks for first three digits only and the document found coloumn is blank (because it checks only first three digits and there are too many probable customers in partner's field).
    Posting rule - algorithm is  no 21
    search string - algorithm is no 21
    mapping field in search string - i tried with bland and without blank (###.#######) it is all same.
    How to make the system check 3+7 digits with dot? and why it checking only first three digits. Can some help?
    BG

    Hi,
    I also would be interested to know this. If anybody can give a step by step analysis, it would be highly appreciated.
    Regards,
    Ravi

  • Highlight search string in a pl/sql report

    Hi all,
    I followed the example of QBE by Scott Spendolini. I got it working. But I am trying to add the highlight search string functionality, in the report created. The report is created from a dynamic pl/sql query. Can you give me any ideas or an example? Thank you for your time in advance,
    Rgds,
    Suma.

    Hi Suma,
    Your Search button runs a process called "RUN_REPORT". Presumably, this process picks up the values from the tabular form to construct the new SQL statement.
    Given that you don't have a normal report definition - ie one that you can use the Highlight Words option - the only other possibility is to adjust the SQL query results.
    Let's assume that you have in your RUN_REPORT process a variable called vJOB that holds the JOB value from your QBE grid. Your SQL statement could then be adjusted to something like:
    SELECT EMPNO,
    ENAME,
    '&lt;span style="color:red"&gt;' || JOB || '&lt;/span&gt;',
    etc
    FROM EMPTABLE
    WHERE JOB = vJOB;
    Obviously, without seeing your code, I can not say exactly how it should be constructed to highlight the word(s), but the above should give you an idea of what you need to do. If you're still not sure, can you please paste into this thread the RUN_REPORT code.
    Regards
    Andy

  • Two finger swipe replaces google search string

    MBP with Safari 6.0 experiencing this problem.  Another user was experiencing the issue here:
    http://www.ehmac.ca/mac-iphone-ipad-ipod-help-troubleshooting/99937-safari-two-f inger-swipe-bug-replaces-google-search-string-os-10-7-3-a.html
    I don't know where the bug reports are to follow up on it and I haven't seen any patches for it.  Any advice?  Specifically, I'd like to know how to file the bug (in case I find another) and to follow up on any existing issues.
    TIA,
    Scott

    Is there no place to track the status of the report or see any other outstanding issues so I don't bother filing duplicates?
    Never heard of such a function here. This method gets feedback to the people who count but it is completely behind the scenes. Part of Apple's "cards close to the chest" method of doing pretty much everything. You should have been looking at the "don't expect a response" screen after you hit the submit button on your bug report.
    If there is something that needs clarification, I suspect they will use e-mail to ask for it, but don't stay home waiting!
    Have you read Walter Isaacson's  biography of Steve Jobs? Things like this took on a new--if not satisfying--perspective for me after reading it. So far, it has persisted in their corporate culture in the after-Steve era..

  • Use of special characters in Search String

    What is the use of special charaters like
    in the search string in the Find & Replace of ABAP editor ?
    I want to search for all strings starting with V which are followed by alphabets like
    VA
    VB...
    If I use V*, it also gives me results like
    V/R...
    Whether it is possible to specify such a condition?

    Hi,
    While giving ur search in FIND & REPLACE,
    use the match case or match whole word only..
    Then u will get search results only where the exact case of that variable is used..
    As per my knowledge there is no signification of special characters ,- : ; in the search string..
    Hope this helps...
    Cheers,
    Simha.

  • Search Strings

    HI
    We are using Payment Order and through EBS we clear the vendor open items as after payment run system generate the payment order number but vendor open items remain open. For Bank Transfer BTC is NTRF. But for all the check which are also enchashed at counter bank is also using BTC NTRF. So we have two posting rules for the same BTC. For payment order clearing we are using Algoirtham 029. which is assigned in EBS global setting. To solve above we define the search strings but system is not changing the posting rule as check number coming immediately after NTRF1013.
    Our Check Number is exactly 4 characters. So we define search string like below
    Maping empy
    In search strings use we entered CC, HB, AC then algoritham999 as 029 is not exits then search string target field Posting rule and enter posting rule for check then create another entry in which target field is Algoritham and select algoritham 011 for check.
    Now our file for check is coming like 61:1201230123D10000,00NTRF1013       but system not read this record.
    Just for testing we make another line and like 61:1201230123D10000,00NTRF1013       //1013 and system able to change the Posting rule. No idea why its is behaving like this way
    Please help
    Farhan Qaiser

    Dear Farhan,
    Please create the search string in below way.
    (^ |#| *)NTRF####( *|$) with remaining parameters you have entered, please make sure that you are entering global interpretation algo in search string also.
    Or please check any other text is there to identify check transaction and create a search string for that.
    Regards
    Shanu

  • Electronic Bank Statement Search Strings Customer Item Clearing

    I have configured EBS and I am trying to clear open items from customer accounts using Search Strings.
    I have mapped the customer account on the bank statement to the SAP customer account. For example, Victor Osagie is mapped to account 1400036.
    When I process transactions with exactly the same note to payee as above, open items in the customer account clear. However, when the note to payee field changes for example to Victor Osagie 110000000. The customer is recognised but the item is not cleared from the customer account.
    The statement format is BAI and we are using the BAI processor.
    How can I manipulate the search strings to allow the clearing of items like this?
    Victor

    Problem solved. Applied note 1085596
    Anil

  • How to get where the search string appears in the results

    Hi every one
    i am new to Oracle Text
    this is my project environment "EJP 3.0+seam+JSF"
    in my part i need to implement smart searches within large text objects.
    So i planed to use Oracle text with context type indexing.
    I my search part i need to display where the search string appears in the results
    i don't know how to archive it,
    is it achived by CTX_DOC.GIST ?
    this is my table format
    Tbl_Book
    book_id Book_Title Book_description
    Tbl_Author
    author_id book_id author_name
    in my first table i index the Book_Title and Book_description columns
    EXEC CTX_DDL.DROP_PREFERENCE ('expert_concat_datastore')
    drop index Tbl_Book_Index force;
    BEGIN
    CTX_DDL.CREATE_PREFERENCE
         ('expert_concat_datastore', 'MULTI_COLUMN_DATASTORE');
    CTX_DDL.SET_ATTRIBUTE
         ('expert_concat_datastore', 'COLUMNS', 'Book_Title,Book_description');
    END;
    alter table Tbl_Book add (dummy varchar2(1))
    begin
    Ctx_Ddl.Drop_Section_Group
    group_name => 'my_section_group'
    exception
    when others then
    /* OK if DRG-12203: section group MY_SECTION_GROUP does not exist */
    if instr ( SQLERRM, 'DRG-12203' ) != 0 then null;
    else raise_application_error ( -20000, SQLERRM ); end if;
    end;
    begin
    Ctx_Ddl.Create_Section_Group
    group_name => 'my_section_group',
    group_type => 'basic_section_group'
    Ctx_Ddl.Add_Field_Section
    group_name => 'my_section_group',
    section_name => 'title',
    tag => 'Book_Title'
    Ctx_Ddl.Add_Field_Section
    group_name => 'my_section_group',
    section_name => 'description',
    tag => 'Book_description'
    end;
    create index Tbl_Book_Index on Tbl_Book ( dummy )
    indextype is ctxsys.context parameters (' datastore expert_concat_datastore section group my_section_group');
    begin
    Ctx_Ddl.Drop_Section_Group
    group_name => 'my_section_group'
    end;
    in my second table i index the author_name column
    drop index Tbl_Author_Index force;
    create index Tbl_Author_Index on Tbl_Author (author_name) indextype is ctxsys.context parameters('filter ctxsys.null_filter section group ctxsys.html_section_group');
    begin
    Ctx_Ddl.Optimize_Index (
    idx_name => 'Tbl_Author_Index',
    optlevel => Ctx_Ddl.optlevel_fast
    end;
    my search result is only in my Tbl_Book.
    Because it is my primary one.
    So this is my query in EJP 3.0
    select t from Tbl_Book t LEFT JOIN t.AuthorCollection c wherecontains(t.dummy, 'java within title or(java within description)',10) > 0 or contains(c.author_name ,'thiagu',20) > 0 ) ORDER BY SCORE(10), SCORE(20)
    here i need to get single SCORE how to do that ?
    i dont know how to highlight the search string in the result ?
    is it archived by CTX_DOC.MARKUP ?
    please any one help me
    By
    Thiagu.m

    Weird.  I have multuple monitors and the boot stuff always appears on my main monitor.
    See if smc and pram reset clears the problem.
    I have multiple screens on my Mac Pro. A normal screen, a projector and a USB-to-DVI converter.
    What video card are you using?  And USB-to-DVI is not the usual way for connecting monitors.  I wonder if that is confusing things.  So out of curiousity what happens if that monitor is not connected?

  • Define Search String for EBS in SAP 4.6c

    Hi All,
    I have some question for search string for EBS in SAP 4.6c. I have already done this thing in ECC 6 and work well with "target field" as account number. but in 4.6c target field account number doesn't exist. Please suggest me, if there is a same way like account number target field in 4.6c?
    Thanks in advance
    Glenn

    Hi Shanumonu,
    Thx for the answer, you save my life!
    But I have another issued. I already implement SE11 instruction, but item with wrong note to payee number from MT940 keep cleared. Do you have suggestion for me?
    Thanks,
    Glenn

  • Parsing an xml string into id-value pair format

    Hi,
    I am new in oracle BPEL.
    My requirement is that I need to parse an xml string containing tag name and coressponding value into an 'id -value' pair.
    For example-
    The input xml format is -
    <employee>
    <empid>12345</empid>
    <name>xyz</name>
    <city>London</city>
    </employee>
    The required xml format is-
    <employee>
    <item id="empid" value="12345"/>
    <item id="name" value="xyz"/>
    <item id="city" value="London"/>
    </employee>
    Please let me know if there is a work-around for this.
    Thanks

    Something like this (have not tested):
    <xsl:for-each select="//employee">
    <employee>
    <xsl:for-each select="./*">
    <item>
    <xsl:attribute name="id">
    <xsl:value-of select="name()"/>
    </xsl:attribute>
    <xsl:attribute name="value">
    <xsl:value-of select="text()"/>
    </xsl:attribute>
    </item>
    </xsl:for-each>
    </employee>
    </xsl:for-each>

  • Parsing an XML string

    How would I get the Oracle XML Parser to parse an XML string?
    The example ("DOMSample") only demonstrates how to parse an XML
    file -- I would like to do something of the form...
    parser.parse("<test>testing</test>");
    On a related note, whilst the PL/SQL utilities are helpful, I
    would like to see more in the way of documentation and examples
    for the Parser itself, showing more examples of DOM API calls and
    perhaps a complete worked example (including a DTD).
    Keep up the good work!
    Many thanks,
    Ian Brettell,
    Indus International.
    null

    Ian Brettell (guest) wrote:
    : How would I get the Oracle XML Parser to parse an XML string?
    : The example ("DOMSample") only demonstrates how to parse an XML
    : file -- I would like to do something of the form...
    : parser.parse("<test>testing</test>");
    With the latest version, 1.0.0.1, now available, you can use the
    InputStream and InputSource methods. Please see the doc for
    details.
    : On a related note, whilst the PL/SQL utilities are helpful, I
    : would like to see more in the way of documentation and examples
    : for the Parser itself, showing more examples of DOM API calls
    and
    : perhaps a complete worked example (including a DTD).
    : Keep up the good work!
    : Many thanks,
    : Ian Brettell,
    : Indus International.
    Thanks for the input. I will pass it onto the documentation team.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Xerces - Parse XML from String

    I am trying to parse an xml string using Xerces.
    I have the following code:
    String xml = <segments meters="8643" seconds="538" distance="5.4 mi" time="8 mins"><segment id="seg0"  pointIndex="0" meters="122" seconds="11"  distance="0.1 mi"  time="11 secs">Head  <b>southwest</b> from <b>B Ave NE</b>
    </segment>
    <segment id="seg1" pointIndex="2" meters="239" seconds="22" distance="0.1 mi" time="21 secs">Turn <b>left</b> at <b>19th St NE</b></segment>
    <segment id="seg2" pointIndex="5" meters="2985" seconds="192" distance="1.9 mi" time="3 mins">Turn <b>right</b> at <b>1st Ave NE</b></segment>
    <segment id="seg3" pointIndex="43" meters="3280" seconds="211" distance="2.0 mi" time="3 mins">Continue on <b>1st Ave SW/1st Ave NW</b></segment>
    <segment id="seg4" pointIndex="96" meters="158" seconds="10" distance="0.1 mi" time="10 secs">Bear <b>right</b> at <b>US-151-BR S</b></segment>
    <segment id="seg5" pointIndex="102" meters="1859" seconds="93" distance="1.2 mi" time="1 min">Turn <b>right</b> at <b>16th Ave SW</b></segment>;
    XMLReader reader = new SAXParser();
    reader.setContentHandler(new Handler());
    reader.parse(xml);I am getting the followoing error:
    org.xml.sax.SAXParseException: File "<segments meters="8643" seconds="538" distance="5.4 mi" time="8 mins"><segment id="seg0" pointIndex="0" meters="122" seconds="11" distance="0.1 mi" time="11 secs">Head  <b>southwest</b> from <b>B Ave NE</b></segment><segment id="seg1" pointIndex="2" meters="239" seconds="22" distance="0.1 mi" time="21 secs">Turn <b>left</b> at <b>19th St NE</b></segment><segment id="seg2" pointIndex="5" meters="2985" seconds="192" distance="1.9 mi" time="3 mins">Turn <b>right</b> at <b>1st Ave NE</b></segment><segment id="seg3" pointIndex="43" meters="3280" seconds="211" distance="2.0 mi" time="3 mins">Continue on <b>1st Ave SW/1st Ave NW</b></segment><segment id="seg4" pointIndex="96" meters="158" seconds="10" distance="0.1 mi" time="10 secs">Bear <b>right</b> at <b>US-151-BR S</b></segment><segment id="seg5" pointIndex="102" meters="1859" seconds="93" distance="1.2 mi" time="1 min">Turn <b>right</b> at <b>16th Ave SW</b></segment></segments>" not found.
         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
         at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:501)
         at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1139)
         at com.shiftyeyes.xmlTest.main(xmlTest.java:34)
    Exception in thread "main" anyone know how I can fix this? Thanks!!

    reader.parse(new InputSource(new StringReader(xml)));

Maybe you are looking for