webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Searching dot (".")

    Posted Mon June 18, 2001 05:15 PM

    Hi:

    I have the next problem:

    I store “L. GARCIA FERNANDEZ” in a node with seach-type=“text” but if i make a query with ~=“L.” or “L” it does not returns any element.
    If query by ~=“GARCIA” it return the document.
    The charset is iso-8859-1.

    How can i make the query?

    Thanks : Juan Carlos.


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: Searching dot (".")

    Posted Mon June 18, 2001 06:19 PM


  • 3.  RE: Searching dot (".")

    Posted Mon June 18, 2001 07:02 PM

    With “text” search-type, Tamino builds up a text index of words, so it uses . and , for example as word-delimiters so in your case it builds up an text index of three words:
    L
    GARCIA
    FERNANDEZ
    refering to the one document, so queries
    test[name~=“L”]
    test[name~=“GARCIA”]
    test[name~=“garcia”]
    …etc
    all return the same document. So one cannot search for “.” since this is not a word.


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: Searching dot (".")

    Posted Wed June 20, 2001 10:04 AM

    Thanks for your help:

    I can find “L. GARCIA FERNANDEZ” searching
    test[name~=“L”]
    test[name~=“L.”]
    test[name~=“L” and name~=“GARCIA”]
    test[name~=“L.” and name~=“GARCIA”]

    but I can’t find it with:
    test[name~=“L GARCIA”]
    test[name~=“L. GARCIA”]
    test[name~=“L GARCIA FERNANDEZ”]
    test[name~=“L. GARCIA FERNANDEZ”]

    It’s curious, but if i store “L. GARCIA” i cand find it with the query:
    test[name~=“L. GARCIA”]
    test[name~=“L GARCIA”]

    What can i do for quering by two or more consecutive words?

    Thanks again: Juan Carlos.


    #webMethods
    #Tamino
    #API-Management


  • 5.  RE: Searching dot (".")

    Posted Wed June 20, 2001 07:27 PM

    Since you have defined SEARCH-TYPE=TEXT, each
    word will be indexed. To query consecutive words, you should use “name~=[“L. GAR”]”.

    More examples:
    name~=[“*FERNANDEZ”]
    name~=["L.]


    #webMethods
    #API-Management
    #Tamino