KM TREX api
To all -
is it possible to write a java program that will
perform a search against TREX indexes
i already have the 3rd party search application
working (Oracle Collaboration Suite searching from
inside TREX)
but was wondering if some java program could search
against native KM TREX indexes
Hi Dennis,
a search for "Trex API" on the forum will deliver you these helpful results (among others):
TREX API
Integrate TREX into custom web applications
Connecting to TREX without KM
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
Similar Messages
-
Release date for new TREX features (esp. guided nav, thesauri/topic maps
In a SAP presentation on TREX, the outlook for future improvements listed the following items :
- combine QBT and EBT
- Thesauri and XML Topic Maps ***
- Taxonomy Import
- Guided Navigation ***
- Additional languages
- Additional Formats
I am especially interested in the items annotated with ***
Is there any information available when these feature will become available.
Will they be part of one of the next Netweaver 2004 stack levels or are these features planned only for the next Netweaver release (2005 or later)
In addition there has been the announcement of TREX Enterprise Search which should allow searching across both structured and unstructured data sources. Any news on that ?
Thanks in advance for your information
Message was edited by: Theo Paesen
Message was edited by: Theo PaesenHi Theo,
in general, the features you list are TREX features and have hopefully been presented as such. Features of TREX are not necessarily fetaures of KM. Many SAP solutions use TREX in quite a few different ways. Some for document search (such as KM, PLM DMS and more) some for accelerated table data scans (such as BI, CRM and more).
Thus, you do not find all TREX features being used at the same time in the same solutiuon. And, to anticipate that question, sorry, the direct TREX APIs are still not public.
<b>Point by point:</b>
<b>- combine QBT and EBT</b>
Available in TREX engine
Planned for KM (no date)
<b>- Thesauri and XML Topic Maps</b>
XTM available through TREX Python Extensions
No plan for KM
More info under:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to enable semantic search or search for synonyms in trex.pdf
<b>- Taxonomy Import</b>
Preliminary workaround available in KM
Full-featured with KM Transport in SPS15
<b>- Guided Navigation</b>
Available in TREX engine
(very simple example at http://help.sap.com "narrow by info class")
Different plans in different solutions, KM not before 2006
<b>- Additional languages</b>
Happening constantly, coming up:
Slovakian, Slovenian, Catalan, Croatian
(That is for TREX engine linguistics. Not necessarily all UIs translated.)
<b>- Additional Formats</b>
Happening constantly, coming up:
HWP2 Hangul 2002 (text only)
ICH new support for Ichitaro 13 and 2004
JBG2 new support for JBIG2 files embedded in PDF files
MIME Mime encoded mail messages
MPP new support for Project 2003 (text only)
PDF new support for JBIG2 files,
PP97 new support for PowerPoint 2004 and v.X for Mac
QP9 new support for Quattro Pro version 12
SHW3 new support for Presentations version 12
SO6 new support for paragraph- and character-level attributes
VCRD new support for vCalendar
VISO new support for Visio 2003
W97 new support for Word 2004 and v.X for Mac
WP6 new support for Word Perfect version 12
XL5 new support for Excel 2004 and v.X for Mac
<b>Enterprise Search...</b>
...is not a TREX feature, technically speaking.
...is a meta search framework.
...will connect to any solution providing a search functionality.
...will connect to as well TREX-using is completely non-SAP solutions.
...will use e.g. KM, BI and MDM as some of its default sources.
...will ship in 2006.
Hope that clarifies,
Karsten -
Use TREX Search outside portal
Hi,
Our situation:
1.We have our intranet indexed with Autonomy search engine;
2.We have TREX installed and we have SAP EP7.0
3.We have our intranet also indexed by TREX in our SAP portal (using Web Repository in KM).
Now we would like to replace Autonomy intranet search with TREX. This means that the search field on the intranet page should contact TREX for a search instead of Autonomy.
How can we achieve that?
I have found documents and blogs about TREX API. I know that TREX Java client communicates with TREX server over TCP/IP and that they exchange XML files with the search request and results.
Maybe this would be possible if a TREX java client was available outside portal, but I haven't found it until now.
Kind Regards
Edmond PaulussenHi,
This is the URL I get before I click the search button:
http://xxxxxxxxxx/irj/go/km/basicsearch?SearchType=ctrlpers&SelectedSearchIn=FROM_HERE&SelectedSearchFolder=/intranet&SelectedSearchFromHere=/intranet&StartUri=/intranet
This is the URL from the search results:
http://xxxxxxxxxx/irj/go/km/prteventname/HtmlbEvent/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2feu_role!2fcom.sap.km.home_ws!2fcom.sap.km.hidden!2fcom.sap.km.urlaccess!2fcom.sap.km.basicsearch?SearchType=ctrlpers&SelectedSearchIn=FROM_HERE&SelectedSearchFolder=/intranet&SelectedSearchFromHere=/intranet&StartUri=/intranet
However, I do not see the query string. Do I miss something? Has this anything to do with, for instance, the configuration of the URL generator service?
Another question: the URL contains the name of the portal (xxxxxxxxxx). Should this be replaced by the name of TREX server, when submitting search to TREX outside portal?
Regards
Edmond -
Doc/metadata search not using TREX - max files to search?
Hi,
We are creating WebDynPros searching a CM repository for documents with certain values on metadata properties. I know this is kind of "brute force" instead of using TREX classification.
Is there some way of saying how many documents in a folder structure can be searched in 2 seconds? Say we are using dual 2.8GHz CPU and 8 GB RAM in the server. Using KMC6.0.9.0.0.
I am also interested in knowing more about TREX APIs. I see they have not provided an official API - is there an unofficial with some guides?
All feedback is appreciated.
Message was edited by: Bjorn BjornstadHi Bjorn,
> Is there some way of saying how many documents in a
> folder structure can be searched in 2 seconds?
Mainly, this will depend on your DB. I would suggest just to measure some information retrieval, that's done quite fast and will return far more exact values than any estimation.
> knowing more about TREX APIs. I see they have not
> provided an official API - is there an unofficial with
> some guides?
There is no offical nor any unofficial - as far as I know - API doc for direct TREX access. But what is documented is the indirect access via KM API, see for example https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/using the km indexmanagement apis for searching with trex.article
Hope it helps
Detlev -
TREX and ABAP-Client with SAP Web AS 6.40
Hi!
We want to use the TREX in order to enhance the performance of our own business object searches within our ABAP engine. Therefore I've heard that from ABAP we can use the TREX to search for business objects residing in SAP ABAP stack tables.
Currently we are working with ECC500 and SAP Web AS 6.40.
Has anyone experiences in this area?
Are there any How-To-Guides or s.th. like that?
What is the Software Level prerequisite of SAP Web AS 6.40 Release/Support Package? Or do I need SAP Web AS 7.00?
Thanx for any hints and tips!
By the way: Posted this question in the ABAP forum and got exactly zero replies.
Regards,
VolkerHi Volker,
it would be better to upgrade to WAS 7.00.
There you could use the search engine service for business objects that was delivered with SAP NetWeaver 2004s.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a751a1ec-0a01-0010-f0ba-89e4c5cd0261
This would be preferrable, as direct access to the TREX APIs is not officially supported. SES gives you all the methods you need for indexing and searching on ERP objects.
Regards, Karsten -
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 OttoUseful 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 -
Hello,
We are implementing KM and TREX in it in owr company, but also would like to have another self build application that will connect to trex and run searches getting results from it.
Can we do this ? with KM jars/XML documents/web services/ etc... (I'm asking this as I saw in earlier posts that the TREX API is not released)
also we need TREX to index an Oracle database, it that possible ? if it is, where can I find documentation on how to do this ?
Thank you,
Carmit.Hi Carmit,
who does not recommend it? In fact, your TREX server is bound to your portal, as you said. If TREX relies on CM (or vice versa), it does not really matter if you are bound to TREX directly or indirectly. Of course, you could argue that TREX does not depend on CM, but if the playing together between your CM and TREX is an architectural decision, than in fact it <i>does not matter</i>.
The Java Client is just the CM part of accessing TREX, see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/quickly access data and documents using the sap trex search engine.pdf
So I wonder who does not recommend going this way? At least, SAP does...
Also see TREX API
Hope it helps
Detlev -
TREX Search using Standalone Java code
Hi Expert,
I am new to TREX and KM, so please help me in this query.
I want a <b>standalone JAVA program</b> to call the TREX API's and do the search. Now here when I searched this forum I got to know that TREX APIs as such can't be used directly.
So please suggest a work around for this. If anyone have any code samples then please let me know.
Also I have read something about a <b>Java Client</b> through which we can da a TREX search. From where can I get this code/page.
Thanks & Regards
SurajHi,
Have you read this blog ?
Using the KM Indexmanagement APIs for searching with TREX
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9237e490-0201-0010-f3a1-9a322ccbd8b1
Patricio. -
How to display a word document in KM as html format
Hi
I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
Requirement is that i need to provide an option called "HTML Version" to show this word document in html.
Thanks
Rudradev.Hi E. van der Palen ,
I did it using TREX API
Thanks & Regards
Rudra -
HI Experts,
I want this file while implementing TREX API. where can i find this?
if any one has please send it to me my mail id [email protected]
com.sapportals.wcm.service.indexmanagement.retrieval.search
need it urgent
Regards
Balahi...
hi you can get this in below server location::
D:\usr\sap\JE\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.km.cm.service\lib\ <b>km.shared.service.indexmanagement_api.jar</b>
download this jar... this jar has ur required class file(<b>com.sapportals.wcm.service.indexmanagement.retrieval.search</b>)..
it may help u...
regards,
Chinnadurai.R
[Points r welcome] -
Hello,
we have installed a Trex 6.2 and want to use it as standalone searchengine for our website.
How can i crawl over our website and use the Trex in the mentioned way?
Thanks for hints an help,
AndréHello Andre,
actually, there is no "TREX 6.2".
I assume, we are talking about TREX 6.1 with whichever SP.
On the other hand, that does not influence the answer to the question:
You can integrate your Website into KM via the Web Repository Manager and then index and search its contents through KM.
The TREX engine itself does not contain any crawlers. Crawlers, in the KM secnario, are basically part of the repository framework (or the CM portion of KM).
TREX use as a stand-alone engine is not supported in the way that I understand here. TREX may only be called through other SAP solutions/components.
Please see posts like the following for further details:
Re: TREX API
Can the TREX be used with non-SAP applications?
Integrate TREX into custom web applications
Regards,
Karsten -
Trex Result in the ABAP API - how to get the context
Hi all
I have an ABAP application in which I would like to know and display the context of the result like on the sdn.
E.g. a search for Trex could look like:
"...configure Trex is done by..."
- showing bold text where the search criteria appears.
Is there a function module able to provide this information? (e.g. SRET_INDEX_STORAGE_SEARCHING?)
Or is there another functionality available in the ABAP-context?
All ideas are more than welcome
Thanks in advance
Peter MichaelHi Helmut and Peter,
there is a FM -> TREX_EXT_SEARCH_DOCUMENTS which will return exactly what you are looking for.
You pass it the index, etc AND the query string (eg."Trex") as VALUE1 in the structure TREXS_QUERY_ENTRY.
It will return a list of type TREXT_RESULT_DOCS. The CONTENT field is where the text was found as a string.
Regards,
Robin -
To Implement TREX functionality in web dynpro java application in portal
Hello Experts,
We have a requirement in which the client want to search with the help of TREX in webdynpro for java application. Can you please help how we can connect webdynpro for java with TREX.
Thanks and Regards,
VivekHi Robin,
I have connected the KM with webdynpro java application with the help of following url.
Knowledge Management and TREX Functionalities through WebDynpro using KM index management APIs
Still not getting any data returned from the KM. What should i do next.
Thanks and Regards,
Vivek -
Welcome to the Azure App Service API Apps Preview Forum!
Welcome to the forum! This forum is for support of our customers who are using API Apps. Feel free to post any questions you have related to API Apps.
The Azure App Service API Apps Team
Jim Cheshire | MicrosoftHey Mikael!
I actually was struggling through pretty much the same things at the same time that you were.
The EventTriggered extension is actually in the Microsoft.Azure.AppService.ApiApps.Service namespace, so without a using directive for that it will not be happy.
I created a library to help with the metadata generation required for Triggers, and did a write-up on exactly what it takes to create both a polling and push trigger (with a few more samples) here: https://github.com/nihaue/TRex#building-a-polling-trigger-api-app
Hopefully having that combined with
the official docs, and also
Sameer's sample can get you on the right track.
Hope that helps! -
SAP ISA R/3 Edition problem with TREX
Hi!
We are migration our Internet Sales (R/3 Edition) 4.0 with SAP J2EE Engine 6.20 to SAP J2EE Engine 6.40.
Weve already migrate your Java Basket data. And weve installed TREX 6.1
for catalogue replication and weve created a WEB SITE in IIS.
Weve created a B2B scenario and weve configured xcm for: b2b, Shopadmin
and trexr3.
Apparently TREX is working fine... I can create and replicate catalogs, view the catalogs within TREX, etc. But I'm getting the following error when I try to see the content of catalog within http://10.125.25.57:50100/trexr3/b2x/admin/catalog.do.
Exception from the PCAT API: Index has not been assigned to this
IndexServer;location=sapisaqld01:30203,index=index_id1204052895687pindex(Errorcode 2004) Retrieval of trex index failed!
I've just updated TREX 6.1 to SP33 and the problem persists.
We can find the following messages within TREXindexserverAlert.trc:
[01176] 2008-02-29 11:55:46.812 e indexserver TREXIndexServer.cpp(00632)
: ERROR: not assigned to index: 'index_id1204053610211pindex', function:'showIndex'
and when we try to see the catalog information within
http://10.125.25.57:50100/trexr3/b2x/admin/init.do
we get the message:
Exception from the PCAT API: Index has not been assigned to this
IndexServer;location=sapisaqld01:30203,index=index_id1204052895687pindex(Errorcode
2004) Retrieval of trex index failed!
Any hints?
Cheers,Hi Dick,
Guess how I solve this problem?
Well.... I've reinstalled SAP TREX 6.1 SP33 and started from scratch.
Thanks
FF
Maybe you are looking for
-
Error while commit is performing
Hi I am using jdev11.1.1.5.0 I am getting following error while commit is performing... java.sql.SQLException: ORA-01086: savepoint 'BO_SP' never established at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457) at oracle.jdbc.dr
-
No inquiry items and project assignment to sales order
Hi Friends? I am using DP81 to create sales pricing but getting error message when entering project number that No inquiry item exist for project There are no inquiry items for project A1 Message no. VPK1111 Diagnosis A project-assigned inquiry is a
-
I was charged money to my iTunes account and I didn't purchase anything and now my account is frozen how do I in freeze my account without paying for something I didn't purchase
-
Fiori - Approval for Timesheet & Leave Request
Hello Friends, I am currently working on SAP Fiori Timesheet & Leave request approval. The application is working fine and going to manager for approval. I have a concern here, the approval to manager happens only if I maintain relationship "A012" Ma
-
Mail freezing -- unable to open any messages
Hello - I've normally been running OSX 10.3.3. This system has been totally stable. I also had OSX10.3.8 installed on a second internal hard drive for testing purposes. This afternoon, I upgraded the 10.3.8 system to 10.3.9 using the combo updater. A