Wildcard search + thesaurus on xquery

Hi All,
I just realized that thesaurus matching is not supported with wildcard search.
Here is current codes.
<Searches>
if (fn:exists(http:get-query-parameter("Ntt"))) then
for $paramNtt in http:get-query-parameter("Ntt")
     return <Search Mode="AllPartial" Key="i_products_st">{concat("*",concat($paramNtt,"*"))}</Search>
else ()
</Searches>
So, now i am thinking that I can change to somthing like following eql
<EqlExpression>
collection()/record[ endeca:matches(.,"i_products_st",$paramNtt,"AllPartial") or endeca:matches(.,"i_products_st",concat("*",concat($paramNtt,"*")),"AllPartial") ]
</EqlExpression>
though I didn't test it out yet. I guess there might be some other solution.
So, I would like to ask if any better way can solve this issue.
Thanks,

Are you trying to retrieve the union of (a) records that match the user's search term as literally entered, perhaps expanded by thesaurus and (b) records that match the user's search term as a substring via wildcard?
If so, then EQL can express that logic. For example, suppose that:
* the thesaurus contains an entry "truck" <-- --> "lorry"
* the user enters "truck" in the search box
EQL: collection()/record[ endeca:matches(.,"i_products_st","truck","AllPartial") or endeca:matches(.,"i_products_st","\*truck\*","AllPartial") ]
This search filter expression would match records containing: { truck, lorry, trucker, trucking, struck, ... }
This kind of infix wildcard expression has very broad recall. In this case you would probably also want to assert a relevance ranking strategy based on matching the user's original entry "truck", using Nrr.
Also worth thinking about search inputs that are multiple words like "truck driver" - would you want to implicitly wildcard every token separately e.g. \*truck\* \*driver\*
Finally, definitely worth thinking about search inputs that give pathological queries when implicitly wildcarded, like very short tokens e.g. a ==> \*a\*

