SAF search using TREX

Hello,
I need some code help to search for multiple attributes making use of the SAF framework in combination with TREX
example: I want to do a search like this
attribute 1 `Description` = Robotarm AND
attibute 2 `Problem` = blocked
I can search only on one attribute at a time.
I use
cl_crm_saf_se_trex_abap
if_crm_saf_se_genil~search
and also tried the function module contained in it
TREX_EXT_SEARCH_DOCUMENTS
Although I make query it does not seem to work for multiple attributes. Can any of you give a code sample. Or an alternative FM.
Best Regards,
Frederik Defour
The query is build like this
Query
L_QUERY_ENTRIES-ROWTYPE = 'BRACKET_OPEN'.
append L_QUERY_ENTRIES to IT_QUERY_ENTRIES.
clear L_QUERY_ENTRIES.
ATTRIBUTE
L_QUERY_ENTRIES-ROWTYPE = 'ATTRIBUTE'.
L_QUERY_ENTRIES-LOCATION = 'Description'.
L_QUERY_ENTRIES-VALUE1 = '*'.
L_QUERY_ENTRIES-OPERATOR = 'EQ'.
L_QUERY_ENTRIES-CONTENT_TYPE = 'C'.
L_QUERY_ENTRIES-TERM_ACTION = 'E'.
append L_QUERY_ENTRIES to IT_QUERY_ENTRIES.
clear L_QUERY_ENTRIES.
ATTRIBUTE
L_QUERY_ENTRIES-ROWTYPE = 'ATTRIBUTE'.
L_QUERY_ENTRIES-LOCATION = 'Problem'.
L_QUERY_ENTRIES-VALUE1 = '*'.
L_QUERY_ENTRIES-OPERATOR = 'EQ'.
L_QUERY_ENTRIES-CONTENT_TYPE = 'C'.
L_QUERY_ENTRIES-TERM_ACTION = 'E'.
append L_QUERY_ENTRIES to IT_QUERY_ENTRIES.
clear L_QUERY_ENTRIES.
L_QUERY_ENTRIES-ROWTYPE = 'BRACKET_CLOSE'.
append L_QUERY_ENTRIES to IT_QUERY_ENTRIES.
clear L_QUERY_ENTRIES.

You are supplying too much info to TREX.
Comment in your code for each attribute following lines:
L_QUERY_ENTRIES-CONTENT_TYPE = 'C'.
L_QUERY_ENTRIES-TERM_ACTION = 'E'.
Kind regards,
Daniel

