Search string for most wordmatches in database

Hello!
I'm working on a chatbot program and I need to make a search
engine in flash. I already have on searchengine that search a
string (with the users inputtext in it) and compares it to phrases
in a database ( a xml file in this case). But I also need another
type of searchengine, since I can't fill a file with all phrases a
user might type.
So the searchengine I need, needs to work like this:
When the user have typed in his/hers text, the search will
compare it to some databaserecords. And find the databaserecord
that matches most words from the user text. So if the user types
in:
"I have a terrible headache".
The search will start seeking and the database maybe looks
something like this:
1. I sick
2. I happy
3. I stomageache
4. I headache
5. You are sick
6. you're sick
7. you headache
Then it will return record number 4, because it found the
word "I" and "headache" there.
Anyone have some tip on how to achieve this?
Thanks in advance!

add your data base strings to an array (say dbRecordA) and
try:

Similar Messages

  • 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

  • EBS search string for check number

    Hello Gurus
    My client is using MT940 FORMAT for EBS,requirement is in a bank statement we are having 10 transactions which are having the same amount for ex:rs.1000 for ten payment transactions. now system is not able to post the document when we import the bank statement.
    I wanted to use search string for check number,  note to payee in bank statement is check number.Please find the below refference
    /EI/400229001       010013
    0000010013
    Reference 010013
    How could i use search string for this i tried but im not getting the solution im getting the following error difference is too large F5 263.
    Appreciated for our help............
    Thanks a lot in advance...............

    Hi Paulo,
    Thanks for the reply. However i have the following setting and it still does not work..
    Mapping -> AB01
    When i do the simulation it shows the Number and the hits and mapping.
    In the Seach String use i have following settings:
    CC 1000
    Interpretation : ALL Interpretation
    Search String : TEST1 ( this is the name that i gave to above search string)
    Target : Posting RUle
    Active checked.
    But still when i upload the bank statement it is posting to Rule AB03 and not AB01
    Also when i try FEBSTS it says no document hits ???
    Your answer is greatly appreciated.

  • Define Search String for EBS

    Has anyone ever used target field EBFK0A1 BDC Account Type successfully?  If so, can you please explain the basic settings?
    We want to influence changing the G/L account number for posting area 1, line item 1.  Any specific examples would be very helpful.  We wish to avoid the creation of a new posting rule for each G/L account.
    Regards,
    Sandy

    When creating search strings, I use both the mapping and the target field - the mapping is the value that is assigned to the target field.  Take my ACH RETURN example from my previous post.  The text ACH RETURN comes through in the note to payee and I use that to change the posting rule to posting rule Z120.
    I set up a search string with search string value "ACH RETURN" and the following mapping:
    A->Z
    C->1
    H->2
    space->0
    R->blank
    E->blank
    T->blank
    U->blank
    R->blank
    N->blank
    Then in the search string usage, I assigned the search string to target field "Posting Rule".
    When the BAI file is loaded, if SAP finds "ACH RETURN" in the note to payee, it maps that value to Z120 and then assigns Z120 to the Posting Rule.  Make sense?
    No, we do not have any cross-company transactions coming through in our BAI files.
    We do not have any cases where one transaction in the BAI file offsets transactions in multiple GL accounts.  We do have situations where one transaction in the BAI file offsets multiple transactions in one GL account.  For most of those cases, I'm using interpretation algorithm 121 (Reference document number search without test read) and using a search string to extract the reference number from the note to payee that matches to the reference number on the documents.
    We do, however, have a scenario where we use a user exit to select multiple transactions from a GL account to clear against one transaction from the bank statement.  The user exit is ZXF01U01 (Enhancement FEB00001, Function Module EXIT_RFEBBU10_001).  We have logic in the user exit to find the line items to clear and populate those line items in table T_FEBCL.  SAP then uses T_FEBCL to post the BAI transaction.  If your user can come up rules for clearing the transactions from the multiple GL accounts, you might be able to use this user exit to accomplish the clearing.
    If the user cannot come up with rules that you can program, then I would suggest a process change.  Either the postings need to be originally made as one posting to one account.  Or once the multiple items are posted, they need to be manually cleared into one account/one posting prior to the BAI file being loaded.  Or you leave the process of posting to multiple GL accounts as is and the user has to clear the postings manually via post-processing (FEBA/FEBAN).
    Hope this helps!
    Regards,
    Shannon
    Edited by: Shannon Moberg on Jun 16, 2010 9:55 AM

  • 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

  • EBS Search String for two words separate by other characters

    Hi
    Is there a way to write a search string which will recognize two words in a string?
    For example :
    PAYPAL TRANSFER WTT489798709898BOOK
    I need a search string which will recognize PAYPAL and BOOK
    I have tried : (|)PAYPAL + BOOK( |$)    or (|)PAYPAL / BOOK( |$)but in the test it is not successfull.
    Any help is appreciation

    Hi
    Does SAP treat multiple record 88 lines on the EBS as one continuous line for a single 16 record?
    I used the string  ^PAYPAL ?*DOTCOM PARTNERS LP$ based on your suggestion and uploaded a EBS statement.
    The system did not post anything, even though in string test if I enter the follwowing line it displays correct results
    :PAYPAL TRANSFER 110403 522222222454W DOTCOM PARTNERS LP/
    Our EBS statement has the following data:
    16,169,20000,,,00000000000,/                                                  
    88,OTHER REFERENCE:IA0000122222222/                                             
    88,PAYPAL TRANSFER 110403 522222222454W DOTCOM PARTNERS LP/  
    Any advise is appreciated.
    Edited by: Kirti Bhardwaj on Jul 5, 2011 9:20 PM

  • Search string for 3 digit check number?

    For electronic bank statement,uploading file contains 3-digit check number eg;416
    but in FCHI-Check lots we defined six-digit check numbers.
    so system is not able match the check nos. as they are different, and auto reco is not happening.
    we have gone through search strings documentation but
    we dont know what to enter in search strings configuration.
    Kindly help me what to enter for 3 digit check no?
    Edited by: KUMAR on Dec 2, 2008 1:35 PM

    You'll first need to create search strings to "find" the check numbers in the note to payee information.  Then when you set up the search string use, you'll assign a mapping prefix of "000000" to format the check numbers with the leading zeros so they are 6-digits long.
    To set up the search string, you'll need to look at the note to payee information at the text either before or after the check numbers.  Let's say, for example, that the word "CHECK" always preceeds the check numbers in the note to payee:
    CHECK 456
    or
    CHECK 1234
    Because you have some check numbers coming through the bank statement as 3 digits and some as 4 digits, I'm thinking you'll need to set up two search strings, one with search string value "CHECK ###" and the following mapping:
    C ->
    H ->
    E ->
    C ->
    K ->
       ->
    -> #
    -> #
    -> #
    And the second with search string "CHECK ####" and the following mapping:
    C ->
    H ->
    E ->
    C ->
    K ->
       ->
    -> #
    -> #
    -> #
    -> #
    In the search string use, you assign each search string to the relevant company code, house bank and account ID. You can also leave these fields blank, in which case the search strings will be relevant for all company codes, house banks and accounts IDs.  You'll also need to populate the interpretation algorithm with the same algorithm that you assigned in the Global EBS config for the external transaction for checks.  The target field should be Check-/DME Reference-/Assignment number.  Fill in the mapping prefix with 000000 - and be sure to check the Active indicator.  If you are on ECC 6.0, you will also have fields for external transaction and +- (these fields may also be available in ECC 5.0 - but I know they are not available in 4.7 or prior).  If you see these fields, you can fill them in to further limit when the search string is used - for example, only for Negative transactions or only for Negative transactions with a particular external transaction value.
    Let me know if you have any other questions.
    Regards,
    Shannon
    Edited by: Shannon Moberg on Dec 3, 2008 6:05 PM

  • 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

  • Search string for backslash

    I am trying to match a pattern in a path. The path is for example, "\ \Amss02\modemdata\New\WO 4276\11243_Mar_01_2007_13 16.txt" and I want to search for the number 11243 in the path. Right now I am converting it to a string and matching a pattern of 11243 and that works. But if I want to search for 112 or 124 then it returns this path as valid, which it is not. I tried to match the pattern \112_ (adding the backslash and underscore) but the backslash is monkeying with the search I think.
    Any ideas?
    Tay
    Solved!
    Go to Solution.

    Use a "\\" to match a single backslash. For example use pattern "\\112_" to search for "\112_"
    Check the online help for details.
    Typically, it might be easier to not convert to a string and use "strip path" to get the filename and then operate on it.
    Message Edited by altenbach on 09-24-2008 12:56 PM
    LabVIEW Champion . Do more with less code and in less time .

  • 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

  • Using Search Strings

    Dears
    We have a scenario where bank is using NTRF both for check and Bank Transfer. Only way to distinguish that it is check is that immediately after External Transaction the check number is of 6 character otherwise it is Bank Transfer. In the EBS configuration with each External Transaction we can assign only one Posting Rule and algorithm. 
    We come to know that through search strings we can change the posting rule and algoritham. We went to many answer on net to work on search strings but so far nothing successful. Can someone guide us how to use it.
    Thanks

    Hi Expert,
    Please refer to the below link which will help in configuring Search Strings for your scenario.
    http://help.sap.com/saphelp_46c/helpdata/es/af/0a242bc925d311b60f0060b03c2bff/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/6d/0cdf4b142e11d3963800a0c9426c73/content.htm
    Regards,
    GK
    SAP

  • Sear string for customer bank account no

    Hai ,
    The requirement is that customer account number should be identified from customer bank key and bank account number which are available in the bank statement .I need to configure search string and assign it to interpretation algorithm.How i need to define and assign search string for bank key,bank account number .Example :AC-250-208762-20
    The problem is that the length of bank key and bank account number for each customer is different
    Example 1:Customer 100000
    AC-25-45275865-333
    Example 2 :customer 100001
    AC-215-115275865-11
    I need to post entries to customer account and no clearing is required . How search string can be defined for this ?
    Note:Search string should be defined for customer bank account no because statement has no reference number
    Regards,
    Kumar

    Hi.
    'customer master data, what are the integrated effects to FI > Bank Accounting > House Bank ?' House bank not linked with Customer master data(only if customer affiliated company).
    Bank details in customer could be used eg for invoicing(printing form)

  • Define search string EBS

    Hi,
    I have defined a search string for EBS with Target field BDC
    1) "Blank - BDC Name 1 - BSEG-ZUONR" and
    2) "Map - BDC Value 1 - ".
    The mapping is working perfectly.
    The posting rule entry is
    40 Bank a/c
    50 Bank clg a/c.
    The ZUONR field on the debit entry is populated but I also want the ZUONR field on the credit entry to be populated. Does this require any additional setting?
    Regards,
    Hemant

    Hi
    I saw that you succeed to use a search string in the EBS integration, and put some information in BSEG-ZUONR ?
    Would you please let me know the details of the settings ?  I understand the rough indications you put in your question, but did not succeed myself to reproduce the correct settings :
    I've created 2 mapping rules,
    one for mapping constant 'BSEG-ZUONR' which is used for target field BDC Field Name 1
    one for mapping the value to be used with target field BDC Field Value 1
    Example : note to payee contains 'Payment number 123456'
    My first string map the NTP to 'BSEG-ZUONR'
    My second string is to retrieve 123456 from the NTP
    In the 'search string' usage, i have assigned the first one to target field 'BDC Field name1', and the second one to 'BDC Field value 1', and my expectation was to receive '123456' in the FI document generated (field BSEG-ZUONR) but it did not happen.
    I don't use any interpretation algorithm, and the posting rule is quite simple : 40 Bank 50 Bank IN rec account.
    Please let me know what i missed

  • Electronic Bank statement - Search STring definition

    hi,
    I have set up electronic bank statement.
    And because from the bank statement, the bank charges are shown in the "note to payee field".  I have used the search string definition to help me.
    I have set up in search string definition to identify the bank charges.  After which, i defined the search string use .
    I have set up such that :
    Int algthm is  "standard Algorithm"
    String name - Search string for my bank charges.
    Target Fld  "EBSPESK Fees in account currency
    I do not know how the Bank charges can be posted using the above rule.
    I tried testing with my bank statement, only my line amount get posted. My bank charges apearing in the note to payee is not posted anywhere.
    Could you please throw some light into the issue.
    any help is greatly appreciated.
    thanks
    poh leng

    I was using the posting type =  4.
    Since my transaction hits the debits clearing account and credit the bank amount.
    However to allow posting to bank charges, what posting type should i use ? posting type "8" ?

  • Electronic bank statement global setting and search string usage

    In electronic bank statement configuration, there are two major places to setup the data
    1) Make Global Settings for Electronic Bank Statement
    2) Define Search String for Electronic Bank Statement
    When bank statements are imported and possessed via FF_5, which of the above configuration will take priority.  I'm now using BAI2 bank statement

    The Global Settings are required for loading bank statements.  The Search String configuration is optional.  Search strings are used in to override and/or augment the Global settings.
    For example, you might have a BAI code that is used by the bank for 2 (or more) different types of postings.  You can only assign one posting rule in the Global Settings.  However, you can use a search string to assign a different posting rule to transactions based on the note to payee information.  So this is a case where the search string overrides the Global settings.
    Or you might have transactions that need to be cleared based on reference information from the bank statement.  You would assign the posting rule and appropriate interpretation algorithm via the Global Settings, however you might need a search string to get the reference information from the note to payee.
    Hope this information helps.
    Regards,
    Shannon

