Search query TREX

Hi,
I try to configure the KM iview search query to return only result by the name of documents(or part of name) and not as full text.
For example, if i make a search on "TEST" i can see in the result page:
- document.doc <i>(name of file)</i>
this a <b>test</b> document <i>(full text search)</i>
- test.doc <i>(name of file)</i>
this is a new doc to..... <i>(full text search)</i>
- example.doc <i>(name of file)</i>
a sample for a <b>test</b> has been ....<i>(full text search)</i>
and i need to see only:
- test.doc <i>(name of file)</i>
this is a new doc to..... <i>(full text search)</i>
How configure the search to have this result?
For your information i'm in EP7 SP10, TREX 7.0.06
Thanks in advance,
Xavier.

Hi ,
The custom QueryExtender works for custom property of type String and not for Timestamp property.
If add Attribute query for Timestamp property with operator as less or equal to current date value, it doesn't work as below.
returnList.addAttributeQuery(lPublishDateProp,currentDate,IQueryEntry.PROPERTY_OPERATOR_LESS_OR_EQUAL);
lPublishDateProp - Customer property name of type Timestamp
currentDate - String value of java.util.Date current date
Any clue?
Thanks,
Siva

Similar Messages

  • Error during search !!! Associate Search Query with Indexes !!!

    We are trying to implement a simple index with Trex Search .
    We have done the following tasks :
    1. Created my index
    2. Assigned data to the the indexes
    3. Created taxonomies for classification indexes
    4. Created my search query  asociated to the index
    When we  try to search with the iview search , we got this error  :  <i><b>"Error during search occurred - com.sapportals.wcm.WcmException: A received argument has an invalid value (Errorcode 18)"</b></i> .
    We think that something is missing and for that we need to know how can we
    associate the search query with the index ?
    After the step 4), what we have to do in order to get this implementation (search working)
    Please send us  any ideas ..
    THANKS !!!

    Dear Ato
    Check in IMG Path - Enterprise Structure --> Assignment --> Logistis Execution --> Assign warehouse number to plant/storage location.
    Here check whether the warehouse number is assigned to your plant and storage location.
    thanks
    G. Lakshmipathi

  • How do I use "Search Query" for nontrivial searches?

    After a few years in the community, this is my _first_ question to the boards ;-)
    In speaking with a colleague today, I learned about an NI forum feature that would be useful for me. When I tried to configure it, I then learned that I didn't know how to use it. When I tried to learn how to use it, I further learned that it wasn't fully documented. So, I'd like some clarification :-)
    The feature in question is "Search Query" which will send you an email when a forum search matches your query. What I don't know is:
    What are the rules (syntax) for search queries? For example, I would like to search for single words, all the words that I specify, as well as exact phrases. How do I differentiate between multiword queries and exact phrase queries?
    Is it possible to have more than one Search Query?
    If so, how do you delineate them? Would I use commas, a new line, something else?
    I'm asking because the available (and discoverable) documentation doesn't mention what to do when you want more than one Search Query. The help text on the subscription page [1] makes me think that only one query is possible, and says a Search Query:
    Sends you mail every time a message matching your query is submitted. Search queries take up to 15 minutes to take effect. Saving a blank query will disable this feature and will stop any mail from being sent.
    The other place I tried was the NI Forum FAQ [2], which makes me think that more than one query is possible:
    If you add a board, thread, message, or search term to your subscriptions, the system will send you an e-mail every time someone posts to the board, or replies to the message or thread. If you prefer not to receive an e-mail for your subscriptions, you can subscribe to the RSS feed of a board, thread, user, or search term.
    The FAQ goes on about what to do with board, thread, and message subscriptions, but doesn't say anything more about search subscriptions.
    The last place I looked was on the search results page itself. In the blue header that precedes the results, there's a link on the far left that says "Search Options" with a single option that says "Subscribe to this search's RSS Feed". While I could subscribe and use an RSS reader, I really would prefer email. I suppose if only one Search Query is possible, then this will be my workaround.
    As a comment, why does the Search Options menu not also have a "Subscribe to this search" option, which would add another entry in the Search Query box? This is a noticeably different interface than the Thread Options menu.
    [1] Subscriptions & Bookmarks
    http://forums.ni.com/ni/user_subscriptions
    [2] Frequently Asked Questions
    http://forums.ni.com/ni/help_faq
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)
    Solved!
    Go to Solution.

    Hi Joe,
    Thanks for all of the questions and congrats on posting your first question!
    Unfortunately I think all of your questions come from the valid assumption that the search query functionality is more robust than it actually is.  The search query functionality really only serves a single purpose and that is to email you when your phrase has been posted to the forums.  For me, I use it to email me when my name is mentioned in the forums.  It serves this purpose well since I have it set up to work off just a single search term.  However I find that multiple word phrases are combined with an OR which is not as useful.  The search query does not adhere to any common search syntax that you would expect (I believe we are the only community that uses this feature so it has not been improved upon).
    The best way to set up both multiple word queries and multiple different queries is to use the RSS feed as you mentioned.  This way you can tailor your search very specifically using different advanced search options and subscribe to them all in one feed reader without constantly getting emails.  The search query emails do not adhere to the digest subscription settings.  I find that the RSS feeds work very well for searches and I am fond of using them, but I do use an RSS Reader for many things so it is not out of my normal workflow.
    Thank you for reading the Forum FAQ.  I've done some work to improve it but I think it has a long way to go and it's good to know that people read it
    Regards,
    Laura
    Web Support & Operations
    National Instruments

  • How to club 2 queries in one formatted search query

    Hi All,
    I have inserted a formatted search in the stock transfer for chnaging the 'From warehouse' based on series.
    I have written following query for same,
    SELECT $[$18.1.0]='08' WHERE $[OWTR.series] ='46'
    It is working Fine
    I want ot use same concept for selecting other based on other warehouse
    e.g
    SELECT $[$23.5.1]='02' WHERE $[OWTR.series] ='45'
    But I am not able to club these queries on one formatted search query can anybody help to group it in one formatted search query....
    Thanks and Regards,
    Atul Joshi
    Edited by: Atul Joshi on Dec 23, 2008 5:20 PM

    Hi Atul,
    You could define the quey like this
    SELECT
    CASE
             WHEN $[OWTR.series]='46' THEN '08'
             WHEN $[OWTR.series]='45' then '02'
    end
    from OWTR
    Regards,
    Vijay kumar
    SAP Business One Forums Team

  • How to modify search query based on new FE

    Hi,
    As per a requirement, in All Accounts search (advanced search section), I had to replace 5 checkboxes (e.g. Role1, Role2, Role3, Role4, Role5) by a single dropdown (codelist) name= "Account_Roles" containing same values (Role1, Role2, Role3, Role4, Role5). I created Customer's XBO and declared field of the codelist type, name= "Account_Roles". So, the XBO now has below 6 fields :
    Role1, Role2, Role3, Role4, Role5 (type = Indicator)
    Account_Roles                            (type = codelist)
    Existing search on All Accounts worked on the 5 checboxes and fetched those accounts for which the values matched.
    E.g.
    If in search parameters, I check Role1 & Role2, and for Account1, these values are stored as "true", then Account1 will be shown in the result list.
    Now the search UI doesn't have the checkboxes, but codelist ('Account_Roles') which can have value 'Role1'/'Role2'/'Role3'/'Role4'/'Role5' or combinations are also possible like 'Role1' OR 'Role2', etc..
    My question here is -
    Will the old search query that worked on indicator fields earlier, handle the new FE "Account_Roles" automatically ?
    If not, then will modification be required to existing search query ?
    If modification is required, what steps I need to follow to handle this new field instead of checkboxes.
    I need exact steps to modify a search query, as I tried several things in the PDI but was not able to confirm if this requirement can be implemented by modifying search query or it is not feasible from PDI perspective.
    Appreciate all your inputs.
    Thanks,
    Sachin.

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

  • Need help in building search query

    Guys ..
    Problem Description:
    I have a huge table that is indexed using CONTEXT.
    I want to write a search query that considers the following:
    1. number of keywords match
    2. takes care of spelling mistakes, synonyms and acronyms
    3. proximity - the keywords should not be too far of each other.
    e.g. I have this phrase: "Horizontal Stabilizer Trim Brake"
    I was thinking of writing a query like:
    SELECT SCORE(1) SCORE,
    TEXT text
    FROM MY_TABLE
    WHERE CONTAINS(TEXT, '(Horz | Horizontal) ACCUM (Stab | Stabilier) ACCUM Trim ACCUM (Brk | Break)', 1) >= 0
    ORDER BY SCORE DESC
    The results doesnt look satisfactory. I have not used "near" operator as i dont know how to use it.
    Please help me as I am very much new to Oracle Text.
    -G

    Well, I'm not going to write the function for you, but we can at least talk through a general strategy.
    A lot depends on how you help your users on the front end -- for example, if they're searching a technical document, you may want to return results that aren't perfect matches but you do want to make sure the user picks 'mandatory' and 'useful' keywords in a way that lets you figure out which ones are really important. On the other hand, if you're google and have to handle queries like 'horizontal stabilizer trim brake' and 'were Pete and Jenny in the break room' then you run the risk of spending too much time looking for interesting words, almost doing a full-text search on the query trying to derive meaning.
    So I'm going to presume that you have some control over what/how the users generate their searches so that finding keywords isn't the issue.
    The plan will be to parse the query a bit to find the interesting words, clean them up, and weigh their importance, then use transformed data to build the query template to score various combinations.
    So here's some pseudocode for the function:
    function parse_query(pQueryWords in clob) returns clob as
    begin
        generate_token_list (); -- split the query into a set of individual tokens/words
        for each token in token_list
            if it's a mandatory word then accumtokenlist := accumtokenlist || ' ' || token ||'*10' -- weigh the presence of the token strongly
            if it's a useful word then accumtokenlist := accumtokenlist || ' ' || token ||'*5' -- domain-specific words are also important
            if it's a stopword or reserved word, then do not add it to the list
            if it's not on my lists, then accumtokenlist := accumtokenlist || ' ' || token
                                         and normaltokenlist := normaltokenlist ||' ' || token
        end;
        --so now, we have two lists, one for NEAR and one for ACCUM
        now build the guts of the template
            querytemplate := querytemplate || '<seq> || normaltokenlist || '</seq>';
            querytemplate := querytemplate || '<seq> || replace (accumtokenlist, ' ',' ACCUM ') || '</seq>';
            querytemplate := querytemplate || '<seq>$' || replace(normaltokenlist,' ','$') || '</seq>';
            querytemplate := querytemplate || '<seq>? || replace(replace(accumtokenlist,' ',' ?'),' ', ' accum ') || </seq>';  -- first fuzzy the words, then accum
            querytemplate := querytemplate || '<seq>? || replace(replace(normaltokenlist,' ',' ?'),' ', ' near ') || </seq>';  -- first fuzzy the words, then near
        return querytemplate
    end;So, with a 'cooked' query text that is template-friendly, all we need to do is apply a template that is aware of your inputs:
    query_Template_string := '
    <query>
       <textquery lang="ENGLISH" grammar="CONTEXT"> horizontal stabilizer*5 trim brake*10
         <progression> '
    || parse_query('horizontal stabilizer trim brake')  ||
    '     </progression>
       </textquery>
      <score datatype="INTEGER" algorithm="COUNT"/>'
    </query>So that's an example of one approach.

  • How to run a search query for a particular folder in KM related to portal

    Hi,
    Can any one tell me the steps for : how to run a search query for a particular folder in knowledge management related to portal.
    Answers will be rewarded.
    Thanks in advance.
    KN
    Edited by: KN on Mar 18, 2008 6:33 AM

    Ok u may not require a coding
    But u req configuration
    U should first make a search option set
    Link: [Search Option set|http://help.sap.com/saphelp_nw04/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm]
    Then u need 2 duplicate a KM Command by the name Search From here
    and customize it to include the Search Option that u have created
    Link: [Search from here|http://help.sap.com/saphelp_nw04/helpdata/en/2a/4ff640365d8566e10000000a1550b0/frameset.htm]
    Then in the layout add this command.
    Regards
    BP

  • Ultra Search query

    Question on what the syntax should be to perform a search query via Ultra Search revolving around 3 terms ("solaris","access control","buffer overflow").
    The search result should return documents which contain the words ("solaris" and "access control") OR the words ("solaris" and "buffer overflow").
    Currently can't even do ("solaris" and "access control"). When trying I get documents matching "solaris" | "access" | "control".
    Any advice appreciated.

    PS:
    you'll get documents only contains "solaris" too, but those should have very low score compare to the others,
    assuming you have documents containing the other terms.
    if you want to do (solaris and "access control") do
    solaris "access control"

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All,
    I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds.
    Here's a sample
    <syndication-feed>
              <name>RSSFeed</name>
              <search-query>cm_objectClassInstance=='Node' &amp;&amp; date == 'x'_</search-query>
              <search-type>pubmeta</search-type>
         </syndication-feed>
    I tried passing the parameter in the url but the feed doesn't read it. The only option i have is to manually put the value to get the content from the repository, which sucks...because the values can change any time. is there any way that I can avoid it
    Any help on this would be appreciated.
    Thanks,
    K

    James:
    Passing filters to an IR within the URL is described here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref989
    Varad

  • Transformation in combination with a search query

    Using DPS 6.3 I have merged an Active Directory and Domino Directory. This all seems to work fine. The only issue I still have is that for some reason the transformations are not applied when performing a search query. An example: In AD groups can be found by performing a search for the objectclass "group". In Domino the objectclass is called "dominoGroup". To make the objectclasses match I made a transformation that removes "domino" from the Domino objectclass. I expected that searching for the objectclass "group" would now result in both groups from AD and Domino. But this is not the case.
    Is there a solution for this?

    Sorry for the late response, but I have not been able to work on this issue for the last few weeks. But I appreciate when you can have a look. It's the first time I have ever worked with DPS. The space was insufficient to post the complete conf.ldif file. I have now taken out my configuration. When you need something else just let me know.
    dn: cn=DSP_DOMINO,cn=datasource pools
    cn: DSP_DOMINO
    dn: cn=DS_DOMINO,cn=DSP_DOMINO,cn=datasource pools
    ldapServer: cn=DS_DOMINO,cn=data sources
    cn: DS_DOMINO
    dn: cn=DSP_AD,cn=datasource pools
    cn: DSP_AD
    dn: cn=DS_AD,cn=DSP_AD,cn=datasource pools
    ldapServer: cn=DS_AD,cn=data sources
    cn: DS_AD
    dn: cn=DS_AD,cn=data sources
    clientCredentialsForwarding: noForwarding
    cn: DS_AD
    useTCPNoDelay: true
    enabled: true
    useV1ProxiedAuthControl: false
    readOnly: true
    dn: cn=DS_DOMINO,cn=data sources
    clientCredentialsForwarding: noForwarding
    cn: DS_DOMINO
    useTCPNoDelay: true
    enabled: true
    useV1ProxiedAuthControl: false
    readOnly: false
    dn: cn=root data view, cn=Data Views
    cn: root data view
    viewBase: ""
    dataSourcePool: defaultDataSourcePool
    viewExclusionBase: cn=proxy manager
    viewExclusionBase: dc=interaccess,dc=nl
    viewExclusionBase: ""
    enabled: true
    dn: cn=DV_INTERACCESS,cn=data views
    readOnly: true
    dataSourcePool: DSP_AD
    viewBase: dc=interaccess,dc=nl
    description: Inter Access - AD
    cn: DV_INTERACCESS
    viewExclusionBase: ou=domino,ou=inter access,dc=interaccess,dc=nl
    viewAlternateSearchBase: ""
    viewAlternateSearchBase: dc=nl
    dn: cn=DV_DOMINO,cn=data views
    readOnly: false
    dataSourcePool: DSP_DOMINO
    viewBase: ou=domino,ou=inter access,dc=interaccess,dc=nl
    cn: DV_DOMINO
    attributeMapping: streetaddress#officestreetaddress
    attributeMapping: assistant#secretary
    attributeMapping: company#companyname
    DNSyntaxAttribute: distinguishedname
    DNSyntaxAttribute: dominoaccessgroups
    DNSyntaxAttribute: creatorsname
    DNSyntaxAttribute: member
    DNSyntaxAttribute: modifiersname
    DNSyntaxAttribute: secretary
    dataSourceBase: o=hpwibm
    attributeRule: DV_DOMINO_mapping_add-attr_otherMobile
    attributeRule: DV_DOMINO_mapping_add-attr_distinguishedName
    attributeRule: DV_DOMINO_read_add-attr_displayName
    attributeRule: DV_DOMINO_read_attr-value-mapping_displayname
    attributeRule: DV_DOMINO_read_remove-attr-value_objectclass
    attributeRule: DV_DOMINO_mapping_attr-value-mapping_objectclass
    attributeRule: DV_DOMINO_read_attr-value-mapping_objectclass
    attributeRule: DV_DOMINO_mapping_remove-attr-value_objectclass
    viewAlternateSearchBase: dc=interaccess,dc=nl
    viewAlternateSearchBase: ou=inter access,dc=interaccess,dc=nl
    viewAlternateSearchBase: ""
    viewAlternateSearchBase: dc=nl
    dn: cn=DV_DOMINO_mapping_add-attr_otherMobile,cn=attribute rules
    model: mapping
    viewAttributeValue: ${mobile}
    attributeName: otherMobile
    transformation: add
    cn: DV_DOMINO_mapping_add-attr_otherMobile
    dn: cn=DV_DOMINO_mapping_add-attr_distinguishedName,cn=attribute rules
    model: mapping
    viewAttributeValue: ${dn}
    attributeName: distinguishedName
    transformation: add
    cn: DV_DOMINO_mapping_add-attr_distinguishedName
    dn: cn=DV_DOMINO_read_add-attr_displayName,cn=attribute rules
    model: virtual
    viewAttributeValue: \${cn}
    attributeName: displayName
    transformation: add
    cn: DV_DOMINO_read_add-attr_displayName
    dn: cn=DV_DOMINO_read_attr-value-mapping_displayname,cn=attribute rules
    model: virtual
    viewAttributeValue: ${cn}
    attributeName: displayname
    transformation: replace value
    internalAttributeValue: ${displayName}
    cn: DV_DOMINO_read_attr-value-mapping_displayname
    dn: cn=DV_DOMINO_read_remove-attr-value_objectclass,cn=attribute rules
    model: virtual
    attributeName: objectclass
    transformation: delete value
    internalAttributeValue: inetOrgPerson
    cn: DV_DOMINO_read_remove-attr-value_objectclass
    dn: cn=DV_DOMINO_mapping_attr-value-mapping_objectclass,cn=attribute rules
    model: mapping
    viewAttributeValue: user
    attributeName: objectclass
    transformation: replace value
    internalAttributeValue: dominoPerson
    cn: DV_DOMINO_mapping_attr-value-mapping_objectclass
    dn: cn=DV_DOMINO_read_attr-value-mapping_objectclass,cn=attribute rules
    model: mapping
    viewAttributeValue: group
    attributeName: objectclass
    transformation: replace value
    internalAttributeValue: dominoGroup
    cn: DV_DOMINO_read_attr-value-mapping_objectclass
    dn: cn=DV_DOMINO_mapping_remove-attr-value_objectclass,cn=attribute rules
    model: virtual
    attributeName: objectclass
    transformation: delete value
    internalAttributeValue: groupofnames
    cn: DV_DOMINO_mapping_remove-attr-value_objectclass
    dn: cn=CHND_INTERACCESS,cn=connection handlers
    dataViewPolicy: DATA_VIEW_LIST
    useDataViewAffinity: false
    enabled: true
    cn: CHND_INTERACCESS
    sslCriteria: false
    dataViewList: DV_INTERACCESS
    dataViewList: DV_DOMINO
    dn: cn=PL_REFERRALS,cn=policies
    searchMaxSizeLimit: -1
    searchFilterMinSubstring: -1
    cn: PL_REFERRALS
    referralPolicy: forward

  • "Your server is not configured properly or your search query has ..."

    Config info:
    v490, 20k+users, JES 2005Q1,
    118540-23
    118207-42
    115614-20
    Brief Description:
    When users select the Corporate Directory under the Address Book tab in CE and click the ALL button (or do a wildcard search) they get the following error:
    "Your server is not configured properly or your search query has
    exceeded the limit. Please check server configuration."
    Additional info:
    Additionally this error shows up when a user chooses a View: letter and clicks next for the following page, and additionally if they have the Corporate Directory set as their default address book in options.
    Logs:
    /sun1/dirserv/slapd-mail/logs/errors:
    [11/Oct/2005:10:44:21 -0500] - WARNING<20805> - Backend Database - conn=161557 op=34 msgId=169 - search is not indexed
    /sun1/dirserv/slapd-mail/logs/access:
    [11/Oct/2005:10:23:21 -0500] conn=161557 op=17 msgId=124 - SRCH base="o=ualr.edu,dc=mail,dc=ualr,dc=edu" scope=2
    filter="(&(&(cn=*)(|(objectClass=INETORGPERSON)(objectClass=GROUPOFUNIQUENAMES)))(objectClass=*))"
    attrs="objectClass"
    [11/Oct/2005:10:23:31 -0500] conn=161557 op=17 msgId=124 - RESULT err=0 tag=101 nentries=20540 etime=10 notes=U
    /var/sun1/comexp/logs/uwc.log:
    Oct 11, 2005 10:52:20 AM com.sun.uwc.abclient.ABInitFilter doFilter WARNING: Address Book session already set!!
    changes in /var/sun1/comexp/WEB-INF/config/corp-dir/db_config.properties
    lookthru_limit=30000
    I have a ticket, just wondering if anyone else has this problem...

    You'll be getting this in your case update (answer in response to the internal conversation we've been having about your issue)
    So if they really want to control wildcard searches then they should look in the "personalstore.properties" file for the domain (default: /var/opt/SUNWuwc/WEB-INF/domain/personalstore.properties) for the value of "db.idir.wildcardsearch". Its possible settings are documented in the comments. If they wish to disable all "*" and "*x*" searches (i.e. turn off the 'All' and selecting a letter options) they should set the value to at least 2.

  • Why is does the search query box collapse in  Acrobat CS4

    In the last few weeks or so, when  I try searching for text in a pdf document in Acrobat CS4  the usual search query box that is supposed to pop up is "collapsed" - see the attached diagram. (In css language it looks like a collpased dv tag) There is no place to enter text and a strange drop shadow effect emerges? Has anyone else experienced this problem? Have any suggestions about how to resolve it?
    Thanks
    John

    OK I solved my own problem by removing the acrobat preference file and restarting Acrobat. I should have thought of a corrupt preference file before I asked
    cheers
    john

  • Results web part showing results before search query is typed in search box

    2 part question
    I am creating a wiki site in which the home page has a search box web part, and a results web part.  I have the search box configured to return the results to the results web part.  I created a result source and changed the query on the results
    web part to use this results source.  I am getting results from the library I am trying to, but...
    1) The results web part is showing results when the page is loaded before any query is typed into the search bar.  Why is this and can it be configured to just be blank until a query is entered into the search bar?
    2) Is it possible to have 1 search box and 1 results part have 2 different scope choices?  ie, 1 scope for the wiki library and 1 for a document library?
    Thank you.

    So I have to have 2 different search result web parts to have 2 different scopes if I wish to have the search and results occur on the same page? Would I also have to have 2 search boxes?
    Also, I am trying to figure out this issue where results are being returned without anything being entered in the search box.  I have {searchterms?} in my query, and documentation suggests this to be the way to handle this issue, but I continue to get
    results shown in the results web part without even entering a search query.  Please assist.

  • Fromatted search Query

    Hi All,
               I need a formatted search query for the following requirement.
    My Requirement is I have a Userdefined Field "U_frdrp" and I have a dropdown for this field with the following values 
    ksr----
    1.3
    Gir----
    1.35
    Dpalli----
    1.3
    When I select Item which is related to Ksr Location, Then I want 1.3 value to be updated in my user defined field. Similarly when I select Item Related to GIr Location I wanted 1.35 value to be updated in my userdefined field. Similarly for all.
    Thankyou,
    Sree.

    Hi,
    Create New UDF, assign data type....
    now check mark"Set Valid Value for Field"
    ->check on new button
    -> add yr RATE on (1.3)  value side and Ksr on description side
    -> click again on new to add more value.
    I hope u gt
    Thanks
    Kevin
    Edited by: Kevin Shah on Sep 16, 2009 4:42 PM

  • Search query not able to find node under a specific site structure (eg. 2013/05)?

    Hi,
        We are saving our data on a node under year/month site structure, eg. (2013/05/node1) but when we search for the data using a query in a custom workflow., it does not fetch any results.The query being fired is something like :
       SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/content/hm/NewsroomSection/en/NewsRoom/NewsroomDetails/2013/05/node1]) .
       On trying to run this query directly in crxde, it shows no result. But when we change the site structure to 2013/5/node1, it is able to fetch results.
       I am not sure if the problem is because of the '0' digit in the month in site structure (2013/05).
       Please provide your input if any of you have come across something like this before ..
    Thanks
    Abhishek

    Hi Abhishek,
    In case of nodes with numbers, any node starting with 0, this 0 gets omitted in the search query.
    So, if your node name is like 02013 for year, when it searches it omits 0 and searches for 2013.
    In case you want to search for your node, your SQL2 query should be like below:
    SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(['/content/mysite/en/products/2013/05'])
    See screenshot for reference. This should return you the results.
    Hope this helps.
    I guess for more reference on SQL2 queries, you can refer to JCR 2.0 spec.
    http://www.day.com/specs/jcr/2.0/6_Query.html
    Also, you might want to look at the railroad diagrams and some examples from Jackrabbit's test cases:
    http://www.h2database.com/jcr/grammar.html
    http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/test/resources/or g/apache/jackrabbit/spi/commons/query/sql2/test.sql2.txt?view=markup
    Hope this helps.

Maybe you are looking for

  • Output condition delete history in a Purchase order

    Hi, I would like to know how best we can find the history or change record of output delted in Purchase order. Here is the detailed scenario. I have created a PO and it populated he message conditon in the PO. I went into the PO using ME22n and delet

  • How to create a text file from jsp?

    In JSP, what is the command to create a text file and dump a variable in it?

  • Reader X freezing and not saving a Live Cycle Acroform

    Here is the story: We created an Acroform template using Live Cycle Designer ES2 and loaded it to our system.  Users go into our web-based system and add data to certain pages there.  We then use iText to generate a PDF that mapstheir data into our t

  • Answer to issue w/ ipod shutting off with older docking station

    Since I have gotten a lot of help over the years using forums, it is now my turn to help others with the problem of the ipod 5g showing low battery error and then shutting off. The apple store could not help me, so I took a chance and purchased the s

  • ITunes won't start playing?

    I have loaded some songs into itunes and they won't start playing. Some are purchased from the store and some are uploaded from CD, so I don't think it is a problem with the songs. I click on the song and click play, but it just sits at zero. I've tr