TREX/ search in ABAP

Dear sirs, I need your expertize.
I was asked to provide a solution where I need to work with the TREX search from ABAP.
I would like to know if anybody here has any experience with this and can guide me to some documentation sources or can give any direct advise how to start with the topic.
For example: there are demo/testing programs for all various modules/ technologies etc. in the ERP, does anybody know if there is something like that for the TREX? Like for ALV, WD, Adobe forms... something where I can see some basics about how this works.
Thank you for your time and effort,
have a nice day, everybody,
regards Otto

Useful information sources found:
http://help.sap.com/SAPHELP_NW70/helpdata/EN/95/92bd4244e6b611e10000000a155106/frameset.htm
/people/thilo.brandt/blog/2007/08/27/getting-started-with-the-km-web-service-api
/thread/42786 [original link is broken]
the direct TREX APIs are not released for project development. The JAVA API is, of course, technically accessible, but SAP does not support project developments against it. It is an API for internal use (e.g. KM <-> TREX) only.
As the direct TREX APIs are not planned to be release and will remain reserved for SAP solution <-> TREX communication only (e.g. KM to TREX, BI to TREX, etc.), it does not matter how much delta there is. Sorry...
Business Object Search with Search Engine Service (SES)  
The SAP NetWeaver Search Engine Service (SES) provides a search and indexing framework that enables users to search for business objects (structured data) using the search engine technology of Search and Classification (TREX), including full text search and fuzzy search. SES is part of the SAP Basis component NetWeaver Application Server (AS) ABAP.
http://help.sap.com/SAPHELP_NW70/helpdata/EN/95/92bd4244e6b611e10000000a155106/frameset.htm
Thank you, Otto

