Oracle for BLOB text search

Hello

I have a table that contains the content of the BLOB (pdf) in there and I can search for successfully a string using the CONTAINS operator

create table MYDOCS
(
  ID   NUMBER(10) not null,
  NAME VARCHAR2(200) not null,
  DOC  BLOB not null
)
CREATE INDEX el_mydocs_doc_idx ON el_mydocs(doc) INDEXTYPE IS CTXSYS.CONTEXT parameters('sync (on commit)');

SELECT id, name
FROM mydocs
where id=1 and CONTAINS(doc, 'id:12345') >0

This works because I know that I'm looking for a specific string (id: 12345).

In the case that I don't know the specific, is - ID select the query can return what is after the "id?" It is to return '12345'?

Teo

Some old topics posted by me:

How to read and analyze data blob pdf file

ctx_doc. Markup in blob

If you need specific help after reading these threads (especially premiera) then please specify.

Tags: Database

Similar Questions

  • Adding metadata fields customized for full-text search

    Hello guys,.

    Can someone help me on the underside.

    When I run the quick search content server. He search for data in dDocName, dDocTitle, dOriginalName and dDocFullText.

    I want my search will be performed on dDocName, dDocTitle,xCommentsand dDocFullText.

    I would like to know how we can change this behaviour of search. Is there any variable configuration to do this?

    Kind regards

    Vijay

    Hi Vijay,

    Yes. You can introduce a new quick search box. Please see the article for more information.

    https://blogs.Oracle.com/Kyle/entry/adding_fields_to_quick_search

    Kind regards

    Maury

  • Oracle and ADF BC text search

    Hi all.

    What is the best way of performance/simple to implement Oracle ADF BC text search?.

    I read a lot with different complexity. Thinking that I don't have much time to spend in it. What is the best solution and faster?

    Thanks in advance.

    Kind regards.

    In this case, you can read the documentation for the research of contains. Add add up to now I know that you can build an index on multiple columns. No need of a materialized view.

    Timo

  • Is it possible to use iDoc script to activate the Oracle text search?

    Hello, I created a query to search for files in a specific Department and I want to check if the files are uploaded in fact properly so I would combine the first part of my request that a comprehensive document, search for a key word.

    The server is configured to search for metadata database only, but I was wondering if you could create a script that would do a search for possible text anyway? If so, an example would be appreciated.

    Kind regards

    Iwona


    Be sure to check the documentation for your answers. They must be a primary (i.e., first) resource for you.

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e26692/searchindex.htm

    No information contained in the response of section "Configuration of the search Index" your question?

    Hope this helps,

    -ryan

    * may not be the most recent document, but this is the first returned by a quick search on google on your keywords.

  • Can you make a menu for the click Search right so that when I text matches and research, I can choose which search engine to use?

    If you text matches you can right click above to pull up a menu runs. One option is "x search engine search for"highlight text"" previously, the selected search engine would be any search engine was selected on bar search, Google or Amazon.com, etc.. Because you can't change this selection until you are looking for, the search engine has the default value. Was a gene before, but now, it's just an obstacle.

    Highly recommend the extension of research framework that will solve your problem

    - https://addons.mozilla.org/en-US/firefox/addon/context-search/?src=search

  • Search for the text value data store

    Hello, I have a PDO of data to store, and I would like to search for a text value in a quantity of measure.  In each of my test series, there is a quantity of measure with the name TCNAME and stores the cell name of test in the string format.  I would like to get all the TCNAMEs that contain "TC4" for example.  Currently, I have to load TCNAME in the portal and display it in an array of string.

    Any ideas how I can do this?

    I assume you are using a PUMA testbed that stores this kind of goods on a unique value chain chains.

    There is no direct search method, so I guess that a script is the only solution we can offer.

    Datafinder you can search for the minimum and maximum of a channel. That would be too much work in the store of ASAM.

    "PDO / cpp"
    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "name = TCNAME", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    MsgBox tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next

    ' AOP5 / Corba
    protected tcnameLCs: set tcnameLCs = store. GetElementList ("LocalColumn", "measurement_quantity.name = TCNAME", true)
    protected tcnameLC: for each tcnameLC in tcnameLCs
    MsgBox tcnameLC.Properties ("values"). Value
    Next

    I have added the example which should be the shortest path from my point of view. In AOP5, you can search LocalColumn and spend BA which is less overhead.

    It is perhaps a good idea to post-processing of the data base and crush the decription "Test name" by

    "The test cell name == NAME. You can search not post-processed by Searchin' for.

    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "description = name of the test cell", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    tcnameMQ.Properties ("description"). Value = "name of the test cell is" & tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next
    Store.Save

    Thereafter, you would be able to search for it.

    Greetings

    Andreas

  • How to add the default value for the "Full - Text Search" box

    Hi all

    I am looking for the ability to add a default value for the "Full text search" box in the search form.

    Example:

    When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as

    xField1 = txt1 and xFiel2 = txt2.

    and Furthermore we need full-text = Hello world.

    Is this possible?

    Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:

    http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2

    It is possible to add full-text criteria here? Somethig like: & text = Hello World

    Thank you

    Leon

    It is not possible in a very obvious way, not to mention that it is a rather strange request.  I can't really imagine a realistic use for this case.

    Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =Hello World" "")

    To do this in a profile in the secondary effects of the profile section, add the following:

    <$dpPromote("QueryText",>Hello everyone") $>.

  • Full text search

    I use the specific to Oracle orardf:textContains function of FILTER of SPARQL to search for full text on the MDSYS. Table RDF_VALUE of $.

    Following the space and RDF graph semantic graph 12 c Developer's Guide to creating the index:

    EXECUTE SEM_APIS.ADD_DATATYPE_INDEX('http://xmlns.oracle.com/rdf/text');

    It works as expected, but I would like to be able to perform searches "accents". I found that when you create the index with 'CREATE INDEX', a custom lexer can be passed in parameters. Something like that:

    BEGIN
    CTX_DDL.create_preference( 'my_lexer', 'BASIC_LEXER');
    CTX_DDL.set_attribute('my_lexer', 'BASE_LETTER', 'true');
    CTX_DDL.set_attribute('my_lexer', 'OVERRIDE_BASE_LETTER', 'true');
    END;
    /
    
    CREATE INDEX my_index on TABLE (COLUMN)
      indextype is ctxsys.context
      parameters ( 'LEXER my_lexer' );
    
    

    I can't understand how to get the same result when the index was created with 'SEM_APIS.» ADD_DATATYPE_INDEX".» Is this possible?


    Thank you

    Hello

    This customization is not supported through add_datatype_index, but you can directly create a text index on MDSYS. RDF_VALUE$ and the use with orardf:textContains in SPARQL queries. In other words, you don't have to go through add_datatype_index to create the index. As long as VNAME_PREFIX is included in the set of columns that are indexed, then orardf:textContains should work.

    For example:

    SQL > create index mdsys.rdf_v$ text_idx on mdsys.rdf_value$ (vname_prefix) indextype is ctxsys.context;

    The index is created.

    SQL > select s, o

    table (sem_match)

    "SELECT? s? o

    "WHERE {? s rdfs:label? o FILTER (orardf:textContains(?o,_"New_York"))}"

    sem_models ('lgd_historic'),

    null, null, null, null

    ,' '));

    2 3 4 5 6 7

    S

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

    O

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

    http://LinkedGeoData.org/triplify/node358960285

    25 New York Volunteer Cavelry Monument

    http://LinkedGeoData.org/triplify/node879249295

    Regiment of New York

    http://LinkedGeoData.org/triplify/node358239660

    New York State Monument

    http://LinkedGeoData.org/triplify/node1251645997

    New York Life Insurance Company War Memorial

    http://LinkedGeoData.org/triplify/node1242148250

    New York Viet Nam Veterans Memorial

    http://LinkedGeoData.org/triplify/node2971826546

    Glocke aus New York

    http://LinkedGeoData.org/triplify/node358960283

    122nd voluntary Mounment in New York

    http://LinkedGeoData.org/triplify/node1040277511

    New York State Viet Nam War Memorial

    http://LinkedGeoData.org/triplify/node1251645998

    Memorial of the New York Life Insurance Company

    http://LinkedGeoData.org/triplify/node427545363

    New York Central Roundhouse

    10 selected lines.

    SQL >

    Hope this helps,

    -Matt

  • Oracle 12 c text - policy_languages - ora-07445?

    Hi all

    I want to test the functionality of Oracle 12 c text language, but I get the error 'address not mapped to object' with the code below.

    Thank you for your support.

    SQL > DECLARE

    x ctx_doc.language_tab;

    BEGIN

    ctx_ddl.create_policy (policy_name = > 'MY_POLICY');

    () ctx_doc.policy_languages

    POLICY_NAME = > "MY_POLICY"

    document = > ' all Good Morning. Test the functionality of Oracle 12 c text,

    restab = > x);

    dbms_output.put_line ('x: ' | x (1) .language |) '-' || x (1) .score);

    END;

    /

    ERROR:

    ORA-03114: not connected to ORACLE

    DECLARE

    *

    ERROR on line 1:

    ORA-03113: end of file on communication channel

    Process ID: 23260

    Session ID: serial number 63: 15244

    Journal Alerts

    Exception [type: SIGSEGV, address not mapped to object] [ADDR:0 x 0] [PC:0 x 0, {empty}] [flags: 0x0, count: 1]

    Errors in the /u01/app/oracle/diag/rdbms/test1/test1/trace/test1_ora_23260.trc file (incident = 72908) (PDBNAME = Ptest1):

    [ORA-07445: exception encountered: core dump [PC:0 x 0] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 0] [address not mapped to object]]

    Incident details in: /u01/app/oracle/diag/rdbms/test1/test1/incident/incdir_72908/test1_ora_23260_i72908.trc

    incident file test1_ora_23260_i72908.trc:

    [TOC00000]

    Go to the table of contents

    Dumpster continued to file: /u01/app/oracle/diag/rdbms/test1/test1test1_ora_23260.trc /trace/

    [TOC00001]

    [ORA-07445: exception encountered: core dump [PC:0 x 0] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 0] [address not mapped to object]]

    [END TOC00001]

    [TOC00002]

    = Dump for incident 72908 (ORA 7445 [PC:0 x 0]) =.

    [TOC00003]

    -Beginning of Incident custom Dump (s)-

    Dump of information swap

    Memory (avail / Total) = 51,30 M / 3464,31 M

    Swap (avail / Total) = 2553,80 M / 2560,00 M

    Exception [type: SIGSEGV, address not mapped to object] [ADDR:0 x 0] [PC:0 x 0, {empty}] [flags: 0x0, count: 1]


    Further investigation suggests that the problem is with your 'default' policy, which is using BASIC_LEXER.  Recognition language uses the features of AUTO_LEXER, and it seems to be necessary to specify explicitly in your strategy:

    Try this instead:

    exec ctx_ddl.drop_preference('my_lexer')
    exec ctx_ddl.drop_policy('MY_POLICY')
    DECLARE
        x   ctx_doc.language_tab;
    BEGIN
        ctx_ddl.create_preference('my_lexer', 'AUTO_LEXER');
        ctx_ddl.create_policy('MY_POLICY', lexer=>'my_lexer');
        ctx_doc.policy_languages (    policy_name   => 'MY_POLICY',        document      => 'Good Morning all. Test Oracle 12c Text features',        restab        => x);
        dbms_output.put_line('x: ' || x(1).language || '-' || x(1).score);
    END;
    /
    

    This is certainly a bug, but this seems to work around the problem.

  • Variable text search and replace it with another variable of text

    Hi, I want to do the following with VB script.

    Can someone help me?

    I have a document with A text element and variable text B are defined.

    And A variable text is used in the document.

    1. search all the variable text from the document

    2. replace A text elements for variable text B

    3 Remove A variable text

    Thank you.

    erieru103

    Hello

    Ok. You have your point, sorry...

    As I wrote - VBA do not know, but as JS, it could be like this:

    var
         doc = app.activeDocument, destCell, currFile, currRec, currImage, i,
         mVarA = doc.textVariables.item("variableA"),
         mVarB = doc.textVariables.item("variableB"),
         mVarAinst = mVarA.associatedInstances,
         len = mVarAinst.length;
    
    while (len-->0) mVarAinst[len].associatedTextVariable = mVarB;
    

    mVarAinst is an array of instances of varA ==> no need to search through all doc

    Jarek

  • Grep search / text search + spent research

    Is it a way to erase the previous GREP search / text (search/replace) searches for 'search' and ' change in "boxes? Is - this specific document or a matter of preference ID?

    Find-Change.png

    These lists are stored in the file InDesign SavedData (part of the prefs.). You can remove them by closing the ID and by renaming or deleting the file to your user library (it's a file hidden, by the way). You will also lose your list open the recent item when you do this, but probably nothing else you won't miss.

    See replace your preferences for the location of the file.

  • [CS5.5] [JS] how to get the object that is anchored by a text search result?

    Hello

    I need to get the object that is anchored by a text search result. It can be an image, textframe, group objects...

    It's my code...

    app.findTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.findWhat = "< FFFC > ';

    var myResults = app.activeDocument.findText ();

    var currentParagrapfNum = - 1;

    for (var n = 0; n < myResults.length; n ++) {}

    var currentResult = myResults [n];

    currentParagrapfNum = currentResult.paragraphs [0] .index;

    var currentAnchoredObject =? ;

    currentAnchoredObject.anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    currentAnchoredObject.anchoredObjectSettings.verticalReferencePoint = VerticallyRelativeTo.LINE_BASELINE

    }

    Can someone help me please?

    Thanx

    Yes, true, ^ anchor of finds, but they are of type character. What you need is

    myResults[n].pageItems[0].anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    Peter

  • Text search help

    Hi all

    Roger helped me solve most of the questions in the forum to Help text search , was a doubt more that I tried to ask in the previous thread, but that the problem is solved and thus open a new thread.


    (1) create a table
    create the table test_sh (number of text_id, text clob);
    (2) add an index
    CREATE INDEX ix_test_sh ON test_sh (text) INDEXTYPE IS CTXSYS. CONTEXT
    (3) insert records
    insert into test_sh values (1, "Mark Antony");
    insert into text_sh values (2, 'Antony');
    insert into text_sh values (3, 'markantony');
    insert into text_sh values (4, 'markantony');
    insert into test_sh values (4, 'sangagret');
    (4) collect statistics
    Start
    DBMS_STATS. GATHER_TABLE_STATS ('LOYALTY', 'TEST_SH', cascade = > TRUE);
    end;
    5) my requirement is when I search for Antony as select * from test_sh where contains (text, '%antony%') then 'sangagret' should also are displayed.
    (6) more than one condition is

    If I ask * "MARKANTONY" * we should get all the results

    1 Marc-Antoine
    2 Marc-Antoine
    3 markantony
    4 markantony

    Here pointers will be of great help.

    Thank you and best regards,
    Vikas

    You can use the new functionality of ndata 11g, as shown below. It requires a multi_column_datastore or user_datastsore. You also need a ndata_section. Then, you use the store of data and ndata_section in the index settings. You can then use ndata in your query. You also must either insert your data before you create your index or set your index to synchronize on commit or synchronize after insertion before you can query the indexed values.

    SCOTT@orcl_11gR2> -- table:
    SCOTT@orcl_11gR2> create table test_sh
      2    (text_id  number,
      3       text      clob)
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> -- data:
    SCOTT@orcl_11gR2> insert all
      2  into test_sh values (1, 'Mark Antony')
      3  into test_sh values (2, 'Mark-Antony')
      4  into test_sh values (3, 'markantony' )
      5  into test_sh values (4, 'markantony' )
      6  into test_sh values (5, 'Cleopatra' )
      7  select * from dual
      8  /
    
    5 rows created.
    
    SCOTT@orcl_11gR2> -- multi_column_datastore and ndata_section:
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference ('nd_mcds', 'multi_column_datastore');
      3    ctx_ddl.set_attribute ('nd_mcds', 'columns', 'text nd');
      4    ctx_ddl.create_section_group ('nd_sg', 'basic_section_group');
      5    ctx_ddl.add_ndata_section ('nd_sg', 'nd', 'nd');
      6  end;
      7  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> -- index using multi_column_datastore and ndata_section:
    SCOTT@orcl_11gR2> CREATE INDEX ix_test_sh
      2  ON test_sh (text)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  parameters
      5    ('datastore  nd_mcds
      6        section    group nd_sg')
      7  /
    
    Index created.
    
    SCOTT@orcl_11gR2> -- query:
    SCOTT@orcl_11gR2> column text format a30
    SCOTT@orcl_11gR2> select * from test_sh
      2  where  contains (text, 'ndata (nd, MARKANTONY)') > 0
      3  /
    
       TEXT_ID TEXT
    ---------- ------------------------------
             1 Mark Antony
             2 Mark-Antony
             3 markantony
             4 markantony
    
    4 rows selected.
    
    SCOTT@orcl_11gR2>
    
  • Can we have text search fields

    Can we have text search fields in OBIEE dashboards. If Yes is it we can filter the report based on the text specified in the search fields.

    In my case

    I have a report which my report has multiple records for each day. Can the professional user specify the date range to filter the report on the dashboard?

    Hi Tintin,
    Inside of your report of responses make sure you that your Date column has a filter that "is"get ".
    Create a dashboard and add the same Date column in the same catalogue presentation. Operator menu drop-down of the Date column, select "is between" and to the drop-down list control, select "calendar". Save the results.
    Add both on the same page of dashboard and the user will be able to select records between the dates of beginning and ending on the Date column prompted.

    Hope this helps,
    J

  • JavaHelp full text search does not work

    I create a project of JavaHelp with 8 HR and have the option of full text search introduced on the market. However, when I run the project and try to use the search function, the hourglass appears and the search is not performed.

    Marion

    I solved the problem!

    Research couldn't perform because HR not create JavaHelpSearch files on my system. I have not found the reason why, but I solved the problem by a work around with a batch file that is bound to the jhindexer. After generating all help I create JavaHelpSearch files using this batch file.

    Thanks to Pierre for his information on his page for JavaHelp. I already knew this page before, when you search for information on javahelp.

    If you have problems with the javahelp you will also find useful information on the website javahelp.java.net/ and in the javahelp http://download.java.net/javadesktop/javahelp/jhug.pdftutorial.

    Marion

Maybe you are looking for

  • I want to buy a new IPAD

    I plan to buy a new IPAD, I am not computer savvy, so I'm afraid that I lose everything I have on my old Ipad and I bought many games etc. on the Apple Store... I would like to know if I lose all, once I get the new IPAD, or if I can transfer all my

  • It is possible to upgrade my hp xw station 8400 base unit of work 32-bit to 64-bit works sysytem?

    It is possible to upgrade my hp xw station 8400 base unit of work 32-bit to 64-bit works sysytem? Also is it useful? Or should I buy a new computer, I'm currently under XP and want to up grade to Windows 7.

  • How to duplicate a Master Page and modify it without Muse crashing?

    I right click on a master page and click on duplicate.This works.But when I try to change the name of the page in double of "eWeek 2014' to 'eWeek 2016' Muse crashes."I have six master pages; I have reproduced and modified for a long time, but yester

  • Make smooth lines

    OK, so I just started with photoshop so I can miss something obvious here, but I'm adjusting my brush tool so that it has little weight on it to help smooth out the lines. In the past, I've always used Gimp to draw and he had this function directly o

  • How to change the name of the site that appears on google?

    We have moved our Web site and it appeared on google as "Hiest events Logo" rather than "Hiest Events."We have looked everywhere to try to change it through Muse but could not find a way to change the way in which it is referenced on Google?... help!