Indexing of files txt only text Oracle

Hello

I have this work on a 10g database and I was wondering why it doesn't in this case particularly in 11g. I use the following code to the index of my files:
DROP INDEX ksk_file_table_ctx1;

BEGIN
   ctx_ddl.drop_preference ('CCP_OC_LEXER');
   ctx_ddl.create_preference ('CCP_OC_LEXER', 'BASIC_LEXER');
   ctx_ddl.set_attribute ('CCP_OC_LEXER', 'MIXED_CASE', 'NO');
END;
/

CREATE INDEX ksk_file_table_ctx1 ON ksk_file_table(blob_content)
INDEXTYPE IS
ctxsys.CONTEXT PARAMETERS ('LEXER CCP_OC_LEXER sync (on commit)');



BEGIN
   DBMS_STATS.gather_table_stats ('CCP_OC', 'ksk_file_table',
                                  CASCADE      => TRUE);
END;
Now, if I try to search for content by using this query:
SELECT score (1) relevance, subject file_name, ID, ctx_doc.snippet snippet
  FROM ksk_file_table
 WHERE contains (blob_content, :p712_subject, 1) > 0
I get only a few results if I struck a text file and I'm not able to pick up on anything that it is stored in other types of document (pdf, doc and others).

No idea why?

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

I found that, although it shouldn't make a difference, sometimes he allows to explicitly declare the filter in your settings when you create the index:

CREATE INDEX ksk_file_table_ctx1
ON ksk_file_table (blob_content)
INDEXTYPE IS ctxsys. FRAMEWORK
PARAMETERS
("LEXER CCP_OC_LEXER
FILTER CTXSYS. AUTO_FILTER
Sync (on commit)');

Tags: Database

Similar Questions

  • Our clients have trouble downloading a text file (.txt) on our website version 33.0 (using a filestream);

    Our clients have trouble downloading a text file (.txt) on our site version 33.0 (using a filestream). It worked well in previous versions.

    The error message they get reads as follows:
    {name of file and download user path} not can be saved, because the source file could not be read.

    Thank you
    Mike

    It is an old relative to corrupted downloads (http://kb.mozillazine.org/Source_file_could_not_be_read) error message, but has become more widespread in Firefox 33.

    To make a long story short... before, if the server sent a response which was smaller than the specified size, the gap has been ignored and the download was considered to be very good. From Firefox 33, a file that is smaller than the specified size is considered as being damaged.

    This comment in the bug tracking system has more information: https://bugzilla.mozilla.org/show_bug.cgi?id=1083090#c8

  • Accessory JSP code for only text files

    Hi all
    I want to use the code in the file text on fire to open a text file and parse each line.

    I have a JSP page which I use to attach files. But the JSP attaches files to binary format and so the text file does not recognize these binaries.

    How can he do join text files or how to convert these binary text files?

    My text file code is: -.

    text file = TextFile();
    textFile.open(name: fileHolder.file_filename);

    logMessage ("- file exist? - >" + textFile.exists);

    {foreach (line textFile.lines)
    logMessage ("-The LINE is->" + line);



    }

    textFile.close ();

    And my JSP code is: -.

    < td > < input id = "attachmentFile" type = "file" < f: fieldName att = "fileHolder.file" / > value = "" class = "input" > < table > "

    There is a drawback to doing it this way (many things in memory), but unless the files are big, I suggest to try this:

    // build the string from the file just opened
    stringReadFromFile = String(binary : fileHolder.file, encoding : "ascii")
    

    Once you get it to a string, you might analyze it looking for '\n' line by line. Let me know if you need this code and I'm going to him as well.

    If the files are large, you can store the file in a temporary directory, and then reopen it using text file you described below.

    Dan

  • Index.HTML is read only file, can be seen but not changed, how do I cancel the setting?

    Hi, I don't know when or how I made this file "read only".

    For this reason, I am unable to put it on a server, please help.

    Dreamer101.1

    Is the file on your hard disk or on modified such as a CD - R media?

    If it's on your hard drive, right click and select Properties (or get information on Mac). In Windows, uncheck the 'read only' and click on apply. In Mac open sharing and permissions drop-down, click the lock and enter your password (if necessary), and then set each user the privileges of the name & read/write, and then close the info window.

    If it's on a CD - R, you must copy it to your hard drive so it can be modified and put it on a server.

  • encrypt a file .txt in pl/sql

    Hi all

    I want to encrypt a .txt file and will result in an encrypted text file using oracle pl/sql 10g.

    After that, I want to decrypt this encrypted file .txt.

    How to do this? then it is possible?

    Database 10g release 2 version

    Remember to use UTL_FILE and DBMS_CRYPTO

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/d_crypto.htm#i1005082

  • opening files Office2010 with Portal Oracle (10g)

    Hello

    We are facing a problem with IE8 in opening some files of office 2010 (.docx, .xlsx etc). They are considered one zipped files (which they are, in fact) instead of files Word or Excel, the browser only propose to download the disk and don't not to see them in the Office application.

    I thnik the solution is to add these mimic types in the Portal stuff, but where?

    application/vnd.ms-word.document.macroEnabled.12 .docm
    application/vnd.openxmlformats-officedocument.WordprocessingML.document docx
    application/vnd.openxmlformats-officedocument.WordprocessingML.Template dotx
    application/vnd.ms-powerpoint.template.macroEnabled.12 potm
    application/vnd.openxmlformats-officedocument.PresentationML.Template potx
    application/vnd.ms-powerpoint.addin.macroEnabled.12 MFPP
    application/vnd.ms-powerpoint.slideshow.macroEnabled.12 GPSP
    application/vnd.openxmlformats-officedocument.PresentationML.Slideshow ppsx
    application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
    application/vnd.openxmlformats-officedocument.PresentationML.Presentation pptx
    application/vnd.ms-excel.addin.macroEnabled.12 xlam
    application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
    application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
    application/vnd.openxmlformats-officedocument.SpreadsheetML.Sheet xlsx
    application/vnd.ms-excel.template.macroEnabled.12 xltm
    application/vnd.openxmlformats-officedocument.SpreadsheetML.Template xltx

    Oracle 10 g portal does not support Office 2010 files. The recommended way to move forward is to use the portal Oracle 11 g with a version of database that supports filtering and indexing of files Office 2007 +.

    Note check MOS [url https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1377493.1] 1377493.1, "how to add a new mimetype for MS Office 2010 In Portal?" for more information.

    Thank you
    EJ

  • I'm not able to open my documents pages. I get the message: the requested index.xml file is missing.  I wonder if it is because I have updates 10.11.5

    I have an iMac (20-inch, mid 2007) processor 2 GHz Intel Core 2 Duo 3 GB 667 MHz DDR2 SDRAM memory and recently updated to el capitan 10.11.5.  I have Pages ' 09, and I can't open my documents pages and get the message:

    The index.xml file required is missing.

    I now see that it says return to default pages 5.6.2.

    I can open them as 5.6.2 then save tehm in pages ' 09?

    Can someone help me with easy tips?

    Only the Pages ' 09 or old documents contain internal index.xml file. When you try to open a document in Pages ' 09 Pages v5, you get this dialog on the missing index.xml. The key is to stop Pages ' 09 and then double click on the document to open it in v5.6.2 Pages.

    Pages ' 09 will not leave by simply clicking on the red light on the title bar of the document. As long as the Pages ' 09 continues to run, it will intercept all attempts to open any document Pages, including incompatible versions of the v5 Pages.

    This has nothing to do with OS X 10.11.5. He has been a user focused on the issue since October 2013.

  • automatically load the different files.txt

    Hello

    I have an app that loads a file.txt previously created by a user... When the user lanuch of VI application ask the path of the file to load!

    This user can create various files that configure the various points for his test...

    What I want to do is launch the app and be able to load different files without having to ask the way once again automatically!

    For example, the user create 4 files (point1.txt, point2.txt, point3.txt & point4.txt) my application could support only a single file, but I want to make a loop which allow the user to define the test sequence: point1.txt for 1 minute then point3.txt 2 minutes... etc...

    Thanks for your help


  • Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    * original title - file details *.

    Hello

    Could you explain what is exactly? What do you mean by off the screen?

    According to my way of thinking, you want to export the file details of all your files on your HARD drive to an excel file or a txt file. If I'm right in this case, it is not possible to export the details of each & every file in the excel sheet.

  • Blue error screen when indexing the files on Vista computer

    Original title: Problem Event Name:_BlueScreen__ OS Version:_6.0.6002.2.2.0.768.3__ Locale ID:_1033__

    BCCode: f4

    BCP1: 00000003

    BCP2: 872E2D90

    BCP3: 872E2EDC

    BCP4: 81E33710

    OS version: 6_0_6002

    Service Pack: 2_0

    Product: 768_1

    Before I tear off my hard drive and throw it out the window, please tell me I can recover from this error. The above error when I try to rebuild my Index. I regularly get messages "index has stopped working". I select the indexer rebuild to the original configuration. He tried to do, but stopped after the indexing of files about 1700, restarted, and then returned with the above event. I had several problems with my OS for a few days. I have run chkdsk and chkdsk/r several times. I use Norton 360, analysis tell me that all files are up to date, Windows update is performed regularly and is up to date. I was initially received an error "parameter has exceeded its normal range" train SMART. I disabled this option considered, but service to have problems with my system. Everything seems to work okay in safe mode, where I am now. I am at a loss. I have a recovery partition on my drive, but did not know what options to use. I have the installation CD Vista too, but avoided to reinstall, have done this before for another question. For any help or suggestion will be greatly appreciated. Please see my other post earlier this week, I was only partially successful with this process. Thank you very much!

    Hello

    If a PC remove all power to the system:

    Check and replace the cards, memory and cables (at both ends) actually remove and replace
    -do not just tight. Memory could be the problem, so if you have more than 1 stick swap
    in and out to see if the problem follows a stick or try the new memory. How to test
    memory in the next message.

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

    Pick up the pieces after a computer crash - includes "what to do if Windows doesn't.
    start correctly'
    .
    http://Windows.Microsoft.com/en-us/Windows-Vista/picking-up-the-pieces-after-a-computer-crash

    Check this thread for more information using BlueScreenView, MyEventViewer and other methods
    to troubleshoot the BlueScreens - top 3 responses (+ 1 other).

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/3deab2fa-4000-4136-8c78-a3d22b1db009

    We can analyze the minidumps if make you it available to the SkyDrive or another file
    sharing sites (such as MediaFire). If you have problems to download the copy of minidumps
    for the office or in the Documents folder and download them from there.

    ZIP or download the content of the C:\Windows\minidump

    Use SkyDrive to upload collected files.
    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

    ================================================================

    BCCode: F4 0x000000F4

    Check and reinstall the cards memory and cables (at both ends where possible) actually remove and
    replace - do not just tight. On a laptop computer on all you can do is reinstall the memory and possibly check
    the contacts/connection to the hard drive. Memory could be the problem, so if you have more than 1
    stick swap them in and out to see if the problem follows a stick or try the new memory. Antivirus/anti-
    spyware/security programs have been known to cause or have a role in this matter.

    More general patch updates day and low level chipset BIOS drivers and other software to control.
    Also check wiring for hard drive.

    ======================================================

    Bug Check 0xF4: CRITICAL_OBJECT_TERMINATION

    CRITICAL_OBJECT_TERMINATION bug control has a value of 0x000000F4. This indicates that a process or thread crucial to system operation has unexpectedly is released or ended.

    Important info if you received a STOP Code

    If you received a blue error screen, or a stop code, the computer stopped abruptly to protect against data loss. A hardware device, its driver or software might have caused this error. If your copy of Windows is shipped with your computer, contact your computer manufacturer. If you purchased Windows separately from your computer, Microsoft provides support. To find contact information for Microsoft or the manufacturer of your computer, Contact Support.

    If you have experience with computers and try to recover from this error, follow the steps in the Microsoft article solution STOP (blue screen) errors in Windows.

    These actions could prevent a mistake like this does not happen:

    1. Download and install updates for your computer from Windows Update device drivers.
    2. Scan your computer for computer viruses.
    3. Check your hard drive for errors.

    CRITICAL_OBJECT_TERMINATION parameters

    The following settings are displayed on the blue screen.

    Parameter Description

    1

    The Terminal object type:

    0 x 3 : Process of

    0 x 6 : Thread

    2

    The endpoint object

    3

    The name of the process image file

    4

    Pointer to a string ASCII containing an explanatory message

    Cause

    Several processes and threads are necessary to the functioning of the system. As they are completed for some reason, the system can no longer function.

    BCCode: F4 0x000000F4<-- read="" this="">
    * 1241.html http://www.faultwire.com/solutions-fatal_error/A-process-or-thread-crucial-to-System-Operation-has-0x000000F4-

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

    Look in the Event Viewer to see if something is reported on those.
    http://www.computerperformance.co.UK/Vista/vista_event_viewer.htm

    MyEventViewer - free - a simple alternative in the standard event viewer
    Windows. TIP - Options - Advanced filter allows you to see a time rather
    of the entire file.

    http://www.NirSoft.NET/utils/my_event_viewer.html

    Here are a few ways to possibly fix the blue screen issue. If you could give the blue screen
    info that would help. Such as ITC and 4 others entered at the bottom left. And all others
    error information such as codes of STOP and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during ' blue screen of the.
    death ' crashes and displays information about all accidents of a table.
    Free
    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by drivers of old or damaged, in particular the video drivers
    However, there are other causes.

    You can do mode if necessary safe or the Vista DVD command prompt or
    Options recovery if your system is installed by the manufacturer.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    You can try a system restore to a point before the problem started when one exists.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

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

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe)
    program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Does not work
    tell all possible driver issues).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, part 3
    keyboard and mouse, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

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

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart
    quit unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting, STOP error blue screen Vista
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

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

    In some cases, it may be necessary.

    The Options or Vista recovery disk Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • You can convert a voice file to a text file

    I used before Vista speech recognition capabilities, however, I recently bought a digital recorder and the system will only allow me to download the file.  Is there a way to convert the voice file downloaded in a text file?

    Hi TOLLERMAN1,

    Given that the text file is not a supported audio format. You will not be able to convert the voice file to a text file.

    Concerning

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to convert a .jpg file lists to text

    I need to compare two lists of names of .jpg via the function VLOOKUP of Excel files. There are approximately 20 000 jpg files in each list. How to convert jpg text file lists only if the text can be copied in Excel 2010? Any help will be greatly appreciated.

    I need to compare two lists of names of .jpg via the function VLOOKUP of Excel files. There are approximately 20 000 jpg files in each list. How to convert jpg text file lists only if the text can be copied in Excel 2010? Any help will be greatly appreciated.

    You must use an OCR (optical character recognition program).

  • I need to index pdf files in my laptop running windows 7

    original title: indexing of PDFs in Windows 7

    I need to index pdf files in my laptop under windows 7.i first installed adobe ifilter and then foxit ifilter. Both provide me results of research of goos. I mean that they are not my content as windows does for my MS Office files indexing.

    technology trends

    (INDEX NOT ENCRYPTION. THIS METHOD WORKS FOR WIN 7 64 BIT)

    Just as an update. I have Windows 7 Ultimate 64 bit. I had the same problems initially, then did the following which sets. Certainly not enable indexing of encryption. (Indexing encryption will allow any person who uses your computer to get passwords and personal information. In addition, it may screw up the BONE!)

    1 go to Indexing > advanced > File Types and remove the verification of PDF. Press OK > press Close

    2 uninstall the components IFilter that you have regarding the search for PDF files

    3. unless you have Adobe Reader 9.3 or higher, uninstall.

    4. go to Adobe.com and install Adobe Reader 9.3 or higher if not already done.

    5. download and install Ifilter 9 from Adobe (Win 7 64-bit only) http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025

    6. go back to index > advanced > File Types and check PDF again.  The press of the tab 'Index' (WAIT)

    7. try and keep all your PDF files in a single folder.

    8 search for a PDF file in the search box of Windows (top-right). You should see a prompt message to the top of the screen telling you that indexing is disabled, then ask you if you want to market. Click the message, and then click to activate Indexing.

    9 go back, indexing, and then click on rebuild (the reconstruction will take hours and will not work until it is made!)

    If you did like I said above, you will be able to click on a start button and search PDF files and content within them, including those that you may have used OCR.

    Good luck. I feel happy now that I can use my Fujitsu Scanner $600 that I picked up at Goowill for $8.

  • Encrypt a file when exporting to Oracle

    Can encrypt us an entire file when exporting to oracle? I'm generating a CSV file but finally I need to post it on my application, but the only problem is there encryption is implemented on demand in a way as if the file is downloaded from the application, then the file will be automatically encrypted and all by downloading the same file, it will decrypt and display.

    But when I generate the file is the database directly, and then when my shell script to move the file to the DB server to the application server and finally download... does not work because the application attempts to decrypt the file while the file is not encrypted to first step...

    Is there anyway that we can directly encrypt with a key that can be the same password that the application uses too.

    Let me repeat in case you missed it:

    It's your code that creates the CSV file.

    If you can do WHAT you want with the data and the file whenever you want to. If you want to encrypt go ahead.

    Oracle database cannot create or manage CSV files. Client application programs and code to do. Such a file is located in the file system. And it is accessible via standard kernel I/O calls. If you want to encrypt the file created by your application code, then update your application code to support this. It is not a problem of database Oracle.

  • File txt else reading machine

    Hi guys,.

    I am facing a problem that you are trying to read a .txt using ODI (11.1.1.7).

    My architecture has 3 servers. First with ODI installed with FDMEE agent, second with Essbase server and third Oracle database

    I have an interface that loads of .txt file which is on another machine (Essbase). When I run the package that contains the interface using the local agent, it runs successfully, but when I run it using my FDMEE agent it omits this file could not be found.

    I use a network path to load the file (such as \\ADDRESS_ESSBASE_MACHINE\... \File.txt).

    What can happen so he can run correctly with the agent local and failure with the FDMEE agent?

    Thank you

    Kind regards.

    Hello

    If you read files from another machine, autonomous agent configuration is recommended.

    If the FDMEE agent is not configured on the computer where the file exists, it cannot read the file.

    you have other ways to do this activity, using ftp or sftp if you have network configurations in place.

    hope that answers your question

    Kind regards

    Vinay

Maybe you are looking for

  • organize applications

    When I press and hold down on an application, no agitation or X appears, just 'share' and sharing icon. What should I do my apps?

  • Why my YouTube video is lagging after a little?

    When I open a video on youtube, the video is played for the first 3-4 seconds, freezes and plays so normal as the rest of the time. I have read some people with the same problem and they have disabled their Add on Adblock Plus. I use this add-on, but

  • Windows XP for the law enforcement agency Computer Crimes

    Is there a way to get a copy of the Windows XP operating system to create a virtual machine for my computer crimes officer.  She tries to work with a suspects computer that runs Windows XP SP 3 and she needs to create a duplicate in order to leave th

  • Burning of pictures I cannot write files & not photo.

    I'm putting all my photos on cd... When I try to get all the files getting is & no pictures... This is why I can't play them on CD-DVD player. I have miniature them before making the CD, but it doesn't help. Any help...

  • Cisco Connect software

    Hello and sorry for my bad English. I want to find the Cisco Connect software for my e2000. I format my pc and I can find for my router installation cd. On the site I like the driver for my router but I find not software Cisco Connect, I want than th