Similar Messages

  • BP Searching using TREX

    Hi All.
    I trying to search BP in CRM ICWC 4.0 SP 7 using TREX, i have installed Software Agent Framework and applied the respective notes but i don't know which are next steps. When i try to execute the BP search and try with a debugging i have notice that some function modules are not returning data because something is missing.
    Can anybody help me.
    Thanks in advance
    Armando

    Hi.
    Can i find a guide or something like that in the web ?.
    I have installed the TREX, the SAF, used the transacztion CRM_SAF_TOOLS for checking and everything is Ok but when i'm using the function modelu TREX_BUPA_SEARCH in debbuging mode, i noticed the TREX search inside is not working... something is missing.
    Best Regards.
    Armando

  • HTML Tags search using TREX

    Hi All,
    Using following 2 documents I had tried to configure TREX to search HLTM tags. After following all the steps when I tired to search I don't get any results.
    1) How to set up web repository and crawling it for indexing.pdf
    2) How-to-guide for searchable HTML tags.pdf
    Any buddies please help?
    Thanks in advance.
    Mahesh

    Hi Suman,
    I am Manu's Colleague. We have the Hierarchy of Objects like this.
    Cubes --> Multiprovider -- > Aggregation level.
    We had two tranport requests one for the Planning objects Including Aggregation levels and the other for data model objects including cubes , DSO's and multiproviders. All deletion Requests.
    We moved the First transport request to production and we checked using Normal Find objectsand found no results for the aggregation Levels.We assumed all the objects were deleted.
    Then we moved the Datamodel transport request to Quasltiy and it failed stating that the Multiproviders are used in Aggregation Level. (this happened in Q)
    Then when we checked the aggreation Level in Planning Modeller we found it in there (this in both Q and P) and not in RSA1 transaction until we used TREX to retreive the result. (This in P as we dont have TREX in D and Q systems)
    This is the issues and beacuse of this we are not able to delete the Data models in the system.
    Thanks for all your previous replies and will be helpful if you have any idea ont his.
    Regards.
    Shafi.

  • PCD search using TREX SP16

    Hi All,
    I am trying to search for portal iviews, pages & roles using TREX.
    I created the index & assigned the PCD folder (I have done all the pre-requisites for PCD search)....
    Then when i opened the Index Administration page, the status for the index was red. I tried reindexing it, but the application log showed me errors,
    <b>
    "XIndexing documents failed. Method not supported on PCDSearchIndex..Continue crawling... "</b>
    <b>My portal is at SP16, with KMC SP16 PL3...
    TREX is up at SP16 PL2....
    </b>
    Please help me out.....
    Thanks,
    Sandip
    Message was edited by: Sandip Agarwal

    Closing the thread...

  • Search Using TREX -- If Supported by Object Type

    Dear Gurus,
    I have got this option lately in my RSA1 FInd button.
    I need to find:
    1. What does this do ?
    2. I have an object which is deleted, i dont find it in normal search.
    BUT
    When i tick this option and search i find some relevant Planning Components.
    Please let me know how to delete and find that obejct AND what does this Do , where does it search???
    Regds,
    Den

    Hi Suman,
    I am Manu's Colleague. We have the Hierarchy of Objects like this.
    Cubes --> Multiprovider -- > Aggregation level.
    We had two tranport requests one for the Planning objects Including Aggregation levels and the other for data model objects including cubes , DSO's and multiproviders. All deletion Requests.
    We moved the First transport request to production and we checked using Normal Find objectsand found no results for the aggregation Levels.We assumed all the objects were deleted.
    Then we moved the Datamodel transport request to Quasltiy and it failed stating that the Multiproviders are used in Aggregation Level. (this happened in Q)
    Then when we checked the aggreation Level in Planning Modeller we found it in there (this in both Q and P) and not in RSA1 transaction until we used TREX to retreive the result. (This in P as we dont have TREX in D and Q systems)
    This is the issues and beacuse of this we are not able to delete the Data models in the system.
    Thanks for all your previous replies and will be helpful if you have any idea ont his.
    Regards.
    Shafi.

  • Archivelink Search using Trex

    Hi All,
    I have activated the index release for Archive link in SKPR06 for document area ARCHLINK.
    I wanted to know how to which class is meant for Archive link to create indexes like DMS_PCD1 for DMS in SKPR07 and which report to use for the search.
    Please advice.
    Muzamil

    Hello Guys,
    Please share about the Trex search for archivelink documents.
    Is there any other group where i can post this thread.
    Muzamil

  • Enabling search using TREX

    Hi all,
          I have installed NW 04 SR1 and installed KMC on it . I have also installed TREX and did the server side and client side configuration ans the TREX monitor shows that it is up and running.
    My question how to use this TREX engine to search the documents. what kind of configuration do i need to do.
    Thanks

    Hi,
    Check the following threads,
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3416724#3416724">https://www.sdn.sap.com/irj/sdn/thread?messageID=3416724#3416724</a><a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/72/5da142b1e8c911e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/72/5da142b1e8c911e10000000a1550b0/frameset.htm</a>
    If you want document file also, i will send you.
    Regards,
    Venkatesh.K

  • When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, and the safe search button is inoperable. Suggestions?

    When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, the remainder of the results page is blank, and the safe search button is inoperable. When I turn off private browsing and refresh the page, everything works again.
    Anyone else having this problem?

    I have got the same behaviour after the last Safari Update to 5.1.3. It seems that Safari now handles some scripts in a new way. If you debug the Google Website, you will see, that there is some Javascript Error, that seems to prevent to write into local cache. After some searching I wasn't able to finde a solution for this problem, other then disabling Javascript while private browsing to prevent the script loading. You then are able to use Google with the old layout. The option to disable JavaScript can be found in the Menu "Developer", wich has to be enabled in Safari in the options first.
    In my opinion this is a bug that is now occuring, because Apple changed something in private browsing and that has to be fixed by Google now, to run again. Or we will have to wait for 5.1.4, as you can read online Apple will change and bugfix the javascript engine in that version, perhaps this fixes the problem as well. I hope so!
    If anyone is in the developer program perhaps you could test this with the beta of 5.1.4 and tell us if it works.

  • When I use the Norton Safe Search box in Firefox 3.6.19 the letters that I type group together and disappear behind the search button at the end of Norton Safe Search....any help?

    I don't know how much more I can add...However, when I type in the Norton Safe Search box up to the search button in Norton Safe Search I can continue to type but I can't see what is being typed because it doesn't allow me to see the trailing end of what I'm typing. This along with the fact that the letters and words don't always automatically advance a space, they group together as I'm typing and I have to stop, provide a space and continue once again. This only happens in Mozilla Firefox, I'm using Firefox 3.6.19. This doesn't happen in the Norton Safe Search Box in Internet Explorer

    Maybe another extension that you have installed is causing that problem with that Norton Safe Search add-on.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes <br />
    Disable all other extensions and see if Norton works correctly. <br />
    I so, start enabling extensions one at a time until you find the culprit.
    If not, create a new Profile and verify that Norton is the only extension that appears in the new Profile and see if it works correctly. <br />
    http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    If not, the problem is with the Norton add-on.

  • Document search by file name using TREX

    Hello,
    We have implemented searching of documents using TREX. At the moment TREX finds all documents where search term is included BOTH in the file name (title) AND the content of the document. We need to limit the search results only to the documents where the search term is a part of the file name/title and NOT the content.
    I know that searching for the term in the title and content is a standard functionality. Is there any way to limit searching for documents only to the title? Are there any parameters that I could place in the KM Document iView in the property 'query' that will limit searching to the file name?
    We use SAP NW 7.0 SP18.
    Best regards,
    Beata

    Hi Bobu,
    I have followed the suggested solution with the predifined properties - "cm_displayname(/default)" - in a new Search option set and a new Search  Component set containing only two aliases: search_predefined_props and standard_search, but it seems that searching is using the standard_search alias anyway. If I remove it from the search component, I do not have a full-search field for entering the value.
    BR
    Beata

  • 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 Paulussen

    Hi,
    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

  • Using Trex for Vendor Search in SRM

    Experts,
       Please let me know if you used TREX to optimize the vendor search in SRM 7.0, ECC 6.0 EP4.
       Please let me know any tips or suggestions regarding the implementation.
    Thanks in advance
    Regards,
    Scott

    Hi Scot
    the below is for goa . try for BP too.. Why you require TREX search . std search dont enough. since
    TREX helps only if you want to enable  full text search for long texts and attachments in contracts.You need to instal  the trex server and configure the settings:-
    1.create RFC destination of type TCP/IP server using TCODE SM59
    2.MAINTAIN ENTRY IN back end systems settings
    3. Activate full text search y executing the program BBP_TREX_INDEX_ADMIN .
    bUSINESS oBJECT : - bus2000113
    subtype usiness object :- cc for GOA or blank for operational contracts
    Action for SRM TREX index :- select the appropriate value from search help . for example , you would specify A for the initial index generation.
    bundle size for indexing : enter "10." bundle size affects performance. The size indicates the number of docuemnts that will be updated in one pass.if there are a large number of documents, then the size may be reduced to improve performance

  • 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 Bjornstad

    Hi 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

  • Benefits of Using TREX for PLM Search

    Hi All,
    Can somebody guide me on the benefits if we use TREX 7.1 with Embedded Search for PLM?
    Following are our requirements, whether this will be met with TREX
    1) Will the TREX help to search Cross u2013Objects with same names, for ex, if we search CCA, will it show all materials, BOM,s; Documents and Change Masters starting with CCA?
    2) .Can we u201CSaveu201D the Search attributes or variants so that the same type of Search can be used again?
    3).Can we give Boolean search or fuzzy search with AND and OR options?
    4) .Can we search the fields mentioned in Long Text using TREX?
    Regards,
    Aby

    Hi Santosh,
    Thanks for your inputs..
    While searching for all Objects, can we give the input of Description? 
    for example, if I want to find all objects which have a term "XYZ" in the description, can I find it?
    Can I search on the Long text details if TREX is there?
    If you have any detailed links or documents related to PLM Search with TREX , its benefits and features , please forward..
    Also we are using PLM 7.0  Are all these features mentioned for TREX 7.1 is available over PLM 7.0?
    Regards,
    Aby
    Edited by: Aby Thomas on Jun 23, 2010 2:38 PM

  • In the search section of the tool bar, I used to have Google as my search engine now it is Norton Safe Search. How can I get Google back?

    As stated above, I used to have Google as my search engine now it is Norton Safe Search. How can I get Google back?

    See these threads about searchqu:
    *[/questions/816181]
    *[/questions/790833]

Maybe you are looking for