Filter on Resource Type when searching

I am having a problem filtering on the resource type when searching.
I added "cm_resourcetype" to my predefined properties.
When doing an advanced search I would like to select the resource type from the predefined properties (listed as "type") and when I enter the following to find only documents that are Normal Documents
<a href="http://sap.com/xmlns/cm/framework/normal-resource-type">http://sap.com/xmlns/cm/framework/normal-resource-type</a>
I do not get any results.
I tried also using "Normal Document", "descrNormalDocument", and "normalrt" with no luck.  Anyone know how to do this?

Hi Eric,
I have managed to get this working to a limited extent. I followed the instructions in the guide "Using the KM Indexmanagement APIs for searching with TREX". Under the section "Conecting several query entry lists" it explains how to combine queries. This way I was able to use my original search term and then add additional query entries for document type.
The document type is achieved by adding search parameters for SearchParamConst.PARAM_CUSTOM_PROPS using a content type property. (To get the name, which you could also hard code, you can just instantiate the property with Property.createContentTypeProp() and then call getPropertyName() on the property).
Then, I just added (value='') after the property name but omitting the "application/" portion of the mime type. It still works by searching on the trailing portion of the mime type. The reason for omitting the "application/" portion is that you have to string together values using a forward slash. So you call something like:
Hashtable searchParams = new Hashtable();
searchParams.put(SearchParamConst.PARAM_CUSTOM_PROPS, "contenttype(value='vnd.ms-excel')");
Which will search for Excel documents. You then add this paramter to your query by calling setSearchAddProps() of the query builder.
My problem now is to build a complex connection of query entries to search for more than one document type so that the search is: search term AND (doc type 1 OR doc type 2 OR ... ).
Anyway, hope this helps (if that's even what you were looking for - it's what I was looking for
Cheers,
Martin

Similar Messages

  • How can I block / filter to protect kids when searching?

    When searching images (google or any) with kids for school projects we often get nude, crude, lewd, etc. - what settings can we adjust to keep that type (and other porno type things) out of the results?
    Thank you.
    using firefox 3.6

    Hi greensouthern,
    Firefox iteself doesn't have any filters for that, but you can configure Google to use safe search. Here is a video about how to do that:
    http://googlepublicpolicy.blogspot.com/2009/11/locking-safesearch.html

  • Naming Resource Types

    Hi,
    I'm creating some new resource types in KM. For the resource ID I've used simple names (for example "issue_list", "technical report",...).
    But now I see in the standards they have a kind of namespace like "http://sap.com/xmlns/cm/app/collaboration/" or http://sap.com/xmlns/cm/framework/"
    What is the use of this ? Should I better also make use of this ? Are there any naming conventions ?
    Regards,
    Igor

    Hi Igor,
    There is very good document to help you to understant it:
    Working with Metadata Properties in KM, you can download this document from this site.
    Each document is associated a resource type. Also groups of metadatas. When you apply a layout you can filter for resource type.
    When you use a command in your layout you can pass as parameter your resource type.
    You can define your screen depending your resouce type.
    As you see, resource type is an important concept. My advice is that you should read the document before mentioned by me.
    Patricio

  • When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • How to filter the file type and size when uploadind files into APEX

    Hi,
    I was wondering how I can do to validate the size of a file, before moving it to my table ? I'd like to filter the file type, but for this one, I think I can use regular expressions in a validation process.
    I don't know if there is a way to read the file size even before sending it into the temporary file table.
    Thank you
    Leinad

    Hello Leinad,
    AFAIK, you have to create an APEX validation (PL/SQL returns Boolean or Returns error text), which will query the file details from apex_flow_files table. Here you can get filetype and size etc.
    So just validate and if any validation fails, then delete the file from apex_flow_files and riase error message.
    Regards,
    Hari
    P.S. Please note that, if there are other apex validations on your page and if they fail, still apex will load the file into apex_flow_files table. So it's good idea to create a validation (PL/SQL) which will fire (condition) when inline validation errors occured. Make sure that this is the LAST validation on your page in sequence. And here you can write code to delete the file from apex_flow_files table.
    Edited by: Hari_639 on Sep 20, 2012 10:09 PM

  • When we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched item

    when we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched one

    Tried that. Also tried SUPERAntiSpyware, ccleaner, HitmanPro. Removed anything that was reported. Problem persists.
    Chrome is also affected. But couldn't find any alternative way of not having Ask.com loaded as did in Firefox.
    Internet Explorer was initially affected. After the Ask.com search engine is removed that problem appears to have gone away.
    12/9/2014
    Interestingly, yesterday afternoon the Chrome browner new tab no longer hijacked by Ask.com. The symptom was there in the morning and had gone away in the late afternoon. Nothing was done except a few days ago I blocked everything on that page. The problem with Firefox continue to persist I didn't do the same blocking on it. I am going to try the same and then use anti-spyware to clear away all cookies and see what happens.

  • When Resource Type switched, the properties lost.

    I have a Resource Type (say RT_A) that tie to a Property Structure (say PS_A) that have a custom Property Group (say PG_A) with a group of custom properties. Initially, I assigned a default Resource Type also has the PG_A, then I switched it to RT_A. After I switched it, the new PS_A pop out, but the all the custom properties in PG_A become empty (they are actually just display empty, as I verified the property values still there through RF Explorer).
    When I clicked "Save" on the new Property Struture, then the empty values override the old values. Now, I see all the property values become null when I checked from the RF Explorer.
    My question is:
    Why when I switch Resource Type (say RT_I - RT_A) of a document, the Properties in the same Property Group are not dispalyed even they are actually still exists?
    Thanks for advice.
    Kent

    Hi Kent,
    the technical reason for that is because the actual implementation makes no server round trip when you switch the resource types. The server round trip is done only when you initially open the details dialog and when you save the entries.
    In my opinion the missing possibility to switch between resource types (with reload of the property values) is an important missing feature (or gap) in the KM platform and I would strongly advise to open an OSS ticket for that.
    Hope this helps,
    Robert

  • When I type a search topic in yahoo - web search is in plain text - no images

    When i type a search topic into yahoo.com main search the results page loads in plain text, if I do it with the microsoft browser it is normal. Any ideas?

    Axeman1020 wrote:
    See the post by Linc Davis here:
    Unfortunately you picked the instructions for removing Genieo 1.0 and the 2.0 came out around the same time, so Linc has updated his instructions in more recent posts.  TheSafeMac reference I pointed to will take care of both.

  • I can't change my searchdistrubitor when I type and search in the adress field. How do I do that? Changing my distrubitor in the search field doesnt work for the adressfield.

    I can't change my standar searchdistubitor for the adressfield. And it doesn't matter if I change distubitor in the search field to the upper right.

    Change the default search engine in '''address/location/awesome''' bar:
    you must modify [http://kb.mozillazine.org/Keyword.URL keyword.url] in [http://kb.mozillazine.org/About:config about:config]
    type in the address bar''' about:config'''
    then press the button''' i'll be careful i promise'''
    then type in the bar '''keyword.URL'''
    then '''right-click''' on it, select '''modify''', type [http://search.yahoo.com/search?p= YAHOO] (or other...), click '''OK''',
    exit firefox and restart-it.
    or find other search engine in [http://kb.mozillazine.org/Keyword.URL Keyword.URL ]
    see also : [https://support.mozilla.org/en-US/kb/Location%20bar%20search Location bar search]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Associate WebDynpro application to Resource type

    Hi experts,
    I have created a WebDynpro application to create/edit XML documents, which are stored in portal KM folders. These documents have a custom Resource Type.
    I didn't use XML Form because it had too many limitations (static forms, only single-valued inputs...).
    These documents are indexed by TREX, and can be retrieved during a search. When a user clicks on a search result, I want the item to be displayed in my webdynpro application (for editing purpose), and not as XML file, or in HTML using XSLT transformation.
    Is this possible ? Do you know a workaround to that ?
    Thanks a lot
    Nicolas

    Dear Mr. Srivastava,
    thank you for the quick and helpful answer
    but my problem isn't solved yet.
    Regards,
    Henrik

  • Retrieve all values from project type when project type combo box is null

    Hi,
    We are facing a tight situation here. We have a scenario where we have 2 filter options.
    1) Department ID
    2) Project type
    When department ID is selected all the department IDs should be populated in the combo box and the project type combo box should be empty.
    Similarly, when project type is selected all the project types should be populated in the combo box and the department ID combo box should be empty.
    Then, when more than one value is selected from department ID box and all the values from project type must be retrieved from query level (as per business logic).
    How do we do this? Kindly help us with this situation.

    Basically my situation slightly different.
    I am trying to do a bulk insert on SQL Server table using prepared statement, during that time i am getting the exception. I am using JDBC-ODBC driver. However, if i do individual record insertion, it is working.
    Any idea about this type of problem ?
    Regards
    Ramesh

  • FI-CA document type when a print document is created

    Hello everybody,
    We have been searching events (e.g. 0061)/user-exit to change the FI-CA document type when a print document (based on our own logic) is created with transaction EASIBI without success. Maybe you have enhanced something in another project. Can you share you experiences?
    Thanks in advance.
    Fernando.

    We have enhanced event R999.

  • Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts.    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly i

    Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts. 
    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly in this view.
    It's always the second search that is problematic.
    I've tried typing over and all it seems to do is confine the search to the the entries that have come up for the previous search.
    I've tried to use the x to clear the previous entry and then type the next search, same problem.  The only way seems to be to move from "All Contacts" to "Groups".  Then the searched name appears and I can return to All Contacts to see full details.
    Surely three key press' are not the way it's supposed to work?
    FYI
    Processor  2.7 GHz Intel Core i7
    Memory  8 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 512 MB
    Software  Mac OS X Lion 10.7.3 (11D50d)
    Address book Version 6.1 (1083)
    MacBook Pro, Mac OS X (10.7.1), 8Mb RAM 2.7Ghz i7

    AddressBook experts are here:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion#/?tagSet=1386

  • When searching the calendar in list view, appointments erlier than a few years could not be found after search. en appointment from 1974 could not be found although it appears in the list.

    When searching the calendar in list view, en appointmet erlier than a few years could not be find although the appointmet is listed in the List wiew ???,
    An appointment from 1974 could not be found, in SEARCH MODE, although it appears in the calendar.

    Pardon me for a moment while I (politely) rant in your general direction...
    This type of response is not just unhelpful—it is the antithesis of helpful.
    This is a support forum. Its purpose is helping to resolve people's problems. Sometimes those problems are going to require long explanations or lots of information. That either comes out in the original post or over the course of several back-and-forth replies; the former produces long posts but takes less time overall than the latter.
    If you don't have the patience to read through a long post, then just move on. Posting a "too long, didn't read" comment adds nothing beneficial to anyone. All it does is reveal that the person who made that comment thinks it's important to tell everyone that their attention span is too short for anything longer than a tweet.
    Yes, my post was long. Had you read it, you might have understood why it's so long. I'm trying to provide information that people searching these forums about this problem might find helpful. I did this because when I searched for info on this problem, I found lots of people with a similar problem, but no answers that went beyond "restore from backup". Since that advice wasn't the solution for me, I decided that more information might prompt someone with more knowledge and access than I have to investigate. Since you couldn't be bothered to read it, you clearly aren't the kind of person whose attention I was hoping to catch.
    Certainly I could have made the post shorter, but I think putting it into a narrative like this makes it easier to follow and provides a context that a terse recitation of bare facts does not. If you disagree, that's your prerogative, but please don't waste everyone else's time by posting a comment just to say that you didn't read it.
    I find it appalling that someone who's able to reach Level 6 on these support forums would post a "tldr" comment. That does not reflect positively on you or these forums.
    End of rant.

  • The following error occured when searching for on-premises exchange server

    I look after a company where I installed a new DELL server last year, The server is running Windows Small Business Server 2011 which we installed. Exchange 2010 was installed as part of the Windows Small Business Server 2011 installation. At the time we
    did not configure Exchange because they use external POP accounts for email. Eventually they wanted to move over to Exchange
    When we created the user accounts using Windows SBS Console, it created a local mailbox for each user
    No problems - [email protected]
    Since late last year every time I create a new user within SBS Console, it errors creating the mailbox
    Add a user account and assign a user role
    Getting "Unexpected error occurred" when Setting up an e-mail account for user
    Looking at the error "Unexpected error occurred" & MessagingManagement "Unexpected error occured"
    The user account is created ok just no e-mail address is created for the user
    I never thought much about this at the time as we weren't using Exchange email accounts. I decided to have a look at this issue over weekend
    When I try to open Microsoft Exchange Management Console I'm getting "Initialization failed"
    The following error occurred when searching for the On-Premises Exchange server
    When I try to open Microsoft Exchange Management Shell, I get a similar error
    I've download & run EMTShooter which just identifies there is an error & gives me the same error
    I've installed & re-installed WinRM IIS Extensions
    I've checked all the settings in IIS, Default Web Site, PowerShell, Modules & Paths...
    Still cannot connect to Exchange
    I've trawled through the internet for two days checking & testing every solution but no luck
    I've checked every setting against another Windows SBS 2011 Server we've installed & works
    I cannot find a difference
    Can someone help me or point me in the right direction?
    Peter Ralphs

    Thanks for the reply Cara
    Here's the original error I was getting when opening Exchange Management Console
    Initialization failed
    The following error ocurred while searching for the on-premises Exchange server:
    [server.myd.local] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid.
    For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentVersion 'Version 14.1 (Build 218.15)
    I got similar error when trying to access the Exchange Management Shell
    VERBOSE: Connecting to SERVER.myd.local
    [server.myd.local] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid.
    For more information, see the about_Remote_Troubleshooting Help topic.
        + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [],                          
    PSRemotingTransportException
        + FullyQualifiedErrorId : PSSessionOpenFailed
    When I opened the Exchange Management Console this week, the error had changed slightly
    Initialization failed
    The following error ocurred while searching for the on-premises Exchange server:
    [server.myd.local] Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not include any other information about the cause of the failure. For more information,
    see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentVersion 'Version 14.1 (Build 218.15)
    I could only run Exbpa from a command prompt (obviously no access from Exchange Management Console)
    This is the result of the Health Check Scan
    Organization: First Organization
    Default Global Address List Changed
    The 'msExchQueryFilter' attribute of the default Global Address List 'Default Global Address List' has been changed. Default: '(Alias -ne $null -and (ObjectClass -eq 'user' -or ObjectClass -eq 'contact' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass
    -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group' -or ObjectClass - eq 'publicFolder'))'. Current: '((Alias -ne $null) -and (((ObjectClass -eq 'user') -or (ObjectClass -eq 'contact') -or (ObjectClass -eq 'msExchSystemMailbox') -or (ObjectClass
    -eq 'msExchDynamicDistributionList') -or (ObjectClass -eq 'group') -or (ObjectClass -eq 'publicFolder'))))'.
    Admin Group: Exchange Administrative Group (FYDIBOHF23SPDLT)
    The default public folder database is remote
    The default public folder database for mailbox database 'Mailbox Database' on server SERVER isn't local. Public folder database: CN=Public Folder Database 1529293969,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First
    Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=myd,DC=local.
    Server: SERVER
    Disk timeout changed
    Disk timeout on server SERVER.myd.local is not set at the default of 10 seconds. This is normal if third-party storage software is installed. Current timeout value is 160 seconds.
    Client RPC binding found
    The 'Rpc_Binding_Order' is set on server SERVER.myd.local. It is possible that either the Exchange or Outlook client is installed on the server. Current registry value: ncalrpc,ncacn_ip_tcp.
    One thing I've noticed from the start is that the error occurs when it is "searching" for the Exchange Server, it then goes on to name the server [server.myd.local] it knows it's there but cannot access it ?
    Another thing I've noticed is that it always refers to the "remote server" this server is Windows SBS 2011, it's the Domain Controller, DHCP Server, DNS Server & Exchange Server all in the same box
    I also noticed that the Health Check stated that "The default public folder database is remote"
    Has this something to do with it ?
    Regards
    Peter

