Text Search Index

Hi Gurus,
In text search index is there any way to know which documents are indexed and which are not.
thanks in advance
saby

Actually, I was thinking of using autonomous_transaction at the time in a proc that is called by the trigger as follows:
CREATE OR REPLACE PROCEDURE z_sync_idx
IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
ctx_ddl.sync_index('Z_TEST_IDX');
END;
CREATE OR REPLACE TRIGGER z_test_trig
AFTER INSERT OR UPDATE OR DELETE ON z_test
FOR EACH ROW
BEGIN
z_sync_idx;
END z_test_trig;
My logic was flawed however. This does work for those items marked as pending on insert...the problem is the commit for the current insert hasn't happened yet, therefore, it is not marked as pending. Inserting into the table does kick off the triggger, but doesn't sync the current record as a result.
Looks like we're back to the job...

Similar Messages

  • Problem in while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: GLOBAL_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Looks like you don't have a lexer called GLOBAL_LEXER, but you're trying to use it in the create index statement.
    Maybe it's owned by someone other than the current user - or maybe you meant to write WORLD_LEXER.
    Perhaps you could paste the whole index creation script here.

  • Problem while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: GLOBAL_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Hi,
    I think Probably what has failed is some inner kind of operation that didn't handle the exception correctly, that is dropping the offending object automatically and it issue is raised (error). Therefore you'll have to manually drop the index and re-create the desired index (that might solve your problem)
    - Pavan Kumar N

  • How Context text search index synchronized when updating non index column?

    Hi,
    Please can any one guide me,
    I have update a column in a table which is not indexed in context index.
    After indexing i synchronize still iam not able to see updated column.
    if update index column in table its getting synchronize and i could see the updated columns in contains
    select statement.please give me a solution for this?

    Hi i have a table called customer and Phone relation ship will be customeriid in both tables
    In customer table i indexed comapnyname
    CREATE OR REPLACE PROCEDURE companycontactColumns_Search
    (p_rowid IN ROWID,
    p_clob IN OUT CLOB)
    AS
    M_clob CLOB;
    BEGIN
    FOR c1 IN (SELECT Customeriid,Companyname||' ' AS data
    FROM Customer
    WHERE ROWID = p_rowid) LOOP
    M_clob := M_clob || c1.data;
    FOR c2 IN
    (SELECT ' ' || PHONENUMBER || ' ' || Phonenumber AS data
    FROM Phone
    WHERE parentiid = c1.Customeriid)
    LOOP
    M_clob := M_clob || c2.data;
    END LOOP;
    END LOOP;
    p_clob := M_clob;
    END companycontactColumns_Search;
    Begin
    Ctx_DDL.create_preference('Companycontactsearch2','USER_DATASTORE');
    ctx_DDL.Set_Attribute('companycontactsearch2','Procedure','companycontactColumns_Search');
    end;
    create index customer_text_idx on Customer(companyname)
    indextype is ctxsys.context Parameters('datastore companycontactsearch2 Sync (on commit)');
    Hi if i update phonenumber in phone table its not getting refereshed please guide me.

  • Full text search on varbinary max field containing RTF

    I have a table in sql server 2008 (tblRTF) with the following columns
    ID (numeric) (Primary key)
    RTF (Varbinary(max)) (full text search index is created on this one)
    Doctype (varchar) (contains the document type which is its extension. In my case it is .rtf)
    I am storing RTF files in my 'RTF' field and the string '.rtf' in 'DocType' column. As mentioned, my  fulltext search index is created on 'RTF' field. My problem is - when I write queries using fulltext search for searching for rows, then it returns
    me rows even if I provide words that are supposed to be within RTF tags.
    Following is an example of my query -
    SELECT *
    FROM tblRTF
    WHERE CONTAINS(RTF, 'rtf1')
    The above query ideally should not return me rows because the string 'rtf1' occurs within RTF tags of an rtf and not within the body or text. Yet, when I write the above query, it returns me all the rows from the table
    as each RTF will begin with the string - {\rtf1\
    Can anyone tell me what wrong am I doing here? The very purpose of fulltext search is defeated if the word is searched for within the tags.
    Thanks in advance.

    Hello,
    Check out the links and articles below. It may help you.
    http://arcanecode.com/2009/05/28/full-text-searching-a-filestream-varbinary-max-column/
    http://social.msdn.microsoft.com/Forums/is/sqldatabaseengine/thread/9695c531-ae1f-4dbc-82ba-9e73ac8349ce
    http://stackoverflow.com/questions/726243/full-text-search-on-a-varbinary-column-is-it-possible-to-use-a-mime-type-rathe

  • Full text PDF indexing for website search?

    Hi.  We run a couple of websites on CQ5.5 and are trying to get the PDF files we refer to in the DAM to show in search results that users conduct on our sites.  I've seen a number of references that imply that full text searching of PDFs is possible.  For example:
    http://dev.day.com/docs/en/crx/current/developing/searching_in_crx.html#Full-Text%20Extrac tion
    But thus far I've not been able to figure out what I must do to get it working.  I had expected that if this were possible to do, then it would have worked with the Geometrixx demo site.  It did not.
    Am I chasing my tail here, or is there actually a way to get this done?  If it's possible, links to documentation on how to configure indexing_config.xml and any other required files would be greatly appreciated.
    Thanks.

    Laurent,
    We never got a definitive answer, but we have suspicions that it was due to having upgraded from CQ 5.4 to 5.5.  It seems that the libraries used for the indexing changed during that version upgrade.  When I took our application and installed it on a pristine 5.5 installation, the PDF indexing worked.  It was only our existing installations (two staging, two production) that did not work.  So at least we know it's not our application or CQ in general.
    Sadly, we don't have the resources to rebuild our servers, and we also ran into a separate problem that would prevent us from using the indexing anyway.  It seems that there is no way to prevent cross-site results if you have multiple sites on the same CQ install and they each have their own sections in the DAM where the PDF files are stored.  Would take some custom code to get around the issue, it seems.
    For example, you have site A and site B.
    /content/a  <- Main site A content for pages
    /content/b
    /content/dam/a <- Site A's files in the DAM
    /content/dam/b
    There is no stock way, that I am aware of, to keep searches on site A from turning up PDF results from /content/dam/b (for site B), and vice versa.  That's enough to keep us from using it - a total deal breaker.

  • Why does'nt the Store Search Index update When the Keyword Element's Text is Changed?

    I have a Podcast that has been up for a year with 239 episodes (Arlington Public Schools School Board Meetings) in the iTunes Store.
    The first episodes I created had too many words in the keyword element of an enclosure (more than 12).  The most relevant words I wanted indexed had been truncated.  I made the needed changes to each keyword element and resubmitted the RSS Feed XML.
    An example of such a change was to add the word "speaker" as a searchable word to certain enclosures keeping with the 12 word limit in the hopes that a search for "speaker" would show all speakers in the result.  All of the new episodes work as expected but retro changes have no effect on the search index it only indexes search words when the episode is created.
    What trick can I use without having to recreate each offending episode with an new title and/or GUID?
    Please Help
    Thank you

    I'm afraid the inner workings of the Store software are pretty murky - Apple don't publicize them and a lot of the time one is left trying to estimate what is going on from observation.
    In fact there have been complaints that the Search function doesn't take any notice of keywords at all, only titles, so if they're working for you that's an improvement: but I can't offer any way of resolving the problem you describe, nor assuring you that if you do re-post the episodes as if they were new it would have the desired effect (it would have the undesirable effect of all your subscribers downloading them all over again so you wouldn't be popular).
    You could try asking Support at podcasts 'at' apple.com, but it's a pound to a penny you won't get a coherent answer - they may not even know themselves.

  • Full-Text search is not working with PDF files - SQL Server 2012 64 bit

    Hi,
    We are in the process of storing PDF files in SQL Server 2012 with Full-Text search capability.
    I followed the steps as below and it works fine with word document but not for PDF files. I tried with PDF ifiler 11 & 9 and both are unsuccessful.
    Server/DB Level Settings:
    1)
    Enable FileStream
    2)
    Install Full-Text
    then restart
    3)
    Use [specific db]
    alter
    database [db name]
    add
    filegroup Files
    contains filestream;
    alter
    database [db name]
    add
    file (
    name = N'Files',
    filename =
    N'D:\SQL\DATA') to
    filegroup [Files];
    3)
    Database level
    Settings:
    FileStream:
    FileStream
    Directory name:
    [Set the name]
    FileStream
    non-transacted
    Access: [set Appropriate]
    3a)
    Add a
    datafile to DB
    with filestreamdata
    filetype.
    4)
    Share D:\SQL\DATA
    directory and
    add specific accounts
    with read/write
    access
    5)
    Give bulkadmin
    access to those
    specific accounts
    at server
    level
    6)
    From the
    page (link)
    download and
    install the *.pdf
    IFilter for
    FTS. Link:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542
    7)
    To the
    PATH global system
    variable add
    path to the
    catalog,
    where you installed
    the plugin.
    Default for
    this version is:
    C:\Program
    Files\Adobe\Adobe
    PDF iFilter 9
    for 64-bit
    platforms\bin
    8)
    From the
    page (link)
    download a
    FilterPackx64.exe
    and install
    it. Link:
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=20109
    9)
    Now from
    SSMS execute the following
    procedures:
    -sp_fulltext_service
    'load_os_resources',1
    -sp_fulltext_service
    'verify_signature', 0
    EXEC
    sp_fulltext_service
    'update_languages';
    -- update language list
    EXEC
    sp_fulltext_service
    'restart_all_fdhosts';
    -- restart daemon
    reconfigure
    with override;
    10)
    Restart the
    server
    11)
    select document_type,
    path from
    sys.fulltext_document_types
    where document_type
    = '.pdf'
    -select
    document_type,
    path from sys.fulltext_document_types
    where document_type
    = '.docx'
    12) Results are OK.
    Following is my Table /Index/ catalog script:
    CREATE
    TABLE dbo.DocumentFilesTest
    DocumentId  INT
    IDENTITY(1,1)
    NOT NULL
    PRIMARY KEY,
    AddDate datetime
    NOT NULL,
    Name nvarchar(50)
    NOT NULL,
    Extension nvarchar(10)
    NOT NULL,
    Description nvarchar(1000)
    NULL,
    FileStream_Id UNIQUEIDENTIFIER
    ROWGUIDCOL NOT
    NULL UNIQUE DEFAULT
    NEWSEQUENTIALID(),
    FileSource varbinary(MAX)
    FILESTREAM DEFAULT(0x)
    go
    --Add default add date for document   
    ALTER
    TABLE dbo.DocumentFilesTest
    ADD CONSTRAINT
    DF_DocumentFilesTest_AddDate
    DEFAULT sysdatetime()
    FOR AddDate
    EXEC
    sp_fulltext_database
    'enable'
    GO
    IF
    NOT EXISTS
    (SELECT
    TOP 1 1 FROM sys.fulltext_catalogs
    WHERE name
    = 'Ducuments_Catalog_test')
    BEGIN
    EXEC sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'create',
    'D:\SQL\PDFBlob';
    END
    --EXEC sp_fulltext_catalog 'Ducuments_Catalog_test', 'drop'
    DECLARE
    @indexName nvarchar(255)
    = (SELECT
    Top 1 i.Name
    from sys.indexes
    i
    Join sys.tables
    t on 
    i.object_id
    = t.object_id
    WHERE t.Name
    = 'DocumentFilesTest'
    AND i.type_desc
    = 'CLUSTERED')
    PRINT @indexName
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'create',
    'Ducuments_Catalog_test', 
    @indexName
    EXEC
    sp_fulltext_column
    'DocumentFilesTest',
    'FileSource',
    'add', 0,
    'Extension'
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'activate'
    EXEC
    sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'start_full'
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    ENABLE
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    SET CHANGE_TRACKING
    = AUTO
    ALTER
    FULLTEXT CATALOG
    Ducuments_Catalog_test REBUILD
    WITH ACCENT_SENSITIVITY=OFF;
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'pdf'
    'BOL12006553.pdf'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\BOL12006553.pdf',
    SINGLE_BLOB)
    AS BLOB;
    GO
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'docx'
    'test.docx'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\test.docx',
    SINGLE_BLOB)
    AS Document;
    GO
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'BILL')
    Returns nothing. it should come from PDF file
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'TEST')
    Returns from word document as follows:
    2           2014-06-04 10:11:41.393            test.docx docx           
    NULL   [BINARY Value]  [Binary Value]
    Any help is appreciated. Its been a long wait.
    Thanks,
    Vel
    Vel Thavasi

    Hello,
    Did you check the fulltext log files for more details about the errors. If the filter isn’t working, there should be errors in the error log file.
    The following thread is about similar issue, please refer to:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/69535dbc-c7ef-402d-a347-d3d3e4860d72/sql-server-2008-64bit-fulltext-indexing-pdf-not-working-cant-find-ifilter
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • How do I get Oracle Text to index files on a file server?

    I am new to Oracle (I'm a MS-SQL DBA looking for a Full-Text Search solution that is better than linking to a MS index server.)
    So - Here's the objective:
    I have Oracle Server(Express) installed on a Windows server.
    I would like for Oracle to build a Full-Text Catalog of the files on a separate file server based on file paths in a table in the database.
    (No desire to store terabytes of images and documents inside the database)
    I can get Oracle text up and running, using the URL_Datastore:
    CREATE TABLE files (id NUMBER PRIMARY KEY, issue_id NUMBER, path VARCHAR(255) UNIQUE, ot_format VARCHAR(6), ot_version VARCHAR(10));
    The Compaq server is a remote windows server on my local workgroup, so the fully qualified path is just "compaq" and the URL is valid:
    INSERT INTO files VALUES (9,9,'file://Compaq/FTQ/00000003.pdf',NULL,NULL);
    INSERT INTO files VALUES (13,13,'file://Compaq/FTQ/01.txt',NULL,NULL);
    CREATE INDEX file_index ON files(path) INDEXTYPE IS ctxsys.context
    PARAMETERS ('datastore ctxsys.URL_DATASTORE format column ot_format');
    but when I enter:
    Select * from CTX_User_Index_errors, I see the following errors:
    DRG-11609: URL store: unable to open local file specified by file://Compaq/FTQ/00000003.pdf
    DRG-11609: URL store: unable to open local file specified by file://Compaq/FTQ/01.txt
    Did I miss something?
    Do I need to install anything on the file server?
    I would like to convince my company that Oracle can be much quicker than Microsoft's Indexing Service because it can avoid joining two large result sets (one result set from Full_text (indexing service) and one for specific data contained in fields in the MS-SQL database.) Full Text Searches commonly take 40 - 60 seconds where there are 1.5 million multi-page PDF files for a particular set that I sample search on. Without this massive join, I believe I can get the search to run in under 10 seconds.

    Thank you!
    File_Datastore worked fine.
    I was staying away from File_Datastore because the information I gathered from googling suggested that file_datastore would only work locally.
    Now I just have to get Oracle to pull data out of tables in a MS-SQL database on the local network (don't have a clue yet), and then have it index compiled file paths.
    Then MS-SQL can query Oracle with index and full-text criteria and Oracle can send back a result set
    It may sound like a bad way of performing Full-Text Queries, but anything will be better than the way things are currently running. We are currently performing Full Text Searches on a table that is rebuilt nightly, so the table containing millions of file paths is not live..
    It would be so much better if we just migrated to Oracle, but we currently do not have the resources.

  • TREX/Content Server: Full text searches not working

    I've setup TREX and Content Server in a sandbox environment and have been trying to get my head around DMS.  I've completed what I've believed are the required steps (outlined below) and I have submitted 12 documents of various types into the respository.  I'm able to perform meta data searches but not full text searched.  Any ideas what I might have missed?
    Much thanks!!!!
    /Greg
    0. Defined connection to TREX Server: TREX_42 (SM59); Using TREXADMIN all services are green.
    1. "Define Document Area" - DMS is present; assumed I would use this one.
    2. "Defined Indexing Readiness" - selected "Index Release" & "Classify" for DMS; set "Search Srv" to DMS_TEST
    3. "Define Content Respository" - Created Z_CR_001 and maintained it as follows:
      - Documentation Area: Document Management System
      - Storage Type: HTTP content server
      - HTTP Server:  srv-sptxd2-dal.intervoice.int  (content server)
      - Port: 1090
      - HTTP Script: ContentServer/ContentServer.dll
      - Physical Path: /usr/sap/IRD/SYS/global/
    4. "Define Content Categories" - Created ZCSSTRUCT; maintained as follows:
      - Document Area: DMS
      - Content Rep: Z_CR_001
    5. Checked CSADMIN for Z_CR_001 - All Green
    6. Went into SKPR07 (monitoring tab); entered DMS_PCD1 and "Indexing possible", "Auto indexing" and "DocArea activated" is all green.
    7. Went into SMRO
      - created SSR: "Search Server ID" = DMS_TEST, "Search engine" = DRFUZZY
      - Verified "RFC Destinations"; passed tests; all green.
    8. Went into SKPR07; using DMS_PCD1 as document class. 
      - executed "Clean up table entries"
      - deselected "Limited to selected language"
      - executed reindex. "Copied successfully from search engine"
      - Selected the created index category
      - Set the "Document area" indicator
      - execute "Trigger process"; 12 documents referenced
    9.  Going into TREXADMIN I can see the created index; however the document count = 0.  Also there is no queue created -- should there be?
    Edited by: Greg Preston on Aug 5, 2009 9:11 PM

    Dear
    this link will help you,
    TREX Architecture
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/71/b26b2bfdc4eb47ab5432e8444290ce/content.htm
    File Formats Supported by TREX
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/55/cb634114b78047e10000000a1550b0/content.htm
    Detail about TREX Configuration  (Basic to advance)
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/46/bab1d48b0a1514e10000000a114a6b/content.htm
    Regards
    Tushar Dave
    Edited by: Tushar Dave on Aug 6, 2009 9:59 AM

  • Document Management / Full Text Search in Projects & SolMan Directory

    Hello experts!
    I want to implement Full Text Search in my SolMan and therefore need your help.
    I have installed Trex 7.10 and am already able to search within my Solution Database (Problems/Solutions).
    Now I want to be able to search within all documents in my SolMan Installation - e.g. Roadmaps, SAP Scenario Descriptions or my own uploaded documents.
    In the IMG I already found the section Document Management but I cannot get the needed RFCs (IMSDEFAULT and IMSDEFAULT_REG) working.
    There is already a RFC called IMSDEFAULT, which was created during the installation of Trex and runs the
    Registered Server-Program: Trex_SOT_20080327090311
    I tried to configure my RFCs according to the IMG but, as I said, cannot manage to get them working.
    I hope anybody has an idea or an guide on how to implement Full Text Search!
    Please be so kind and provide help - thanks in advance!
    Best regards
    Gerold

    Gerold,
    I am running into the same issues because we want to do full text search on project documentation within Solution Manager. The default RFC connections IMSDEFAULT_REG and IMSDEFAULT do not work with the standard settings.
    We created one index for IWBSOLAR so maybe I also need to check IWBPROJ in SKPR06 for project documentation and create a new index for this one ?
    The indexing for IWBSOLAR now fails although there seem to be over 6000 documents marked but none are put in the index. After indexing there is a list of the documents all with code 6401 but cannot find any where what this code means. It seems to be succesful as all entries are green.
    Any help/suggestions on this topice would be greatly appreciated.

  • Full text search on PLM Web UI

    Hello,
      Full text search functionality in DMS with TREX solution , is working with SAP GUI. ( Original is checked in CV01N or CV02N )
      Same functionality is not working with PLM Web UI .
    Is there any setting has to be activated for this.
    Thanking you,
    Regards,
      Satya

    Hi ,
    Yes.  When I checkin Document in CV01N , then I can find in CV04N.
      But if I check original in PLM Web UI , then I can not find in CV04n.
      I assume that indexing will not problem as it is working in SAP GUI case.
       Indexing functionalities ( TREX ) are not called when Document is checked in through PLM Web UI.
      Where we can check these settings ?
    Thanking you,
    Regards,
      Satya

  • External URL Mapping and Full-Text Search Generation

    I have a dilemma,
    I can map external URL all fine e.g.
    <map version="1.0">
    <mapID target="Welcome" url="http://docweb.net/help/test.html"/>
    </map>
    but the html files are not contained in the local directory, and thus the jhindexer is unable to (as far as i know anyway) generate full-text search using the externally linked html files
    also from using a decompiler I have found that you can "force" it to generate the help for external urls (as the indexer prefixes all urls with the "file:" protocol, but I can only get this to work under debug mode, else it gives a heapSpace exception, so I wish to avoid having to do anymore unneccesary digging/decompiling.
    Also just as a gripe, why is most of the java help source code unavailable, and the Indexer seems to be very inflexible (ontop of not having any documentation)

    That's the way it worked in X4 and later versions up but not including RH8. RH8 includes phrase searching in webhelp.
    See www.grainge.org for RoboHelp and Authoring tips

  • Oracle text search - special characters issue

    Hi.
    I'm facing a real annoying problem with text search query, and everything I've tried failed...
    I have a table with a varchar column indexed by text index. The column contains special characters like '&', ',' and mainly- '-'. Since I want to disregard these special characters for searches I have created a basic lexer of type skipjoins for the column index. So now, the phrase 'aaa-bbb something'. for example, can be searched without '-', like this: 'aaabbb'. But I want to make it possible for this phrase to be searched with and without '-'. So, that when the user enters 'aaabbb' he will get the same results as when he enters 'aaa-bbb'.
    In other words, This condition:
    WHERE CONTAINS(column, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaabbb'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    Will return the same results as this condition:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaa-bbb'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    Since text query treats the '-' sign as a minus sign and searches for 'aaa' which doesn't contain 'bbb', the only way I found to fix this was to wrap the search text with {}. like this:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaa-bbb}'
    ||'</seq></progression> </textquery> </query> ' ,1)> 2
    This all went very well, until I wanted to create a relaxation query. like this:
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaab}'
    ||'</seq><seq>'
    ||'{aaab}'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2
    In this case, I would expect the first part of the query to return no results (since it's not the whole word) but the second part, using '%' should have returned the record of 'aaa-bbb'. It doesn't. It will only return my result if I remove the '{}' for the second part. I can't do that, because the exact same search, when containing '-', will not return the expected results when I remove the braces (the sign is treated as minus sign):
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'{aaab}'
    ||'</seq><seq>'
    ||'aaa-b'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2
    So I now have no solution. My question is- How can I create a query that will disregard the minus sign and treat it as a regular sign, but would still handle percentage sign as a special sign. So that I could run a query like the last example and will get the results of searching the phrase 'aaa-b%'?
    In short, and to simplify my question, I'm looking for a way to escape all characters (not only the minus sign) except for a specific character. Kind of like 'unescaping' a specific character (the '%' sign) within braces {}. Or, another way would be to remove the space that is added to the phrase inside the braces at the end of the word, preventing me from adding "%" at the end of the word, outside the braces.
    Thanks you,
    Nili

    I'm looking for a way to escape all characters (not only the minus sign) except for a specific character. Kind of like 'unescaping' a specific character (the '%' sign) within braces {}What about if you apply a function like regexp_replace to escape all known "specific characters", and then unescape the particular specific character again back as e.g. in
    SQL>  select 'a.da-df%df*' str, replace (
                                                   regexp_replace (
                                                        'a.da-df%df*',
                                                        '([[:punct:]])',
                                                        '\\\1'
                                                   str2
      from dual
    STR         STR2         
    a.da-df%df* a\.da\-df%df\*
    1 row selected.i.e. don't escape with curly brackets but with the backslash character.
    You can then use this string in your query like in
    WHERE CONTAINS(r.POI_NAME, '<query> <textquery grammar="context"> <progression><seq>'
    ||'aaab'
    ||'</seq><seq>'
    ||'aaa\-b'
    ||'%</seq></progression> </textquery> </query> ' ,1)> 2

  • 11g Search Index is returning duplicate entries

    We are building up our 11g environments in preparation for migrating over from 10g. In one of our env's (UAT), we have an issue where, if we do a search on a Metadata field or Full Text value, the search engine is returning duplicate results - i.e. each document is listed twice.
    I have done several full rebuilds, including one where I deleted the IdcColl1 folder before kicking it off. No luck at fixing the issue.
    The environment is configured for Full Text searching using Sql Server 2005.
    I am not worried so much about finding out why this is like it is, I just want to fix it because I am running short of time. Any ideas?
    Thanks,
    Alec

    Srinath
    Thanks for your suggestion. I tried the process you described and did a full Reindex (which took several hours). However, when I did the search again this morning, I am still getting the duplicates.
    I am now thinking of exporting all the content using Archiver, reindexing the empty environment and then chcking that the index is empty. This way I have aclean sheet to start with. I would then reimport the content and do another reindex. Hopefully then, the index should be clean. My suspision is that after I have done the export and reindex, that there will still be stuff in the index. Have to wait and see.....
    Cheers

Maybe you are looking for