Similar Messages

  • 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

  • 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

  • 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}*

  • Address Book wildcard searching LDAP

    With Address Book under Mac OS X 10.4 (Tiger), and 10.5 (Leopard) it was possible to do a wildcard search of an LDAP server for contacts. You did this by typing *. or ** in the search box in the top right.
    Unfortunately, this no longer seems to work in Address Book in Mac OS X 10.6 (Snow Leopard).
    Does anyone know of an alternative way of doing this?

    Do you use iCloud? If so, try going to the System Preferences then iCloud and unchecking Contacts. It will warn you about deleting the contacts from your Mac. If you know your other devices on iCloud have the correct contacts(or icloud.com) then this should be completely safe. Once you've okayed them to be removed, immediately recheck contacts.
    Please let me know if this works. Thanks!
    Autumn

  • Can't perform wildcard searches

    Hello world,
    We're using Portal 3.0.9.8.1 with Patch 1949492 installed. This is on 8.1.7.2.4 SE Database.
    When performing a search, cannot include wildcards. E.g. a search for 'test' returns only the exact word 'test'. It does not return 'testing','tester','test1','detests'.
    This is against what Portal's Own Help file states. Click 'Search Tips' on the 'Advanced Search Page' and you are told the following:
    The % character is interpreted literally, so do not include it as a wildcard. If you enter 100% as your search term, search finds content that contains the text 100%, not 1000 or 10000. Wildcards are automatically added to the beginning and end of your search term, so searching for 100 will automatically return content that contains 1000 and 10000.
    If interMedia is installed and enabled, search automatically uses the stem operator to search for words that have the same linguistic root as the specified word. For example, if you specified the word lift, the search feature will return content that contains the words lift, lifting, lifted, etc.
    Both of these statements are blatantly untrue as it does neither.
    Any thoughts Oracle? Has anyone else managed a wildcard search?
    Frustrated
    Dave

    I've just verified in 3.0.9 and wildcards are applied as specified in the documentation, when Text is not enabled. If your search term is 'test' then the SQL query will have the search term %test%. Literal % signs in your search term are escaped, so that if your search term was test% then the query would be for %test^%% escape ^.
    There are a few things to remember. When searching WITHOUT Intermedia Text enabled the search will only match terms in the title and description of the item.
    When, Intermedia Text is enabled, all of the content will be searched. However, as indicated in the documentation, the stem operator will be used. So if you search for 'test' the query is now a Text contains('$test') type query. The default operator is the '$' stem operator, which match terms that have the same linguistic root. So if your search term is 'test' it should match 'tests' or 'testing' or 'tested'. However, it will not match 'test1'. Please refer to the Intermedia Text documenation for more information on the stem operator and Text searching in general.

  • Wildcard searches for WBS element

    HI Experts,
    Can anyone give a example prgm for wildcard searches to WBS element LIPS-PS_PSR_PNR field.
    Thanks in advance.

    Hi,
    This is standard system behaviour. Purchase requisitions generated by MRP do not add to commitment. However, when these PRs are converted into POs, the POs add to commitment. Purchase requitions genertaed directly from PS, without the intervention of MRP always add to commitments.
    Regards
    Muraleedharan.R

  • How to do wildcard search?

    Does anyone know I can do wildcard search like *.jpg or my**.jpg? And yes, don't tell me to use the Terminal and copy and paste path.

    Spotlight searches are pretty much wildcard searches, you just don't need the wildcards.
    However, if you want to do it, look at a Raw Query. This post shows some of its capabilities using the Terminal command mdfind, but you can use a Raw Query in the Finder and he talks about how to select that from the criteria menu.
    http://blog.scottlowe.org/2012/07/25/advanced-spotlight-queries-in-the-mac-gui/
    With a Raw Query, you don't use the mdfind command, but the rest of the search is entered into the Find window.
    Also, see here: https://developer.apple.com/library/mac/documentation/carbon/conceptual/spotligh tquery/concepts/queryformat.html

  • 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

    Can anyone tell me if the (?) is standard wildcard search functionality in ISU.  The glossary gives the following description, however this does not seem to be funtionong in our system. Maybe it's something we can flip a swith on.
    SAP's Definition of "Wildcard Search"
    A search using * to replace any string of characters and ? to replace any single character in a word.
    Thanks
    Lisa

    One of my users had asked about using the ? wildcard to replace a single character when performing a search.
    When we looked up the information in the glossary, the definition led us to think that this was an option in SAP.  We had not been using this functionality and wanted to know if it was standard functionality, and maybe we just needed to activate it.
    So thank you for the response, I can now inform my user that this is not standard SAP, and is not available, unless we make a change to the code.
    Cheers
    Lisa

  • Wildcard search support in XPath

    Hi all,
    I am using XPath in querying XML file. My application uses an XML file as a database. I am having a search portal in which user can give wildcard search like name = "M*" etc. As I am using internally XPath to read a particular NodeList from XML, I need to do a wild card search using XPath. When I saw the XPath document it only gives //* etc but not like //M*. So I want to know a way by which I can do this wild card search using XPath.
    To be more clear of my requirement consider the below xml:-
    <?xml version="1.0" encoding="UTF-8"?>
    <bookstore>
    <book>
    <title lang="eng">Harry Potter</title>
    <price>29.99</price>
    </book>
    <book>
    <title lang="eng">Learning XML</title>
    <price>39.95</price>
    </book>
    <book>
    <title lang="eng">Learning VSS</title>
    <price>39.95</price>
    </book>
    </bookstore>
    I want the XPath query to return all the books having title that starts with "Learning" string.
    Thx in advance
    MK.

    There are ways to do what you want, but they will require some effort to convert the user's wildcard specification into something that works with XPath.
    You can have a search like
    /book[starts-with( title, 'L')]
    should find the Lerning XML and Learning VSS books.
    Dave Patterson

  • 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

  • Wildcard search for numeric values using select ?

    Hi,
    I want do wildcard search for numeric fields of the table.
    For charcter/string i have used - select * from XX_TABLE where param1 like 'SS%'. But this query doesnt work when para1 is numeric. Please let me know first whether this is possible ? if yes how to achieve it ?
    Thanks in advance,
    Shrinivas

    Hi Jack,
    The numeric field is of  8 digits, so when i give search critera as '66', it should return values 66000000, 660000, 6600 etc. so i was not able to give between some range. I also tried storing all these values in internal table and the segregate the values it contains '66*'. This worked well but requires lot of coding effort.Please suggest if you guys have any better method ?
    Thanks,
    Shrinivas

Maybe you are looking for

  • Javascript for multiple date fields

    Hi all- I have to write javascript for 15 different date fields in a form. The requirement here is that we convert all date fields on Page 100 from date pickers (editable date fields) to display-only date fields with two controls for the users to set

  • Macbook Pro won't receive files via bluetooth

    Strangely, I can browse devices, and send to them, but never receive from anyone's phone including my own. It seems one way. I have deleted all relevant preferences. Phones, etc. are paired, and the Macbook is discoverable, but a phone always says "s

  • Acrobat X Pro trial on OSX 10.9

    I want to test Acrobat X Pro on an OSX 10.94 Mac. I don't want Acrobat XI. When I download and install, the trial button is grayed out, but the serial number boxes are there. Does anybody know how to get the trial on OSX 10.94?

  • Yahoo Mail not displaying all new e-mails on iPad

    For the past two days, when viewing Yahoo Mail through Safari on the iPad, the number of new e-mails listed for the Inbox has not matched the actual number of new e-mails in the Inbox.  For example, it might say "Inbox (11)", but there are only 9 new

  • How to enable CAPL node in CANoe 7.5 ?

    Hello, I am using CANoe 7.5 tool. Using my existing configuration, In the simulation setup view did right click to insert CAPL node  , but the option is not available , I could see only replay block , generator block , Interactive generator block , o