Wildcard Search on Set

Hi
I am trying to iterate through a Set and output all values that matches a partuclar string or subsrting.
e.g. if create a Set and insert the following values:
Set<String> alf = new HashSet<String>();
alf.add("abc.cde.fgh.ijk");
alf.add("abc.zxy.fgh.ijk");
alf.add("abc.pqs.tws.ijk");I am tring to display the above values (example) based on a wildcard search e.g:
If I search for:
abc.?.?.ijk
I will get an output containing the above results, (? implies matach any).
abc.cde.fgh.ijk
abc.zxy.fgh.ijk;
abc.pqs.tws.ijk
Thanks

I am looking for clear and solid example of how to achive the following.
For example:
I have the following ip's in a Set:
111.112.113.114;
112.113.114.114;
111.112.113.115The values are all consistant IP format.
now when I search for say *.112.113.* through the standard inputI want to get back:
111.112.113.114
111.112.113.115          e..g match the 2nd and 3rd octets and perform wildcard search on 1st and 4th octets
and
*.*.*.* <-- will output all IP addresses
* = wildcardThanks
Edited by: Apprentice12 on Apr 10, 2010 4:01 PM
Edited by: Apprentice12 on Apr 10, 2010 4:02 PM

Similar Messages

  • ADF Query wildcard search

    Hi Experts,
    i have a requirement in ADF search panel should allow wildcard search.
    i would like to know is it OOTB or how can we achieve this?
    appreciate your help
    Thanks,
    KT

    You should crate a view criteria which holds all attributes and set the search criteria like 'start with' which generate wildcard search. Set each attribute to 'ignore null values' to allow searches where the attribute its not set.
    Then you use this view criteria and drag it on the page and drop it on the page as query.
    Timo

  • Oracle BI Publisher - Passing multiple wildcard search to a bind variable

    Hi,
    Please help me in resolving the below mentioned issue:
    I have developed a report in oracle BI Publisher with a SQL query.
    While scheduling the report to run I used to pass mutilple parameters like CGAMSVC08,RLCSVC51
    If the pass the parameter with wildcard search like C% it works.
    When I pass two or more parameter values with wildcard search like C%,R% its not working.
    Could you please let me know how should I give the bind variable in the SQL query. Currently I'm paramater like the one shown below for passing multiple paramaters:
    Where (',' || :PRMRETRID || ',' like '%,'||RL.RETROFIT_ID|| ',%')
    Edited by: user1101445 on May 23, 2012 2:02 AM

    HI Tyler.
    Well, here's the latest.
    I found this little gem in the BIEE 10.1.3.3.3 Release Notes Documentation...
    This issue applies to Versions 10.1.3.3, 10.1.3.3.1, 10.1.3.3.2, and 10.1.3.3.3.
    Reports that use the BI Publisher data template as the data model may fail with the
    following error: "Data not defined."
    This error will occur if you defined a parameter in your data template but you do not
    pass a value to it via the user interface. If you do not specify this parameter in the "Parameters" section of the report definition that you created using the BI Publisher Edit Report interface, then you will receive the error.
    To work around this issue, either define the parameter in the Edit Report interface or remove the parameter from the data template.
    That bit is now working.
    Having set this up and using your guide it works if my SOAP parameters declaration passes a single value like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641</item>
    </values>
    </item>
    </parameterNameValues>
    But if I try and pass two or more like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641,18421</item>
    </values>
    </item>
    </parameterNameValues>
    BIP states "java.sql.SQLException: ORA-01722: invalid number"
    My SQL where clause is..
    <sqlStatement name="Q1">
    <![CDATA[select * from vw_invoice_summary
                   where invoice_summary_id IN (:P_INVOICE_ID)]]>
    </sqlStatement>
    And the BIP error records the parameter value as P_INVOICE_ID 16641,18421 (which are legit invoice IDs)
    In summary, works if I pass one invoice ID, fails if I pass two or more.
    Any ideas? Or do you reckon this is now a post for the BIP forum?
    Kind regards.
    Simon

  • Wildcard search in SharePoint 2013.

    Hi ,
    I have SharePoint 2013 farm, which is migrated from 2010 to 2013. After migrating to SharePoint 2013, wild card search is not working. Could someone please help me in activating wildcard search for already configured search service application in SharePoint
    2013.
    Thanks,
    Badri.
    Badri

    Hi
    I am trying to do a partial search without using wildcard by setting the query text of the search result source to {searchTerm}*. The search works and gives me the right results. However,
    the results look differently.
    When I do search for abcd*, the words that are started with abcd in the Title, Summary and Path parts are highlighted.
    And when I do search for abcd, I have exactly the same search results back. but the words are not highlighted. and besides that, the Summary text is different.
    I believe even if I had the right search result items back, the Title, Summary, and Path properties are created based on the searchEntry. Is there any way to make the items look exactly the same without manipulating with the searchEntry value?
    Thank you,
    Tatiana

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • Wildcard search with catsearch on Oracle 10g

    Wildcard search problem is being discussed many times, however the solutions provided did not solve the problem.
    I am using catsearch to take its advantages and return results at a faster rate. Aim is to simulate a like '%abc%' using catsearch in 10g.
    Following are the steps to reproduce the problem.
    CREATE TABLE test
       (name VARCHAR2(60))
    INSERT ALL
    INTO test VALUES ('VCL Master')
      INTO test VALUES ('VCL Master S.')
      INTO test VALUES ('VCL Master S.A. Compartment 1')
      INTO test VALUES ('VCL MasterS.A. Compartment 2')
      INTO test VALUES ('VCL Master., S.A.')
      INTO test VALUES ('KCL Master Corp.')
      SELECT * FROM DUAL
    begin
    ctx_ddl.create_preference('Jylex', 'basic_lexer');
    ctx_ddl.set_attribute('Jylex','SKIPJOINS','.-=[];\,/~!@#$%^&*+{}:"|<>?`§´¨½¼¾¤£€©®''');
    end;
    begin
        Ctx_Ddl.Create_Preference('wildcard_Jylex', 'BASIC_WORDLIST');
        ctx_ddl.set_attribute('wildcard_Jylex', 'wildcard_maxterms', 15000) ;
    end;
    CREATE INDEX test_inx ON test(NAME)
    INDEXTYPE IS CTXSYS.CTXCAT
    PARAMETERS('STOPLIST CTXSYS.EMPTY_STOPLIST
    LEXER     Jylex
    WORDLIST wildcard_Jylex')
    problem1:
    select * from test where catsearch(name, 'CL Mast*', NULL)>0 --- no results returned
    problem 2:
    when I run the following query on the actual column of my table with 3 million records,
    select * from XXXX where catsearch (NAME, 'VCL Master S*', NULL) > 0
    I get the following error.
    DRG-51030: wildcard query expansion resulted in too many terms
    I have used () and "". Did a lot of R&D and still I am not able to a solution that resolves both of the problems.
    Suggestions will be much appreciated.
    Thanks.

    This post has nothing to do with Oracle Objects.  Perhaps some moderator will move it to the Oracle Text sub-forum/space, where it belongs.
    Your search for 'CL Mast*' did not find any rows because there aren't any rows that match that criteria.  If you want to return rows that have that string, then you need to add a leading wildcard.  Technically CTXCAT indexes and CATSEARCH do not support leading wildcards, but you can use two asterisks as a workaround, so you can search for '**CL Mast*'.
    Your wildcard_maxterms is set to 15000, so if there are more than 15000 words that begin with 's' in your 3 million records, then it will result in an error.  If you upgrade to Oracle 11g, then you can set the wildcard_maxterms higher or to unlimited by setting it to 0, but that may cause your system to run out of memory.  Most applications trap these errors and return a simple message to the user, indicating that the search for s* is too broad and to narrow the search.
    I would use a CONTEXT index with CONTAINS instead of CTXCAT and CATSEARCH.  It supports leading wildcards and you can index substrings for faster searches.  If you want it to be like the CTXCAT index then you can make it transactional.

  • Wildcard search in OBIEE?

    Hi,
    I have a requirement where user wants to do a wildcard search(in prompt). Is it possible in OBIEE?
    I have a prompt(edit box) where user has to enter a value. After entering the value the report is shown (using guided navigation) if the request returns any value.
    Typing % in the edit box returns all the rows but entering something like xyz% doesnt return any row.
    Please let me know if anyone has any suggession.
    Thanks

    Thank you for suggesting this.
    I tried this solution but am really confused why its not giving any output when I am giving like condition with presentation variable. Whereas if I directly give same value as in presentation
    variable, it returns all matching rows.
    When I saw the SQL generated (by giving presentation variable with like) by OBIEE, it was having "=" instead of "like value%'" whereas by directly giving the value in place of presentation variable, it applies "like 'value%'" only.
    Not sure why its happening, can you also try it once.
    Let me know if anyone has any other suggestion.
    Thanks
    One possible solution :
    - In your prompt set up a presentation variable
    - and in your answer create filter with a like condition, you presentation variable and the % wildcard an the end

  • Wildcard Search in CCW

    Is there a way to do a wildcard search in CCW when querying up a PO#?
    It would be helpful for my customer when querying orders because their PO#'s sometimes include letters at the end of the PO's like "OP" and sometimes they don't.
    For example PO# 4500151514OP maps to SO# 53654560 and comes up in CCW.  But when I try to do a partial search or wildcard search (4500151514 or 4500151514%) in CCW it won't pull up the SO#.
    Please let me know if wildcard searches are possible in CCW or if there was a work-around that could do this.
    Thank you,
    Tom Butalid

    Thank you for suggesting this.
    I tried this solution but am really confused why its not giving any output when I am giving like condition with presentation variable. Whereas if I directly give same value as in presentation
    variable, it returns all matching rows.
    When I saw the SQL generated (by giving presentation variable with like) by OBIEE, it was having "=" instead of "like value%'" whereas by directly giving the value in place of presentation variable, it applies "like 'value%'" only.
    Not sure why its happening, can you also try it once.
    Let me know if anyone has any other suggestion.
    Thanks
    One possible solution :
    - In your prompt set up a presentation variable
    - and in your answer create filter with a like condition, you presentation variable and the % wildcard an the end

  • 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

  • Wildcard search of .so to load/run

    Hi all,
    I'm trying to write an diagnostic tool for work to run through some debugging diagnostic steps on the target system.  It's quite simple idea in that on execution it will gather silicon, system information, read fuses, registers, bootstraps, run basic read/writes to flash/storage, toogle gpios, dump etc.  The tool will also run through security api calls, open/close sec devices, calling and testing encrypting/decrypting APIs and testing different drm api calls.  However I don't want the main tool to have knowledge of these security api calls, i would like to be able to have helper .so's with knowledge of specific drm api in their corresponding helper .so.
    So ideally the tool should somehow dynamically load them by way of a wildcard search of all the helpers .so and execute each as it finds them.  I know with dynamically linking in sharedlibs, on execution, if it can't find the specific file a program would error out with message like "libcrypto.so.0.1 doesn't exist" or something like that, which i don't want to happen, I want the tool to continue and execute the rest of the diagnostic tests.  The tool should be able to dynamically search and execute whichever .so's that it recognizes and can find since I might have 5 different helper .so for different drm technologies but at any given time they might not exist within the filesystem due to licensing issues for different vendors.  Is there a way to do this?
    -vincent

    You can use the dl... C functions to load dynamic libraries at runtime. The dynamic loader does this for you when the program starts up but you can do it yourself. For example, in your shared library plugins, you could have common symbols (exported functions) for initializing, performing the test, checking the results, etc. The plugins would themselves link to the required libraries. These third-party libraries would then be loaded and linked automatically. You can set an RPATH in your main program to the plugin directory or use file access functions to search for them and pass absolute paths to dlopen. Or something like that.
    dlopen, dlsym, dlerror, dlclose are the C functions you need to load libraries. I found think link on google: http://www.ibm.com/developerworks/linux … index.html. You can use functions like glob and opendir to search for plugin files. glob uses wildcards. I'm assuming you're using C.

  • Wildcard search fails

    Using DS 5.2 I have noticed some anomalies in search results using wildcards.
    Searching, for example, for "pager=*1" returns all the correct entries but also all the entries with NO pager number specified. The same happens for any single int after the wildcard, (but not a double int. EG "pager=*99" returns the correct anticipated result set).
    This also happens with other attributes such as homephone and email.
    Has anyone else come across this?
    Thanks in advance for any help.
    Regards
    DB

    I have heard of this before but never seen it myself. I tend to use older, patched up versions of DS (e.g. 5.1SP3) for reasons just like this.
    The previous cases were 1) a bug in the search algorithm was not handling wildcard searches with a small number of characters correctly if they were rooted at the beginning or the end of the string or 2) the indexes for multi-valued attributes were screwed up and the only solution was to get a patch and rebuild the indexes.
    In both cases it was a bug. I think #2 implied that the entry had a previous value that matched the search, but the value had been deleted and the index was not updated properly. If this attribute is indexed you could try deleting the index and recreating it to see if the problem goes away.

  • Wildcard Search requirement for Items description and BP Name

    Hi Friends,
    I want to know is there any feature in Item Master data or Business Partner Master Data in which search is done by putting middle or last name. For example the Item Name is Electric Motar 345 Gear
    and when the user wants to search it by say Motar 345 then all items which inclused Motar 345 should come highlighted.
    Same for BP also its required as BP name is Glem Tex Japan Pvt Limited and now user wants to search the BP by say Tex Japan and all BP which includes the word Tex Japan should come.
    Is there any possibilities by which this can be achieved. Its somewhat wildcard search required. I heared its possible in B1.
    Regards,
    Kamlesh Gupta

    Dear Sridharan,
    I have exactly put the same as 'Motar 345 after Opening the Item Master Data and in find mode pressed * Enter and put the above in Find and selected Item Description. But sorry to say that nothing is coming and the cursor goes in the last item master data.
    What might be the problem can you please tell me.
    Regards,
    Kamlesh Gupta

  • Change "Bing" from the defalt search engine setting 2. How can I have snipping tool on taskbar

    Can you please tell me how I can change Bing as the default search engine setting on my browser? I have checked the internet option and account setting. It doesn't seem it can be done.

    Refer this :
    http://windows.microsoft.com/en-in/windows/change-choose-internet-explorer-search-provider#1TC=windows-7
    For snipping tool : 
    When you open the tool, on task-bar, right click and click on Pin the program on Task bar. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • How can we customize the no of rows in Search options set?

    Hi all,
    I am using EP6 SP14, and i need to display the news from a folder based on a filter criteria ( like regions, etc) i am using a KM search iview with a query to search the items of the folder and the corresponding search options set limits the no of rows to a min 5 but i need only 3 items to be displayed with the page links to the browse the rest of the news. Can anyone suggest me if there is any way of customizing the no of rows or else i am thinking of using a KM navigation iview and using the corresponding query but strangely the layout doesnt work.....Anything i need to do more to limit the no of items to be displayed?
    Help would be greatly appreciated ,
    Santosh Kumar
    Edited by: Santosh Kumar Adapa on Nov 11, 2008 8:16 AM

    Hi Santosh,
    how about developing your own search?
    These blogs gives you a nice introduction of how to implement
    [How to write a Search Application using the KM Indexmanagement API for TREX|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5586]:
    [Using the KM Indexmanagement APIs for searching with TREX|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9237e490-0201-0010-f3a1-9a322ccbd8b1]
    Best regards,
    Denis

  • SharePoint 2013 Online - Default Wildcard Search

    Is there a way I can change SP to always append a * to the end of every search?
    We're using the Online version (tied in with O365), and it has been requested that we have every search be a wildcard search by default. I found walkthroughs for SharePoint 2010, but the interface and menus have changed in 2013.

    You can edit the Search Results Web Part. Then from the web part properties, click on Change Query.
    Now in the popup modal window, click on "Advanced Mode".
    In Query text, you can use {SearchBoxQuery}*

Maybe you are looking for

  • Custom Infotype length limitation

    Hi, I have a requirement to create a custom infotype in ECC 6.0 with a table control which can have a maximum of 50 line items. Something similar to basic pay infotype and PA0008. While going through the SAP documentation I found the below statement

  • Problem with widgets

    I run mountain lion on a macbook pro. When I try to add a desktop widget using the file/open in dashboard command it causes safari to quit. Any thoughts

  • Fonts and graphics are slightly "fuzzy". Colors are not correctly displaying. Help?

    After Mavericks installation on my Macbook Pro mid-2012 (non-retina), the fonts appear slightly fuzzy, the graphics seems less crisp and the colors are just "off". This issue seems to be system wide but is much worse whilst using Safari for some reas

  • Deposit received from customer

    Hi, Sometimes we will receive some deposit from customer, i creat a special GL indicator under customer to replace GL account from AR to other payable, but if after some times, i want to pay the money back to the customer, what should I do?

  • Can any bady send the WDJ application on event handler & plug  parameters?

    Hi, Experts, I have no idea no WDJ Event handler and plug parameters usage if any bady can send me few WDJ application or scenarios which is based on event handler parameters and plug parameters and method parameters.  Thans in advance, Shaber Ahmed.