Maybe you are looking for

  • Can I use Targ. disk mode to add Tiger to a Mac mini G4 from an Intel iMac?

    Hey all, Last year I bought a 2.16 GHZ imac (intel duo core), I recently bought a used Mac mini on ebay for a gift for my mother (does not come with any software). She is dying to get an apple so I thought I would get her one. The mini is a 1.25 GHZ

  • IMovie 5.0.2 - iDVD 4.0.1: Audio problems

    After finishing a project in iMovie 5.0.2 I sent it to iDVD 4.0.1. In preview pane video comes out as expected, but audio is completely deformed. Could this be a compatibility problem between different versions of these two programs?

  • How to manipulate PO communication language

    Dear colleagues I would like to ask if anyone already did try to manipulate the PO communnication language (EKKO_SPRAS) as per certain customer requirements. My requirements are that PO communnication language would not be pulled from vendor master d

  • HT201269 every time I synch my iphone, I get multiple contacts of same persons.  How do I stop that?

    When I synch my iphone, it adds contacts every time and now I have multiple people.  What do I turn off on itunes to stop doing this.  For example, "Dad" is listed 5 times, for the 5 times I've plugged in my phone!! Help!

  • About html parameter form

    Hi Guys, if i put the code as below in the before form value <html> <body bgcolor="#29716F"> <form method=post action="http://localhost/reports/rwservlet?"> <input name="hidden_run_parameters" type=hidden value="report=account_statement.rdf&userid=sc