Similar Messages

  • File name to be considered while Trex Search in CV04N,

    Dear Sap Gurus,
    I know TREX can search and list the documents using any Word or Characters inside the original file, but i have a requirement to search the document by there File Names,i tried giving File names in CV04N Trex search window, but it is not giving any results for me,
    how can i make the trex search consider the file names also while searching in CV04N,
    In SAP DMS is there a standard search functionality to search the documents by there File name?
    Awaiting response
    Thanks and regards
    Kumar

    Thanks for your response,
    i know we can search the documents through Classification or description details using CV04N, but
    while searching any document the user wishes to fill up the details only at one field ie... the Trex search window in the CV04N screen, and he will not be interested in filling  the values at the classification TAB and the description Tabs,
    we need a single point of search through Trex search Window in CV04N, ie... when this Trex search field is filled appropriately,( like the classification value, Long text value,) 
    this values should search the documents with this Classification or Long text values in DIR and display the results,
    i could not succeed in getting the trex search working with this values, is there any thing missing from DMS config????
    FYI,
    we have Portal Document search through DMS through DMS Connector, and in this Trex Search we could find the DMS documents using the file Names as well, but strangely  the same thing is not possible through CV04N trex Search,
    Thanks and regards
    kumar

  • TREX search Functionality in E recruitment

    Hi All,
    I need help to configure TREX search functionality in E recruitment .
    Does  anyone  have any documentation or steps to configure it.
    It would be great if you could pas me on the steps to configure TREX in E recruitment.
    AS far as I know we have to do some settings in search profile and search template but what exactly has to go in these img steps I dont know .
    Any help would be greatly appreciated.
    Thanks and best regards
    Rajeev chhabra
    [email protected]

    Hi Rajeev,
    please see the following SAP Notes for details:
    815866 Points during TREX installation relevant for E-Recruiting
    568853 Supported TREX versions in SAP E-Recruiting
    817145 Composite SAP note/overview: TREX troubleshooting
    Best regards,
    Ralph

  • TREX search error

    We are getting an intermittent problem when we do a search from our KM iview.  When we put in a search string it for the most part comes back with the appropriate data, but every once in a while we get the following error either as an informational text at the top of the iview or as stack dump error.
    Error during search occurred - com.sapportals.wcm.WcmException: Index does not exist;index=ourindex (Errorcode 2007)
    Does anybody have any information on a fix for this?

    Hi Aaron
    Indexes are created in ECC or any other SAP for trex search and sometimes indexes may be have to be rebuild, have you checked this particular index shown in the error message 'ourindex'
    Bhudev

  • TREX search failure for some pdf documents

    Hi,
    TREX search is not getting correct result for some pdf documents. It's not able read the content of some pdf documents. When we search with file name the search result is correct but we are getting "No document excerpt available" message in search result for this file name.
    Let me know where might be the problem for those pdf docs.
    Thanks

    Hi Tatayya Marni,
    1. Can you tell me whether the pdf documents are opening when you are selecting them?
    2. This error comes mostly when you havent included this .extn file (.pdf in your case) to the portal.
    3. Check whether this extn is their in your portal if not make it inclueded and then try making a new index and one new data source where your pdf is residing. Try for one Test.
    You have to include the file extns in System Confi....UI Interface...
    Hope this will resolve your issue.
    Regards
    Piyush Bhurangi

  • DMS-TREX Search Type

    Under DMS Search option CV04n, SAP has provided TEXT Search with TREX search where-in we get different search type with AND & OR options
    Can some expert explain me what is exactly meaning of each search type...?
    If you any document kindly forward that to
    [email protected]
    thanks in advance
    rgds
    Kamal

    hi,
    the AND and OR means that if you pass more than 1 word
    as the search text and AND or OR operation on that will be done
    based on what is passed.
    i have mailed you the document
    for details refer to the thread....
    /message/4559961#4559961 [original link is broken]
    thanks
    Aravinda
    reward points in helpful

  • Trex Search for Archive Link OAAD or OAWD Documents,

    HI Sap Gurus,
    Can Trex Search in the originals of documents which are stored by OAAD or OAWD Transactions,
    if so how to activate the Trex Original document Search for Documents stored through OAAD or OAWD,
    Thanks and regards
    J Sari,

    Dear Athol,
    We are using SAP Content server to store our Documents from GOS and also the same Content server is used  for maintaining our Documents through DMS also,
    so as a standard, Trex cannot search documents maintained in content server by GOS methord and it can only search those documents which are maintained by DMS CV01N method,
    pls suggest how to proceed for the development to allow Trex to search all the documents in Content server, how big is the development, is there any SAP suggested solution to be followed,
    Thanks and Regards
    J sari

  • TREX search KM BI Repository

    TREx 7.1
    Portal 7.0
    I have created and been using a KM BI Repository. This repository contains txt documents that are currently being accessed thru a KM Document IVIEW. I have recently implmented  TREX 7.1 and I am having trouble finding anything in my repository using the search UI.
    I have added indexes and taxonomies that point to the data source /bi_documents.
    The search UI is available but finds nothing.
    The TREX search can find Portal Documents.
    I have also added to the Index Management Service the  "Repository Manager" that is for my BI Repository.
    Component Monitor is good and all green
    TREX Monitor good.
    My searchs still return nothing from my KM BI Repository.
    I have researched and followed numerous documentation on repositories.
    Any help or configuration document on KM BI Repositories would be appreciated.
    Thank you,
    sarah

    Thanks for the input Frank,
    I am using the standar crawler and it appears that the indexes are not being built due to a crawler error.
    Preprocessor.cpp(01165) :     HTTPHEAD failed for URL https://sbserver.sap.state.edu:50001/irj/go/km/docs/bi_documents/InfoProviderData/%23BP_M001/1413120000%202010%20AM.txt :
    Errorcode -8001 , Message   Reader::connect failed, url=https://sbserver.sap.state.edu:50001/irj/go/km/docs/bi_documents/InfoProviderData/%23BP_M001/1413120000%202010%20AM.txt
    Preprocessor.cpp(03980) :     HANDLE: DISPATCH - Processing Document with key 'https://sbserver.sap.state.edu:50001/irj/go/km/docs/bi_documents/InfoProviderData/%23BP_M001/1413120000%202010%20AM.txt' failed, returning PREPROCESSOR_ACTIVITY_ERROR (Code 16001)
    Any help on this would be appreciated.
    thank you,
    sarah

  • TREX Search on attachments in CRM 7.0

    Hi ,
    Is the TREX search on the attachments to Service orders,Activities.etc  in CRM7.0 a standard functionality? Do we have to do any enhancements for enabling the TREX search on attachments to Service orders etc..in CRM 7.0

    Hi,
    I guess this is not only in CRM 7.0, this should be possible in very old CRM releases already.
    The extra step is in
    spro->CRM->Enterprise Intelligence->Software Agent Framework->Name and Configure Knowledge Base
    the flag: Compile URL Instead of Text
    should be turned on.
    Hongyan

  • Where is SDN search in ABAP forum?

    I could not find search in ABAP sdn forum.
    Thanks

    I guess during downtime, it does not show, if [this|SDN XI/PI Forum search; could be believed.
    pk
    Edited by: prashanth kishan on Sep 9, 2008 6:46 PM

  • Use of KM services and TREX Search Engine From share point portal

    Hi All,
    We would like to  Use of KM services and TREX Search Engine From share point portal.
    For this purpose we interoperability between windows sharepoint and SAP Portal.
    Please provide necessary documents or suggestions for interoperability for above requirement.
    mail id : <b>[email protected]</b>
    Thanks in advance
    Regards
    Swarna B

    Hi,
    See this this links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e891378-0601-0010-5386-a3387f1b161b
    Regards,
    Senthil K.

  • TREX Search Result Layout: Can you change it?

    Hi,
    Is it possible to have different flavors for the TREX Search Result Layout?
    Ideally would be through the use of parameters in the typical TREX URL.  I know that "Navigation.xml" file is hard-coded.....
    Thanks.
    Dick

    Hi Thilo,
    Thanks.
    But I want to use my new LayoutSet using the URL-based interface to TREX:
    https://xxxx.xxxx.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.service?startpage=searchpage&configfilename=navigation.xml&resourcelisttype=com.sapportals.wcm.searchresultlist&searchtype=ctrlpers&selectedsearchin=from_here&selectedsearchfromhere=/room_extensions/cm_stores/pm_storage/workspaces/d4919b6d-ff00-0010-439b-9a59dec17c56&querystring=dog&searchvisible=false&showoptions=false&allowedsortprops=false&selectedsearchaction=fuzzy&selectedmatchesperpage=5&enablesearchsorting=false.
    Dick

  • TREX search in Content Server

    Hey
    I have a problem making TREX search for documents in my content server. I have made some Content Repositories where i want to perform my search.
    What I have done so far, is to make a CM Repository for the Content Repository with Persistence Mode = DB and the Repository ID in Database = The repository i want to use in Content Server.
    Then I have added this CM Repository to a index and restarted the servlet engine. When i search for the documents, I get no hits. I know there is nothing wrong with my TREX, cause i can search on File System Repositories.
    Have i missed anything? The Content Repository is up and running, and i get successsfully on every test.
    Please hit me back!
    Best Regards
    Kristoffer Engh

    Hi,
    Creating an Index
    http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm
    Before doing that you should check TREX Server Status:
    System Administration->System Configuration->KM->Index Administration->Related links->TREX Monitor
    If the status is ok, then create the index, assign data source (point your repository), define kind of service (search, search and classification, classification) and define scheduler.
    Then in Index Monitoring you can check status of the index.
    Also, in TREX Monitor you can display Queves and check status of the documents.
    Patricio

  • Sending query to third party portal from TREX Search Engine

    HI Experts,
    we need to implement normal search option in SAP portal.
    when we search any thing from portal ,
    It has to search in EP & KM and also it has to search
    windows sharepoint portal and bring the data back to SAP Portal.
    For this purpose one solution is
    1) implementing  enterpise search,
       but my client dont want to go for enterprise search(federated search).
    2) The other way
    Sending query to third party portal from TREX Search Engine
    In this way what i want is ,
    how TREX can send query to third party portal SEARCH ENGINE
    (in my case share point portal search ENGINE).
    There is no problem to search in EP & KM becuse it is default.
    To search in Micro soft Share point portal,
    TREX should pass the query to share point portal search ENGINE.
    Is there any API TO send a query to third party portal like sharepoint?
    I searched in SDN and Other sites also but i am not getting exactly what I require.
    If any one has ideas or implemented already please guide me.
    My client require searching option like this,
    we need to provide drop down box in SAP Portal with 3 options like
    1) search in Share point portal
    2) search in SAP EP & KM
    3) Search in both the portals
    please provide any code samples in case if you have.
    please help me , its urgent
    Thanks in advance.
    Regards
    Bala

    Hi Bala,
    please check the information on the KM IMS (Index Management Service) in KMC's developer guide. A connection to a 3rd party search is done from KM, then calling TREX and XY in parallel, not serially from TREX.
    Here's a paper describing this for an older KM release:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5e514b57-0701-0010-3796-deb3636835fa
    Regards, Karsten

  • Trex search function in WebDynpro application

    We fail to run trex search function in a webdynpro application,
    in debugging, when it reach the method:
    search.seach(), we caught NullPointerException(instance "search" is not null!), we draw out the trex search code from the wd app, found it could works well, no exceptions occur.
    so do you know any additional configuration must be done before the search function could be used in a wd app?
    e.g. specify name server address in j2ee engine adm gui?
    I want to try this too, but I could not start the "Trex Service" in adm gui,
    following exception message got:
    Start service TREX Service
    java.rmi.RemoteException: Could not start service trex.service on cluster ID 9281950; nested exception is:
         com.sap.engine.frame.ServiceException: <--Localization failed: ResourceBundle='com.sap.engine.frame.KernelResourceBundle', ID='Service trex.service error. Nested exception is: java.lang.NullPointerException
         at com.sapportals.trex.core.TrexConfigManager.<init>(TrexConfigManager.java:175)
         at com.sapportals.trex.core.TrexConfigManager.internalGetInstance(TrexConfigManager.java:224)
         at com.sapportals.trex.core.TrexConfigManager.getInstance(TrexConfigManager.java:231)
         at com.sapportals.trex.core.TrexFactory.getTrexConfigManager(TrexFactory.java:100)
         at com.sap.trex.service.TrexService.setServiceProperties(TrexService.java:54)
         at com.sap.trex.service.TrexService.start(TrexService.java:28)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:189)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:140)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:72)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:126)
    ', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Service trex.service error. Nested exception is: java.lang.NullPointerException
         at com.sapportals.trex.core.TrexConfigManager.<init>(TrexConfigManager.java:175)
         at com.sapportals.trex.core.TrexConfigManager.internalGetInstance(TrexConfigManager.java:224)
         at com.sapportals.trex.core.TrexConfigManager.getInstance(TrexConfigManager.java:231)
         at com.sapportals.trex.core.TrexFactory.getTrexConfigManager(TrexFactory.java:100)
         at com.sap.trex.service.TrexService.setServiceProperties(TrexService.java:54)
         at com.sap.trex.service.TrexService.start(TrexService.java:28)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:189)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:140)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:60)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:72)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:126)
    don't know what happened to this service

    Problem, he had a trexjavaclient.properties below his WebAS path. From WebAS630 TREX config has to be done inside Visual Administrator and not with any old (in this case wrong) trexjavaclient.properties.
    After removing this file. TREX service started normally.

Maybe you are looking for