Searching with wildcards

Hi,
I'm using some kind of search-function based on a textfield and following sql statement in the where-part of the SQL report:
and instr(upper("ADRESSE"),upper(nvl(:P300_SUCHTEXT,"ADRESSE"))) > 0
This is working fine so far, if I am searching only simple things. My problem now is that I would like to implement a search-funtion using wildcards, e.g. Me%er will find Meier and Meyer.
Does anybody has an idea or a hint?
Thanks
Michael

Hi Vikas
Thanks for your answer. I have checked this out, but unfortunately this does not solve the problem. The wildcards should stand in the Textfield like Me%er, alike the statement
SELECT adresse from sbb where adresse like 'Me%er',
with the difference, that this statement works and if I enter % in the textfield, it doesn't work.
What to do?

Similar Messages

  • DirectoryContext.search with WildCard "*" Fails in 64 Bit JRE

    Hi all,
    I'm using DirectoryContext.search with wildcard "*" filter. it works fine in 32 Bit JRE, but throws the following exception when I run the same in Solaris 64 Bit JRE.
    Exception in thread "main" javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name 'ou=People,dc=mydomain,dc=com'
    at com.sun.jndi.ldap.Filter.encodeSimpleFilter(Unknown Source)
    at com.sun.jndi.ldap.Filter.encodeFilter(Unknown Source)
    at com.sun.jndi.ldap.Filter.encodeFilterList(Unknown Source)
    at com.sun.jndi.ldap.Filter.encodeComplexFilter(Unknown Source)
    at com.sun.jndi.ldap.Filter.encodeFilter(Unknown Source)
    at com.sun.jndi.ldap.Filter.encodeFilterString(Unknown Source)
    at com.sun.jndi.ldap.LdapClient.search(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.doSearch(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)
    at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
    at javax.naming.directory.InitialDirContext.search(Unknown Source)
    Please help.
    Thanks in advance,
    Regards,
    Kaja

    When will Aobe Acrobat support Office 2010 64 bit and Windows 7 64 bit?

  • Can oracle search with wildcard(%) and decimal point(.)

    I created number of filed like test1.2.1, test1.2.2 and test1.2.3, when conduct a search in the database ADV( test1.% ) the search returned with zero results. can oracle search work on the above scenario?

    Cannot reproduce what you have said (or may be I have misunderstood your requirement).
    SQL> select * from
      2  (select 'test1.2.1' field from dual
      3  union all
      4  select 'test1.2.2' from dual
      5  union all
      6  select 'test1.2.3' from dual
      7  union all
      8  select 'test2.2.1' from dual
      9  union all
    10  select 'test2.2.2' from dual)
    11  where field like 'test1.%'
    12  ;
    FIELD
    test1.2.1
    test1.2.2
    test1.2.3

  • How can I create a multi field search with wildcard option

    I've been working on a project which has a MySQL database
    that the user can search by choosing to enter some or all of three
    fields in a form on a PHP page, which then, obviously, relate to
    specific variables and fields in the database.
    Previously I had the default values of the variables as '-1'
    which meant that the results page simply ignored any of the
    variables that hadn't been filled in. However, now that the 8.0.2
    update to Dreamweaver has forced the Type of each variable, it no
    longer ignores those values and so returns no results. In order to
    get a correct result I have to fill in all three, I can't just fill
    in one of the fields.
    What do I have to do to regain the functionality of the
    results page simply ignoring any field that isn't filled in
    (effectively giving a 'any' value)?

    When building SQL statement, leave out the WHERE
    xyzfield=SearchString.
    "Podsnap" <[email protected]> wrote in
    message
    news:e7o8o0$jpo$[email protected]..
    >I need to create a search page that give all results if
    nothing is input
    >into
    > the field.
    >
    > Ultimately I want to have several fields on the page and
    the user will be
    > able
    > to enter as much or as little into the fields.
    >
    > So while the first field it likely to be a keyword
    search I might also
    > have a
    > field for say, 'city' and if nothing is chosen then it
    will give results
    > for
    > all cities but, obviously, if London is chosen then it
    will give results
    > for
    > just London. (And obviously if something is put into the
    keyword field as
    > well,
    > then that will filter the results further).
    >
    > Any ideas how I go about this? Or can you point me to a
    good tutorial? Or
    > even
    > an extension?
    >
    > Thanks.
    >
    > PS: I'm not, by any means, a code warrior, so speak
    slowly ;)
    >

  • Fix for SOLR searches beginning with wildcard?

    All, I am having problems finding clear answers on if the above was corrected in ColdFusion 10. 
    I can't get my head around the idea of SOLR not allowing search criteria to begin with a wildcard.  I've seen a solution for reverse wildcard searching, which is great as long as I specify criteria for which I know the ending letters.  For example, if I am looking for all entries ending in "ing", I could do a search on "*ing", using the reverse wildcard to find "gni*".  I have yet to see, or come up with, a solution for a SOLR search with wildcards in the start and end of the criteria.  For example, lets say I am looking for any word with "fus" in the middle, such as "confusing" or "perfusing" or "profusely".  I would want to do a search such as "*fus*".  From what I understand thus far, this cannot be done in SOLR?
    Thanks,
    Tom

    ColdFusion will support whatever Apache solr supports as it is the underlying engine we are using.
    And Solr does support it: http://lucene.apache.org/solr/api/org/apache/solr/analysis/ReversedWildcardFilterFactory.h tml
    I think this is an egregious hack, but still, it's the way they've chosen to support it.
    Solr technically disables support of leading wildcards by default in the traditional query parsers due to concerns about query performance since it tends to select a large percentage of indexed terms.
    Be that as it may, this should be my decision, as the maintainer of the index, not your decision to blanketly disallow it.  If it's available, then one can use it if one choses, or not use it for the reasons you cite.  If you blanketly disallow it, you're removing the ability for me to make that decision.
    It's also a bit of a backwards compat issue, innit?  Verity allowed leading wildcards.
    Adam

  • How to use glob search with the wildcard in command find?

    How to use glob search with the wildcard in command find?
    I want to find any file its names begin with "readme" string using command find. Why the following command cannot work?
    $find /usr/share/doc -name readme*
    However, the following commands can work?
    $find /usr/share/doc -name readme\* or
    $find /usr/share/doc -name readme'*'
    I want to know: After using the “\” or ' ', why the wildcard do not become a character "*"?(still a metacharacter).
    Another question:
    I want to find any file its names begin with "readme*" string using the command find.What command should I use?

    I want to know: After using the “\” or ' ', why the
    wildcard do not become a character "*"?(still a
    metacharacter). The backslash is known as an escape character. It means 'use the character value of the next character, not the special meaning' It is used in a lot of places such as command line, global regular expression patterns, and editors such as vi.
    In a typical shell, the splat (*) expands to all file names before passing the file names to the current command. So a \* sequence tells the shell to pass a *, not a list of file names, to the command.
    Demo - OpenSuSE Linux 10.3
    - I have a bunch of files. Let's list those that end in grid. Create one called *grid, and list again
    pops@fuzzyVM:~/pops> ls 
    a  b  c  startgrid  stopgrid
    pops@fuzzyVM:~> ls *grid
    startgrid  stopgrid
    pops@fuzzyVM:~> ls \*grid
    ls: cannot access *grid: No such file or directory
    pops@fuzzyVM:~> touch '*grid'
    pops@fuzzyVM:~/pops> ls
    a  b  c  *grid  startgrid  stopgrid
    pops@fuzzyVM:~/pops> ls *grid
    *grid  startgrid  stopgrid
    pops@fuzzyVM:~/pops> ls \*grid
    *grid
    pops@fuzzyVM:~/pops>In the above, how would I remove the file *grid, and only that file?
    Another question:
    I want to find any file its names begin with
    "readme*" string using the command find.What command
    should I use?What were the results of the two versions you tried? And why?

  • SOA 11g Bundled EM - search instances with wildcard?

    Hello~
    My apologies if this isn't the right place for this post... it's on a bit of a grey line between SOA and EM.
    Anyway, in the EM that comes bundled with SOA Suite 11g, under:Farm > SOA > soa-infra > [partition name] > [composite name] > Instances (tab) the user can search the audit trail entries for instance details that are still in the database.
    My question is, if I am searching by Name (which is a field that can be set by calling setInstanceTitle() in a Mediator/BPEL object), is it possible to do that search with a wildcard?
    I've tried: myquery% and myquery* but neither give the expected results (all instances with a Name that starts with "myquery").
    Thanks in advance for your feedback,
    - Nathan

    Hi, Damien~
    Thanks for the feedback. I'll go ahead and mark your answer correct and the question as answered.
    ...though, if Oracle happens to be listening, it seems to me that the ability to search instances from EM using wildcards would be a great feature to add to SOA 11g.
    - Nathan

  • Problem with: wildcard search in Endeca with Russian language, or adding custom stemming dictionary

    Hi endeca-gurus. I need your assist in typeahead functionality to implement it with endeca (also we should able to search within * from search input-field). So, per documentation, OLT doesn't support wild card search, but latin-1 does it. So,  I tried to switch to Latin-1, but it doesn’t work…maybe I performed some mistakes :
    1.created file stemming file named ru_word _ forms _collection.xml and added it to the MDEX..\conf\stemming\custom directory:
    <?xml version="1.0"?>
    <!DOCTYPE WORD_FORMS_COLLECTION SYSTEM "word_forms_collection.dtd">
    <WORD_FORMS_COLLECTION>
      <WORD_FORMS>
        <WORD_FORM>ноу</WORD_FORM>
        <WORD_FORM>ноут</WORD_FORM>
        <WORD_FORM>ноутб</WORD_FORM>
        <WORD_FORM>ноутбу</WORD_FORM>
        <WORD_FORM>ноутбук</WORD_FORM>
      </WORD_FORMS>
      <WORD_FORMS>
        <WORD_FORM>sm</WORD_FORM>
        <WORD_FORM>sma</WORD_FORM>
        <WORD_FORM>smar</WORD_FORM>
        <WORD_FORM>smart</WORD_FORM>
      </WORD_FORMS>
    </WORD_FORMS_COLLECTION>
    2. set USE _STATIC _WORDFORMS="TRUE" in <appname>.stemming.xml;
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <!DOCTYPE STEMMING SYSTEM "stemming.dtd">
    <STEMMING>
    <STEM_RU ENABLE="TRUE" USE_STATIC_WORDFORMS="TRUE"/>
    </STEMMING>
    3. run baseline_update script
    4. try to search with params in endeca_jspref:
    N=0&Ntk=All&Ntt=ноут*&Nty=1&D=ноут*&Ntx=mode+matchall&Dx=mode+matchall
    And search result is zero.. ((
    What the encoding should be for the edited files? any other suggestions for doing it?
    and, common question : willl endeca support wildcard search for russian in close future??

    Did you enable the dimension for wildcard search?  In dev studio, in the dimension pane there is a button called configure search, click it and check the wildcard search checkbox in the dialog.  I think you may have the stemming entry right but as OLT is fairly new I have not had a chance to test changing the default analyzer as yet. If my suggestion does not work or you have already applied the wildcard flag then I will dig a little deeper.
    best
    Terry

  • Incorrect warning for import directive with wildcard

    Some (all?) imports with wildcards seem to be getting incorrect warnings. For example, if I do:
    import flash.events.*
    I get a warning "The import flash.events.*" is not used locally, which is not true, since I am using ProgressEvent, IOErrorEvent, SecurityErrorEvent, etc. in the same file. This did not happen in FB 4.6.

    I created an account on the bugs site and no amount of searching (or using the direct link) will reveal this 'bug' entity.
    I too am having a similar difficulty (at least I think it is), though no wildcard character is involved.
    In FB7 I have a Mobile Project created fresh after installing FB7. The main application MXML type was selected within the wizard when creating the project, and that type was TabbedViewNavigatorApplication. I created a directory under the 'src' directory by the name of 'skins' and started a fresh .as file.  As quoted.  (actually, I'm going to post a screenshot as I'm incredulous that even in advanced editing mode, that a forum -> on programming and development <- seems to have no obvious way to insert formatted code and indeed ignores such tags when added in the HTML view of the editor     If that functionality is there, it's -far- from obvious or intiutive. )

  • Value Mapping Replication - XIVMService.execute() search using wildcards

    Hi, i'm replicating value mappings to IS' cache.
    Replication works fine. Using RWB i'm can list all the data in the Value Mapping Groups cache. I can also perform a loose search entering something like "12*" in the 'Value' field and the result contains all the mappings having 'Value' staring with "12".
    The problem arises when i try to do the same search with
    XIVMService.executeMapping
    because it just tries to do an exact search insluding the wildcard as the source value. Has anyone tried this? I need help urgently, otherwise i'm afraid i'll have to change my solution radically.
    Thanks in advance
    Nicolá

    >I can also perform a loose search entering something like "12*" in the 'Value' >field and the result contains all the mappings having 'Value' staring with "12".
    Are you doing this to manually search for the value in the RWB or is it in the Runtime.
    > The problem arises when i try to do the same search
    > with
    XIVMService.executeMapping
    because
    > it just tries to do an exact search insluding the
    > wildcard as the source value. Has anyone tried this?
    Where are you trying this search? What i mean to ask is in the runtime ? Are you using some UDF/ Java code to read the data from the value mapping table?
    If my answer/ question is completely off track , I would really like to know what you are trying here
    Regards
    Bhavesh

  • Question about different query results with wildcard

    Hi, I'm working with a third party app on SQL Server 2000, and from what I can gather, programmed in C# & VisualFoxPro.
    When we search with
        Note contains 94949
    we get 571 results, when we search with
        Note contains 94949*
    we get 575 results.
    There should be at least a hundred different entries that start with "94949-1" so I expected the query with the wildcard to return something like 680 results, not an additional four rows.
    Searching with
        Note contains 94949-1*
    got 483 results
        Note contains 94949-10*
    got 0 results
    Could someone explain or point me to more documentation on the difference results we get?
    Thanks

    Hi Arnie, thanks for your response.
    My situation is more basic than what appears in your example. Unfortunately, I am working solely through this application so I do not have access to the SQL to test out what you supplied, so my question is more of a need for an explanation of the search results. I do find lots of references to LIKE, Wildcards and pattern matching, but I don't find a way to explain to the users the best and most complete way to search. They mostly need a "this will always get us the results without missing anything" search technique and then to be able to select from a smaller group. I guess I need a basic course in understanding search results: how to get different ones and what they mean.
    Using 
            Note contains 94949-'%'
    returned one more result than when using an asterisk. I don't understand this difference.
            Note contains 94949-'%1'   or
            Note contains 94949-'1%'
    brings nothing nor does not using quotes. But there are hundreds of records which have the string starting with 94949-1 and a varying number of characters after that.
    ?Does the dash read not as a character in the string but as an expression?
    When I use WITHIN 3 characters, I get too few results (eight). If I use AND, I get text unrelated to the account number I am looking for.
    Again when I tried to narrow the search by adding one digit to the string to be matched, I did not get any results, but 500 results from the more general search is too much to scan by opening individual records.
    Thanks for pondering this with me.

  • SQL Performance tuning with wildcard Like condition

    Hi,
    I have performance issue with SQL query.
    When I am using "where emp_name like '%im%' " query is taking longer time than when I use "where emp_name like 'im%' " .
    With former condition query takes 40 sec , with later it takes around 1.5 sec.
    Both returns almost same no. of rows. We have function based index created on emp_name column.
    With wildcard at both ends query goes for full table scan.
    Can any one please suggest way so that query responce time can be reduced.?
    I even tried using hints but still it is going for full table scan instead of using index.

    >
    Hi Mandark,
    <I've rearranged your post>
    When I am using "where emp_name like '%im%' " query is taking longer time than when I use "where emp_name like 'im%' " .
    With wildcard at both ends query goes for full table scan.
    I even tried using hints but still it is going for full table scan instead of using index.
    With former condition query takes 40 sec , with later it takes around 1.5 sec.
    Both returns almost same no. of rows. We have function based index created on emp_name column.You are never going to be able to speed things up with a double wild card - or even 1 wild card at the beginning
    (unless you have some weird index reversing the string).
    With the double wild-card, the system has to search through the string character by character to see
    if there are any letter "i's" and then see if that letter is followed by an "m".
    That's using your standard B-tree index (see below).
    Can any one please suggest way so that query responce time can be reduced.?Yes, I think so - there is full-text indexing - see here:
    http://www.dba-oracle.com/oracle_tips_like_sql_index.htm and
    http://www.oracle-base.com/articles/9i/full-text-indexing-using-oracle-text-9i.php
    AFAIK, it's an extra-cost option - but you can have fun finding out all that for yourself ;)
    HTH,
    Paul...

  • How to use ADF Query search with EJB 3.0

    Hi,
    In ADF guide http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_search_bc.htm#CIHIJABA
    The steps to create query search with ADF Business Components says:
    "+From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.+"
    But with EJB, I'm not able to find Named Criteria node. Can we use ADF query search component with EJB? If yes, can you please show me some example, tutorial etc.?
    Thanks
    BJ

    For EJBs you'll need to implement the query model on your own.
    An example of how the model should look like is in the ADF Faces components demo.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    Code here:
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html

  • How do i change the setting so that when i type something in the address bar, it searches with google. it's started using yahoo and i hate yahoo, i'm even considering leaving firefox

    somethings i type something in the address bar, like 'paypal', mozilla used to go straight to that website, which was helpful... then it started searching with google, this i was not too upset about... however now it has started searching with yahoo, this i am upset about, and i would like to change this, however i do not know how?

    1. Use  free  AdwareMedic by clicking “Download ” from here
        http://www.adwaremedic.com/index.php
        Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
        “Quit AdwareMedic”.
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.
    3. Safari > Preferences >  Search > Search Engine :
        Select your preferred   search engine.
    4. Safari > Preferences > General > Homepage:
         Set your Homepage.

  • How to enhance the standard search with custom field?

    Hi all,
    I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
    I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
    I'm actually a bit confused to understand the correct procedure.
    Can someone please help me with a generic procedure to enhance the standard search with a custom field?
    Thanks in advance.

    Hi Maren,
    Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
      Add new field using Append structure of type ‘XXX’ in search
      Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
      Put your logic in BADI implementation – SEARCH method
      Add it in WebUI configuration
      Remove the operator if required
    Regards,
    Swadini Sujanaranjan

Maybe you are looking for

  • Ever since I updated my Ipod Touch, it doesn't really connect to the internet well.

    I just recently got a Ipod Touch for my sixteenth birthday two months ago and a few weeks ago I updated my Ipod and it hasn't been working right since.  I have read quite a few of the other complaints on this website about what the update has done to

  • First Time Making PKGBUILD: xhotkeys

    I wanted to try out a keybinding program called xhotkeys (I like to look aroudn for alternative programs constantly, and noticed that xbindkeys has quite a few dependencies), but when I went to install it from the AUR, it gave me some errors. (Namely

  • Method for keynote to I movie

    Hi I just switched from a PC and I want to do something very basic. I would like to know where I can find the directions for this. I want to finish my keynote presentation, record it with sound (I can do this), then bring it into I movie so I can rep

  • Ipod touch--can​'t get online at home via router

    Just bought an ipod touch and want to use wi-fi to access internet at home.  I am able to log onto the home network, but there isn't an actual internet connection. I am running XP, have a Lynksis WRK54G wireless router and have no idea how to configu

  • HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment wrong

    Hi, I am changing my PATH (on NT4) for Java from JDK1.2.2 to JBuilder's JDK1.4, and get such error: Registry key 'HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment' has value '1.4', but '1.2' is required. What should I do? Thanks David