[Oracle Text]How to register additional datas when indexing documents ?

Hello,
For the moment we index documents (Word, excel, pdf, ppt, html, xml...) from the filesystem and it works well.
Now, we need to attach some informations on each documents and we must be able to search on these attributes, for instance :
We can index a Word document and we would like some additionnal index informations like :
YEAR
SIZE
NUMBER
These informations are stored in a table, the table contains also the path to the documents on the filesystem.
We are able to query a text on the index mixed with a filter on the columns above.
We tought with the solution to store these informations directly in the index, but we don't know if it's a good solution (in term of speed, structure...)
So, Is there any solution to index the documents on the filesystem with extra information at index time ?
Is it possible ? How can we do that ?
What do you think about that ?
Thanks by advance

1. If you're using 12c, you can use ctx_doc.policy_languages. (https://docs.oracle.com/database/121/CCREF/cdocpkg011.htm#CCREF24102)
2. If you want multiple stoplists based on each document's language, you have to use the multi-lexer. For world_lexer, there is one stoplist; since the stoplists are somewhat dynamic (you can add but not remove them), the most accurate way to fetch the list is using ctx_report.describe_index or ctx_report.create_index_script and parse the report.

Similar Messages

  • How to register the recipient when create job by function

    I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
    Can you tell me how to register the recipient when create the job.
    ( in sm36, it is easily to do but how to do in coding? )
    regards,
    slam

    Hi
    I think in Back ground using the above fun modules you can't send a mail to the receipient.
    see the use of the above fun modules;
      IF p_bjob = 'X'.
        CONCATENATE sy-cprog sy-datum sy-uzeit
                    INTO jobname SEPARATED BY '_'.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = jobname
          IMPORTING
            jobcount         = jobcount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          IMPORTING
            out_archive_parameters = arc_params
            out_parameters         = print_params
            valid                  = valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF valid = chk.
          SUBMIT ybrep
                          WITH < sel Screen>
                          AND RETURN
                          USER               sy-uname
                          VIA JOB            jobname
                          NUMBER             jobcount
                          TO SAP-SPOOL
                          SPOOL PARAMETERS   print_params
                          ARCHIVE PARAMETERS arc_params
                          WITHOUT SPOOL DYNPRO.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              jobcount             = jobcount
              jobname              = jobname
              strtimmed            = 'X'
            EXCEPTIONS
              cant_start_immediate = 1
              invalid_startdate    = 2
              jobname_missing      = 3
              job_close_failed     = 4
              job_nosteps          = 5
              job_notex            = 6
              lock_failed          = 7
              invalid_target       = 8
              OTHERS               = 9.
          IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
            MESSAGE i029 WITH jobname.
          ENDIF.
        ELSE.
          MESSAGE s000 WITH text-003.
          STOP.
        ENDIF.
      ENDIF.
    Reward points if useful
    Regards
    Anji

  • How to update additional data for a premise in ISU?

    Hi Experts,
    Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
    Thx in advance, points will be rewarded.
    Vincent.

    Hi Vincent,
    Here is an example coded by me. Hope this is useful to you. If so, please reward points.
    l_premise = '0000004454'.
    CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
      EXPORTING
        x_vstelle            = l_premise
        x_wmode              = '1'
      X_TEILOBJ            =
    IMPORTING
      Y_OBJ                =
       y_auto               = x_auto
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       general_fault        = 3
       not_authorized       = 4
       invalid_wmode        = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ENDIF.
    x_auto-evbsd-haus_num2 = '99999'.
    CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
      EXPORTING
        x_vstelle            = l_premise
        x_upd_online         = 'X'
        x_no_dialog          = 'X'
        x_auto               = x_auto
      X_OBJ                =
      X_NO_OTHER           =
    IMPORTING
      Y_DB_UPDATE          =
      Y_EXIT_TYPE          =
      Y_NEW_EVBS           =
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       input_error          = 3
       general_fault        = 4
       not_authorized       = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Pranjal.

  • How to update additional data for Premise in ISU?

    Hi Experts,
    Does any1 have any ideas about  how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
    Thx in advance, points will be rewarded.
    Vincent.

    Hi Vincent,
    Here is an example coded by me. Hope this is useful to you. If so, please reward points.
    l_premise = '0000004454'.
    CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
      EXPORTING
        x_vstelle            = l_premise
        x_wmode              = '1'
      X_TEILOBJ            =
    IMPORTING
      Y_OBJ                =
       y_auto               = x_auto
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       general_fault        = 3
       not_authorized       = 4
       invalid_wmode        = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ENDIF.
    x_auto-evbsd-haus_num2 = '99999'.
    CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
      EXPORTING
        x_vstelle            = l_premise
        x_upd_online         = 'X'
        x_no_dialog          = 'X'
        x_auto               = x_auto
      X_OBJ                =
      X_NO_OTHER           =
    IMPORTING
      Y_DB_UPDATE          =
      Y_EXIT_TYPE          =
      Y_NEW_EVBS           =
    EXCEPTIONS
       not_found            = 1
       foreign_lock         = 2
       input_error          = 3
       general_fault        = 4
       not_authorized       = 5
       OTHERS               = 6.
    IF sy-subrc <> 0.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Pranjal.

  • How to view the date when the Customers credit limit updated in SAP-FSCM?

    How to view the date when the Customers credit limit updated in SAP-FSCM?

    OK you can look at field - LIMIT_CHG_DATE in the table - UKMBP_CMS_SGM via SE16
    I would assume you would want to run it based on a date range.

  • How can I generate data when the link is click on?

    i have written a stackoverflow question ,
    would like some input if you have any , thanks, i would like to stay away from using jquery
    http://stackoverflow.com/questions/23143436/how-can-i-generate-data-when-the-link-is-click -on/23143813?noredirect=1#23143813

    I think you need to rephrase your question and be more specific. Also for me the images you are referring to do not exist. From your question I am interpreting it as "how do I program?"

  • Additional data in Vendor document header - Planning Group

    Dear all
    We which to change the planning group of various vendor line items. We will be using the mass change function in FBL1N and have updated this to include the planning group field as per SAP note. I understand that we also need to update the planning group in additional items in the header for this to work.
    Can you please help me on how we can include the planning group in the additional data on the document header.
    PRG

    Thank you for yor reply. The problem I am having is that the field 'planning group' is not availalbe in the document header or in the additional fields so I can not update the transactional data not even individually. We have updated all the vendor master data but need to do this for the transactional data. My question is how to add this field?
    Many thanks
    PRG

  • Oracle Text: How to add/get stopwords list when using Oracle Text world lexer?

    I have a use case that we currently use Oracle Text World Lexer to index and search multilingual documents. As we know that World Lexer does the language auto detection. I would like to know the following questions:
    Is there anyway I can get the current document's language that Oracle Text detected?
    Is there anyway to get the language's stopwords list?
    Any thoughts and points will be appreciated.
    - Charles

    1. If you're using 12c, you can use ctx_doc.policy_languages. (https://docs.oracle.com/database/121/CCREF/cdocpkg011.htm#CCREF24102)
    2. If you want multiple stoplists based on each document's language, you have to use the multi-lexer. For world_lexer, there is one stoplist; since the stoplists are somewhat dynamic (you can add but not remove them), the most accurate way to fetch the list is using ctx_report.describe_index or ctx_report.create_index_script and parse the report.

  • How to find the date when entries were made in DEVACCESS table

    Hi All,
    I needed to know if there is a way to find the date when an a developer was registered in our SAP system.
    I can see in DEVACCESS table (in SE16) all users registered along with their developer key but i also need to see when those entries were  made. Can you please help in this.
    Regards,
    Ashish Robinson

    Hi all,
    Thanks for the replies but my issue is that I got only for some users from SCCR in service maketplace. It seems that that other users for which (i can see entries in table DEVACCESS in my system) were created with somne other s-user which we dont know at thsi time so finding from service marketplace is not working!
    I needed to know iff there is some way i could get this information (when entries went in table or when the users registered) from SAP itself.... or may be from oracle sql level.
    Thanks to suggest <removed by moderator>
    Regards,
    Ashish Robinson
    Edited by: Thomas Zloch on Nov 23, 2010 2:28 PM - priority normalised

  • SEM-BPS how to load additional data for special users at runtime?

    Let´s assume you have a transactional info cube which contains SD Data from the source system.
    If you want to show additional data, let´s say the attributes of the sold materials which can be read in the table MARA of the source system (provided you use R/3, etc.)
    and you only want to show this data for a small amount of users, which need to see it, then i wonder how to do  this.
    am i right, that i can use the exit functions to init key figures, i.e. i could write some code which connects to the source system over RFC, downloads the data at runtime and presents it at the users excel sheet????
    moreover, is it necessary to extend the existing cube, just to achieve this aim?
    Message was edited by: Gideon Lenz

    Hello Gideon,
    there's no need to program anything. You can display any attribute in planning layouts. In your case you would extract the master data from material from SAP R/3 (MARA) into BW. The setup the layout to show the required attribute(s) in the layout in BPS.
    If the attribute is relevant only for a specific user group, just give them access to this "special" layout (create a planning folder or web interface for this group).
    Regards
    Marc
    SAP NetWeaver RIG

  • How can forbid changing data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
    But this BAPI also can be used for change mode.
    How to forbid the change of MAT data when use this BAPI?
    TKS a lot~~
    I am looking foward to your response~~~

    you have to find out what the user did before your program goes ahead and starts the BAPI.

  • How to find the date when object is moved from quality to production server

    Hi Experts,
    I am working with BADI ZMM_PUR_REQ_PROC_001-Method Check and BADI ZME_PROCESS_PO_CUST-Method Check.
    I need to add a check that a particular logic should be implemented only after this object is moved to the production server.
    How can i check the date when an object (in my case this BADI) is moved to the production server?
    <Removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Aug 1, 2011 10:55 AM

    Hi Sakshi,
    So your reqt is that the documents created after your Transport implementation date should pass the check and others (old ones) should ignore.
    I will recommend, if at all possible, to make all the old documents compatible to your check by doing a separate initial loading /one time activity to avoid this kind of hardcoding.
    IF not at all possible to do so, then I think you should better hardcode your Transport req number and fetch date (AS4DATE) from E070 table and only if any entry exists, use that date as your required date. I believe this will be the date of transport imported in the target system.
    You can avoid hardcoding Transport number by picking latest transport with respect to your object (BADI) using E071 table, but that will go wrong once you send any future changes in this BADI to Prod, so better to hardcode the transport.
    BR,
    Diwakar

  • How can forbid changging data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
    But this BAPI also can be used for change mode.
    How to forbid the change of MAT data when use this BAPI?
    TKS a lot~~
    I am looking foward to your response~~~
    Edited by: lorryhappy on Dec 22, 2009 11:35 AM

    Hi
    You can achieve it in another way..
    Before Passing Data to BAPI , Check whether the material is existing or not..
    If material is existing (Present in Material Master Tables e.g. MARA ) using
    data: l_matnr like mara-matnr.
    Select single matnr from mara into l_matnr.
    IF sy-subrc EQ 0.
    " Material is existing ==> Do Not Pass to BAPI
    else.
    " Material is NOT existing ==> Pass to BAPI for creation.
    endif.
    Repeat above logic for every material in batch..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How to reset the data when the session lost?

    When I use response.sendRedirect("http://localhost:82/main.jsp")
    the session lost, because the URL before redirect is using SSL,
    "https://localhost:81/index.jsp", they use the different port,
    so the session lost, what should i do to prevent this? And how
    to reset the data?

    Create a HashMap and store it as an attribute of the servlet context. In the first servlet assign the user a key and store all session data in the HashMap under that key (use a vector, collection or user defined class).
    In the response.sendRedirect call add the key to the url:
    response.sendRedirect(url + "?key=" + userKey);
    In the second servlet get the key (request.getParameter("key")), retrieve the session data from the HashMap in the servletcontext and store in an httpsession.
    Remember to delete the entry from the HashMap so it doesn't become overly large.

  • How to clear all data when the form loading at the first time

    hi
    I am using JDevloper 10g and I have adfForm page, I want to clear all data when I load the page for the first time.
    When I did it using RefreshCondition on the pageDef in the executables like(
    <executables>
    <iterator id="FinCompaniesInformaton1ViewIterator" RangeSize="10"
    Binds="FinCompaniesInformaton1View"
    DataControl="AppModuleDataControl" *RefreshCondition="#{adfFacesContext.postback==true}"* />
    </executables>
    the form didn't bring any data but the problem is the field in the form at the run time changed to read only. So how to make it inputText and clear the data inside it at the run time
    best regards
    Tarek Al Soudani

    thank you for your help,my spec is I have ADF Form and I have creat and Edit CommandButton I made it befor also Commite to save.
    so when I run the form the Field should be disabled and there are no data inside it,and when I chose the creat button the fields should be enabled and I have to insert data inside it then I save.
    So I have FinCompaniesInformatonView as view object based on entity object name FinCompaniesInformaton and applicationMoudul.
    I tolde you befor that I made refreshcondition to solve the data clearence problem but the field changed to read only so please if you now any way to leave the fields as inputText whitout make the form as creation form
    beast regards

Maybe you are looking for

  • Is it possible to download film clips from GoPro 4 Silver to iMovie?

    Is it possible to download film clips from gopro Hero 4 Silver to iMovie?

  • Spilled water over the keyboard of my MacBook Pro.

    Spilled water over the keyboard of my MacBook Pro. 13 inches. Used paper and dried it straigt away, it was working fine. Now, a few days later, my left shift-button, the ctrl-button and right-arrow button do not work. What can I do to try to fix this

  • FXO not disconnecting

    I have a 2800 Series router with 12.4-15.T1 with 4 FXO ports in it. These ports are connected to another system that forwards calls onto another phone - long story, but it saves huge long distance $$ over satellite phones. The issue is the system get

  • Update Multiple rows

    I need to update like 500 records in the same table, one column. How do I do it using update or shall I need to write pl/sql Thank You

  • What is wrong with facebook

    Facetime has not been working for some time for everyone I have talked to . What exactly is the problem?