Creating the document Index

Hi all

I had to add the words indexed in the Active Document Automation.  but im stuggle to extract the index term list as a RTF file.  In manually we have the options to generate indexes after loading the placegun create text frames and place the contents in the textframe.

In scripts where this option is available, or is not possible?

Using InDesign CS5.5 / Windows / Javascript

Thanks in advance for any help.

Kind regards

Imagine.

Index.Generate provides these options.

Tags: InDesign

Similar Questions

  • create the document using the CMIS REST API

    Hello! I would like to integrate my java application with Oracle Webcenter via the REST API of CMIS. I can read, delete documents, but have some problem with creating one.

    I get success only when I create document (type = "/ ucmserver / IDC:GlobalProfile") with the name "idcPrimaryFile". In other cases I have the exception:

    oracle.webcenter.content.integration.RepositoryException: November 12, 2015 08:52:06 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is XXX and the name of the file is idcPrimaryFile

    My properties:

    Properties =]

    (PropertyIds.OBJECT_TYPE_ID): type.

    (PropertyIds.NAME): name,.

    "/ ucmserver / IDC:GlobalProfile.ora:p:dDocType ':"Application. "

    ' / ucmserver / IDC:GlobalProfile.ora:p:dDocTitle ': 'Test ',.

    ' / ucmserver / IDC:GlobalProfile.ora:p:dSecurityGroup ': 'Public ',.

    ]

    I would appreciate help

    Hello! I solved my problem, but with a workaround.

    I will try to explain the problem and how it is possible to create documents via Oracle Webcenter Content Management API REST CMIS:

    For the next POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Content-Type: application/atom + xml; type = entry

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I get the response from the server

    Error 500 - Internal server error

    oracle.webcenter.content.integration.RepositoryException: 18 November 2015 05:24:04 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is test , and the name of the file is idcPrimaryFile.

    When the test is the document name.

    This request, I checked with an another compatible services of CMIS (IBM FileNet and OpenCMIS InMemory repository). I created the document with name test it.

    Workaround solution:

    POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Host: 192.168.32.192:8888

    Content-Type: application/atomsvc + xml

    Slug: test

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I created the document with the name test in Oracle Webcenter.

    The differences between applications are:

    Content-Type: application/atomsvc + xml

    Slug: test

    So I'm not sure that the Oracle Webcenter Content Management Service STILL provides "correct" implementation of the OASIS CMIS specification, because I found nothing in therehttp://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html on the Slug query parameter and it is not clear to me how the Oracle Webcenter Content Management REST Service works with Content-type application/atom + xml; type = entry (I mean according to CMIS specification().



    It will be very useful for me to get another point of view. Maybe someone could correct me if I'm wrong.

    Thanks in advance.

  • Create the document recycling 90% of an existing .indd?

    I have a 30 pg .indd document. I need to create 1 or more new documents based off the original, but with occasional paragraphs that are different. About 90 percent of the document will remain the same.  Is it possible to use the text or merge data or a combination of tools to maintain 90% in all of these three documents and retain different occasional paragraphs?

    In my mind, I'd love to use a text which relates the filename variable User.ID so that if I open the file 'Brass.indd' then all paragraphs that are different for brass model are open and if I open the file 'Copper.indd', then, all paragraphs show the copper version.

    Hope that makes sense.

    Thank you

    Bruce

    If you have InDesign CS6 or CC, you can either use the Edit > location and relationship of command, or you can use the content and content of Placer Collector tools. Both are described in InDesign help. Which could link the content (if you select the link option).

  • Error creating the Spatial Index for SRID 8307 on newly hardened database

    Oracle 11g Rel2, Windows 2003 platform

    Help, please...

    Meeting with error message:
    ERROR on line 1:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: geodetic initialization error turn
    ORA-13249: SRID 8307 does not exist in the table MDSYS.CS_SRS
    ORA-29400: data cartridge error
    ORA-04063: package body 'MDSYS. SDO_CS"contains errors
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    After running the command

    INSERT INTO USER_SDO_GEOM_METADATA VALUES
    ("PointGeometry",
    "pointGeom,"
    MDSYS.sdo_dim_array (mdsys.sdo_dim_element ('Longitude',-180, 180, 1),
    mdsys.sdo_dim_element('Latitude',-90,90,1)),
    8307
    );

    CREATE the INDEX IDX_POINTGEOMETRY on PointGeometry (pointGeom) indextype is mdsys.spatial_index parameters('LAYER_GTYPE=POINT');

    When I ask mdsys.sdo_cs I see that there are actually SRID 8307. This index was created in this schema without problem. The problem only arises once the hardened customer database and we tried to recreate the schema (and index).

    Probably not coincidentally, I also get error:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-04063: package body "CTXSYS. DRIXMD' has errors
    ORA-06508: PL/SQL: called program unit is not found: 'CTXSYS. DRIXMD ".
    ORA-06512: at "CTXSYS. DRUE", line 145
    ORA-06512: at "CTXSYS. TEXTINDEXMETHODS', line 366
    ORA-04063: package body "CTXSYS. DRIXMD' has errors
    ORA-06508: PL/SQL: called program unit is not found: 'CTXSYS. DRIXMD ".

    When attempting to create and index Oracle Text context.

    Your help is greatly appreciated.

    Then, that's the problem.

    MDSYS user now has not run, and select privileges on the dbms_lob package.

    You must grant privileges on this package in MDSYS.

    Note that you can run into other issues of privilege package like this, so you must correct all by the granting of the
    required privileges for MDSYS.

    Siva

  • Cannot create the spatial index

    It's a little bit of the puzzle for me this one, I made this little time on different system and I do not understand why it's here

    Oracle 11.1.0.7 Windows 64-bit

    We have simple following table:

    CREATE TABLE DASHBOARD. DSGEOEXCEPTION
    (
    GEOIDE NUMBER NOT NULL,
    ZORDER INTEGER DEFAULT 0 NOT NULL.
    HOUSENO VARCHAR2 (100),
    STREET VARCHAR2 (100),
    VARCHAR2 (100) SUBURBAN,.
    CITY VARCHAR2 (100),
    COUNTY OF VARCHAR2 (100),
    DESCRIPTION VARCHAR2 (200),
    MDSYS FORM. SDO_GEOMETRY
    )
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    NOMONITORING;

    ALTER TABLE DASH. (ADD) DSGEOEXCEPTION
    CONSTRAINT DSGEOEXCEPTION_PK
    KEY ELEMENTARY SCHOOL
    (GEOIDE)) ;



    Insert values (user_sdo_geom_metadata)
    "DASHBOARD. DSGEOEXCEPTION',.
    "FORM."
    MDSYS. () SDO_DIM_ARRAY
    MDSYS. SDO_DIM_ELEMENT ('LONGITUDE',-180, 180, 0.00005),
    MDSYS. SDO_DIM_ELEMENT ('LATITUDE',-90, 90, 0.00005)
    ),
    8307);

    until then, everything is good.

    I run the two sql suite to ensure that everything is fine

    Select * from USER_SDO_GEOM_METADATA;
    Dashboard. DSGEOEXCEPTION, shape, ((LONGITUDE,-180, 180, 5E-5), (LATITUDE, -90, 90, 5th-5),), 8307
    select * from mdsys.sdo_geom_metadata_table
    DASHBOARD, dashboard. DSGEOEXCEPTION, shape, ((LONGITUDE,-180, 180, 5E-5), (LATITUDE, -90, 90, 5th-5),), 8307
    select * from ALL_SDO_GEOM_METADATA;


    first 2 return one row as planned last returns nothing

    creating the index

    CREATE INDEXES DASH. DSGEOEXCEPTION_SIDX ON DASHBOARD. DSGEOEXCEPTION
    (FORM)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX
    NOPARALLEL;

    or

    CREATE INDEXES DASH. DSGEOEXCEPTION_SIDX ON DASHBOARD. DSGEOEXCEPTION
    (FORM)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX;


    fails with the error:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10



    According to one of the posts, I run this

    ALTER session set current_schema = MDSYS;
    @$ORACLE_HOME/md/admin/prvtgmd.plb

    but no difference I can always create index


    Any suggestions?

    Please, try the following:

    Insert values (user_sdo_geom_metadata)
    "DSGEOEXCEPTION,"
    "FORM."
    MDSYS. () SDO_DIM_ARRAY
    MDSYS. SDO_DIM_ELEMENT ('LONGITUDE',-180, 180, 0.00005),
    MDSYS. SDO_DIM_ELEMENT ('LATITUDE',-90, 90, 0.00005)
    ),
    8307);

  • Cannot create the Documents folder. No error, it just does not respond.

    How is it that I can't create a folder in my documents once I installed skydrive?  Does that mean if I click "record" to make a new folder in my documents he won't answer more after that I have to install/activate sky player.

    Original title: how to create a folder

    Hello

    You have discovered a problem with Windows 7. To resolve this problem, I recommend a program called FileMenu Tools. You can download the portable freeware from here: http://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/FileMenu-Tools-Portable.shtml .

    After having downloaded and installed the program, you will notice that, by default, each option is checked. I would be much more selective on this subject, otherwise your context menu will be a full page long! When the main window opens, you will see a list on the right side of all the elements that can be added to the context menu. Start weeding through the list and every one to take away, you don't need the United Nationsby checking the box.

    Once you have completed your selection (de-selections) make sure that you click the green check mark in the row of icons at the top of the left window of the interface to 'Apply' of your choice. The program can do much more, but that answers your specific question. I am told that the program has a good help file, so try here if you are interested.

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • Create the Document merged, corrupted Images

    I use excel and indesign to create a catalog with the ability to create a merged from a source document. I would create a merged document, but some images would not completely display, for example, the edges of the products show.

    I tried to convert PNG images, but it is still the same. Is attached a screenshot of what I'm talkng about. Any thoughts?

    http://farm9.staticflickr.com/8247/8490617728_df82fa66a5_h.jpg

    It looks like a problem with the image itself and not with the data merge. All data fusion makes links to the jpeg format. Check your image to see if there is an asset of clipping, or some other problem with the image file.

  • How can I create the document, only one inch in width and/or height size?

    Hello

    I need to create pdf files that are tiny. These are in fact the labels that are smaller than 1"high and sometimes smaller than! "in width? It is possible to create such a size small document uses any Acrobat X Pro, Acrobat distiller and Acrobat SDK kit?

    Thank you.

    The default minimum page size (height/width) is 3 / 72 "(~ 0,04") for the version PDF 1.4 and higher. " Acrobat and Distiller can create PDF pages that are as small as the minimum dimensions.

  • Windows Search service does not have to create the search index created, 0x80040d66, failed to add the Application to collect internal error

    769 events

    The most recent Instance was on:

    Error of 2010-06-14 22:47:36 search service search 1006

    Log name: Application
    Source: Microsoft-Windows-search
    Publication date: 2010-06-14 22:47:36
    Event ID: 1006
    Task category: Search Service
    Level: error
    Keywords: Classic

    Trial has been on:

    2010-05-11 Error 1006 research service 01:46:40

    Previous info from event viewer.

    Services:

    Windows Search

    Start the service

    Error message:

    Windows could not start the Windows search on the Local computer. For
    more information, check the system event log. If it's a
    non-Microsoft service, contact the service vendor and refer to
    service special-2147218141 error code.

    Windows Journal system (in the event viewer) for the Date and this has occurred first:

    Error on 2010-05-11 01:46:40 Service Control Manager Eventlog Provider 7024 no

    The Windows Search service stopped with the special service 2147749155 (0x80040D23) error.

    Log name: System
    Source: Service Control Manager
    Date: 2010-05-11 01:46:40
    Event ID: 7024
    Task category: no
    Level: error
    Keywords: Classic

    We are all ONE!

    I tried some of the solutions that offered you, but I think what was my problem was caused by the presence of the index on an external hard drive and when the computer has been restarted the drive letter of the USB drive was not the same.  If I remember well, it was a problem that I wasn't yet able to rebuild the index.

    I now have the index on my hard C at the level of the root drive.  I was about to point to the other half of a 16 GB flash drive which is also USB, but Windows Vista Home Premium does not only because it appears that are considered removable flash drives, but external USB drives are not presented in this category.

    Currently I have about 74 000 items indexed.

    We are all ONE!

  • Is it possible to change an image created in paint to a higher resolution without re-creating the document?

    I have already created an image, I'm about to order a banner online.  they have it on hold until I answer them because they say it will be blurred because the resolution is too low.

    any help would be greatly appreciated.  I don't know anything about.

    No, it isn't.

  • Create the document word without adobe page breaks

    I can easily create a PDF from PowerPoint. However, when I export the PDF file in Microsoft word, each PowerPoint slide goes into an individual page. How to remove these page breaks? I want several slides on one page. I want to take my PowerPoint and put it in hierarchical form in word. I use a Mac and when I put the PowerPoint in its linear form on Word with Adobe I lose all the formatting, I want to format through Adobe, but want several combined pages?

    It is unlikely that any particular control. During the conversion to Word, it's always a challenge between those who want the exact layout at the cost of editing and who want editable at the cost of page layout. I'm surprised Acrobat does not have controls for it, but it doesn't. You probably need to remove breaks in Word.

  • Acrobat 9 cannot create the document

    My acrobat can do is no longer a pdf file.

    See below error

    Have changed the settings in Distiller to make sure it points to the font files SEE below error

    Anyone have any ideas?

    Thank you

    Colin

    %% [ProductName: Distiller] %.
    Not found Calibri, using Courier.
    %% [Error: invalidfont;] [OffendingCommand: xshow] %.

    Battery:
    dict-
    -file-


    %% [Flushing: rest of job (end of file) will be ignored] %%.
    %% [Warning: PostScript error.] No PDF file produced. ] %%

    None of these versions is compatible with Acrobat 9.

  • Creating new Document - change 72 dpi to 300 DPI is no longer automatically updates the width/height in pixels?

    Hello world

    I often work between Illustrator and Photoshop, copy lineart in PS and since I recently updated two programs, somehow I changed a setting or something has changed in the software itself.

    The steps that I "used" to take...

    1 Select lineart illustrator and copy
    2 create a new record in PS - change the resolution from 72 to 300

    3. close the new document (because the width and height would be in 72 dpi)

    4. create the document again - this time she would have saved my setting of 300 DPI and automatically adjust the pixels accordingly

    Unfortunately step 4 doesn't seem to work for me. He just stay at 72 dpi.

    Is there a setting that has changed, or is there another way to "easily" copy lineart in a new PS document at 300 DPI and the right size?

    Thank you for your time

    Zoe

    I just wanted to report that I found a solution in case anyone else think the wrong way as if I was.

    If you change the dropdown to "pixels" in inches or centimeters, for example, and then change the resolution to 300, it will resize the jury to "Printable" size at 300 dpi.

  • Privileges to demand for a user to create a CONTEXT index

    Hi all

    RDBMS: 11.2.0.3

    THEN...: OEL 6.3

    What are the necessary privileges that must be granted to a user to be able to create a CONTEXT index, for example. I gave the CTXAPP my user, but when I tryied to create the CONTEXT Index with the command below, I got an error message "insufficient privilege.

    CREATE INDEXES USR_DOCS. IDX_CTX_TAB_DOCUMENTOS_01 ON USR_DOCS. TAB_DOCUMENTOS (DOCUMENT) INDEXTYPE IS CTXSYS. CONTEXT PARAMETERS ("SYNC (ON COMMIT)");

    It depends on whether the user tries to create the index on its own table in its own schema or on someone else table in the schema of someone else.  The following table shows the minimal privileges (quota could be smaller) for the user usr_docs create the index on its own table in its own schema and password create the index on the usr_docs table in the usr_docs schema.

    Scott@ORCL >-version:

    Scott@ORCL > SELECT version banner $ v

    2.

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    5 selected lines.

    Scott@ORCL >-usr_docs privileges:

    Scott@ORCL > usr_docs CREATE USER IDENTIFIED BY usr_docs

    2.

    Created by the user.

    Scott@ORCL > users QUOTA UNLIMITED ON ALTER USER usr_docs

    2.

    Modified user.

    Scott@ORCL > GRANT CREATE SESSION, CREATE the usr_docs TABLE

    2.

    Grant succeeded.

    Scott@ORCL >-password privileges:

    Scott@ORCL > CREATE USER IDENTIFIED BY password password

    2.

    Created by the user.

    Scott@ORCL > GRANT CREATE SESSION, CREATE ANY INDEX TO password

    2.

    Grant succeeded.

    Scott@ORCL >-user_docs:

    Scott@ORCL > CONNECT usr_docs/usr_docs

    Connected.

    USR_DOCS@ORCL > tab_documentos CREATE TABLE (documento CLOB)

    2.

    Table created.

    USR_DOCS@ORCL > INSERT ALL

    2 INTO tab_documentos VALUES ('test data')

    3 INTO tab_documentos VALUES ('other things')

    4 SELECT * FROM DUAL

    5.

    2 rows created.

    USR_DOCS@ORCL > CREATE INDEX USR_DOCS. IDX_CTX_TAB_DOCUMENTOS_01

    2 ON USR_DOCS. TAB_DOCUMENTOS (DOCUMENT)

    3 INDEXTYPE IS CTXSYS. FRAMEWORK

    4 SETTINGS ("SYNC (ON COMMIT)")

    5.

    The index is created.

    USR_DOCS@ORCL > usr_docs.idx_ctx_tab_documentos_01 DROP INDEX

    2.

    The index is deleted.

    USR_DOCS@ORCL >-password:

    USR_DOCS@ORCL > CONNECT password/password

    Connected.

    MY_USER@ORCL > CREATE INDEX USR_DOCS. IDX_CTX_TAB_DOCUMENTOS_01

    2 ON USR_DOCS. TAB_DOCUMENTOS (DOCUMENT)

    3 INDEXTYPE IS CTXSYS. FRAMEWORK

    4 SETTINGS ("SYNC (ON COMMIT)")

    5.

    The index is created.

  • Need help to highlight the query text in the document

    Hi, I'm trying to load files into the blob column and try to create the text index.

    I need to query the blob column in the original glass by a string, which should return the relevant documents with the query string, highlighted with some color.

    Can you please help me with an example of the above.

    Thanks in advance.
    SCOTT@orcl_11gR2> -- table:
    SCOTT@orcl_11gR2> CREATE TABLE document_tab
      2    (document_col  BLOB)
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> -- procedure to load documents:
    SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE load_document
      2    (p_dir  IN VARCHAR2,
      3       p_file IN VARCHAR2)
      4  AS
      5    v_blob       BLOB;
      6    v_bfile       BFILE;
      7  BEGIN
      8    INSERT INTO document_tab (document_col)
      9    VALUES (EMPTY_BLOB())
     10    RETURNING document_col INTO v_blob;
     11    v_bfile := BFILENAME (UPPER (p_dir), p_file);
     12    DBMS_LOB.FILEOPEN (v_bfile, DBMS_LOB.LOB_READONLY);
     13    DBMS_LOB.LOADFROMFILE (v_blob, v_bfile, DBMS_LOB.GETLENGTH (v_bfile));
     14    DBMS_LOB.FILECLOSE (v_bfile);
     15  END load_document;
     16  /
    
    Procedure created.
    
    SCOTT@orcl_11gR2> SHOW ERRORS
    No errors.
    SCOTT@orcl_11gR2> -- load documents (directory and files must be on server, not client):
    SCOTT@orcl_11gR2> CREATE OR REPLACE DIRECTORY my_dir AS 'c:\my_oracle_files'
      2  /
    
    Directory created.
    
    SCOTT@orcl_11gR2> BEGIN
      2    load_document ('my_dir', 'banana.pdf');
      3    load_document ('my_dir', 'english.doc');
      4    load_document ('my_dir', 'sample.txt');
      5  END;
      6  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> -- confirm files were loaded:
    SCOTT@orcl_11gR2> SELECT DBMS_LOB.GETLENGTH (document_col)
      2  FROM   document_tab
      3  /
    
    DBMS_LOB.GETLENGTH(DOCUMENT_COL)
    --------------------------------
                              222824
                               22016
                                  60
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> -- text index:
    SCOTT@orcl_11gR2> CREATE INDEX document_idx
      2  ON document_tab (document_col)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    
    Index created.
    
    SCOTT@orcl_11gR2> -- confirm files were indexed:
    SCOTT@orcl_11gR2> SELECT COUNT(*) FROM dr$document_idx$i
      2  /
    
      COUNT(*)
    ----------
           319
    
    1 row selected.
    
    SCOTT@orcl_11gR2> -- function to return highlighted document:
    SCOTT@orcl_11gR2> CREATE OR REPLACE FUNCTION your_markup
      2    (p_index_name IN VARCHAR2,
      3       p_textkey    IN VARCHAR2,
      4       p_text_query IN VARCHAR2,
      5       p_plaintext  IN BOOLEAN  DEFAULT TRUE,
      6       p_tagset     IN VARCHAR2 DEFAULT 'HTML_DEFAULT',
      7       p_starttag   IN VARCHAR2 DEFAULT '*',
      8       p_endtag     IN VARCHAR2 DEFAULT '*',
      9       p_key_type   IN VARCHAR2 DEFAULT 'ROWID')
     10    RETURN          CLOB
     11  AS
     12    v_clob          CLOB;
     13  BEGIN
     14    CTX_DOC.SET_KEY_TYPE (p_key_type);
     15    CTX_DOC.MARKUP
     16        (index_name => p_index_name,
     17         textkey    => p_textkey,
     18         text_query => p_text_query,
     19         restab     => v_clob,
     20         plaintext  => p_plaintext,
     21         tagset     => p_tagset,
     22         starttag   => p_starttag,
     23         endtag     => p_endtag);
     24    RETURN v_clob;
     25  END your_markup;
     26  /
    
    Function created.
    
    SCOTT@orcl_11gR2> SHOW ERRORS
    No errors.
    SCOTT@orcl_11gR2> -- query that returns highlighted document:
    SCOTT@orcl_11gR2> VARIABLE string VARCHAR2(100)
    SCOTT@orcl_11gR2> EXEC :string := 'test AND demonstration'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT your_markup ('document_idx', ROWID, :string)
      2           AS highlighted_text
      3  FROM   document_tab
      4  WHERE  CONTAINS (document_col, :string) > 0
      5  /
    

    HIGHLIGHTED_TEXT
    --------------------------------------------------------------------------------
    It is a document test of demonstration to highlight.

    1 selected line.

    Scott@orcl_11gR2 >

Maybe you are looking for

  • Cannot use Apple or App Store music.

    Whenever I'm looking for something in the App Store or Apple music it will not load. Screen shows just the spinning wheel.

  • I can' use my iphone 6plus

    Hello, I am french and I am too far on a Greek island for 6 months, so very far from Apple Store. When I start my Iphone6, numbers of four safety asked, I don't touch my phone and many numbers appear and block my phone. So I make an installation prog

  • How to change a group photo?

    I said click on it, however the only place where it appears is when I save on my contact list and clicking on the photo it does nothing. When I develop the cat I saw other people have the image shown above the cat by the list involved, however I do n

  • Transfer the Aperture/Photo library to new Mac: how to manage the referenced pictures

    Here's the scoop.  I was a long-time user of Aperture with half of my pictures handled as pictures referenced to an external drive.  Photos, as I understand it, also sees the photos as mentioned. I then acquired a new iMac and want to now all of my p

  • The sound from the speaker is saturated

    The sound coming out of my speaker is sometimes distorted, accompanied by the sound of crackling hard and it is barely understandable. What may have caused this to happen? It also happens when the headphones are connected, is not a problem with the s