Maybe you are looking for

  • Not able to start out of the box approval workflow programmatically

    We have a requirement to start an out of the box workflow from a .NET web service. We are using the StartWorfklow method: wfManager.StartWorkflow(item, association, association.AssociationData we are getting the below error message at the above line

  • Since adding Firefox 4 to my Windows Vista laptop, my scroll button no longer works in Firefox.

    Using a 2-year old Lenovo X61 thinkpad running Windows Vista, there is a scroll button between the left and right buttons. It still functions in Outlook, and it used to function in all iterations of Firefox 3. Since updating to Firefox 4 yesterday, n

  • Safari won't launch, can't send crash report

    hi all, i have a 2009 macbook pro running 10.5.8. for several days now safari crashes out while using it. when it does that, i have to force quit the program and relaunch. very often, the browser won't relaunch at all. if i leave it alone for a while

  • ODI not reading XML file

    Hi All, Im working on implementing Oracle PIP with ODI. Im not able to access an XML file within ODI. The Physical architecture is set to the correct directory, filename etc. It was working fine before until recently we restarted the agent & re-encod

  • Downloading Safari .. "remotely"

    My daughter has a Mac Mini (that I, typically, bought just hours before the Intel change was announced) and wants to download the latest Safari version. On her dial-up line, it would take an amount of time I can't even comprehend. Would it be possibl