InterMedia Text Component
After reviewing documentation on interMedia 8.1.7., it appears that Oracle ConText is now incorporated as the InterMedia Text component. As I read the interMedia documentation there is information on Audio, Video and Image and there doesn't appear to be much on the Text Component. Do I rely on previous 8.1.5 or 8.1.6 documentation or the old Oracle ConText documentation? Basically where is the best current documentation for the interMedia Text component? I will greatly appreciate an accurate response.
Oracle Text (aka interMedia Text) is part of the Oracle9i release. interMedia Text is part
of the Oracle 8.1.x release.
The OTN web page for Text is:
http://technet.oracle.com/products/text/
We'll be uploading 9i content very soon.
Similar Messages
-
How do I use XSLT & XML is stored in InterMedia Text.....
I use interMedia Text to store XML document. How do I use the XSLT Processor API to transform the data which is searched by XML SQL Utility??
//***Source Code
public Document xmlquery(String tabName,String xslfilename)
Document xmlDocToReturn = null;
String xmlString;
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//initiate a JDBC connection
// initialize the OracleXMLQuery
OracleXMLQuery qry = new OracleXMLQuery(conn,"select XML_TEXT from bookstore where contains (xml_text,'John WITHIN authorsec')>0");
// structure the generated XML document
qry.setMaxRows(2);
// set the maximum number of rows to be returned
// get the XML document in string format
xmlString = qry.getXMLString();
// print out the XML document
System.out.println(" OUTPUT IS:\n"+xmlString);
// get the XML document in string format
xmlDocToReturn = qry.getXMLDOM();
conn.close();
catch (SQLException e) {
return xmlDocToReturn;
xml = (XMLDocument)query.xmlquery(args[1],args[0]);
// Instantiate the stylesheet
XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
XSLProcessor processor = new XSLProcessor();
// Display any warnings that may occur
processor.showWarnings(true);
processor.setErrorStream(System.err);
// Process XSL
DocumentFragment result = processor.processXSL(xsl, xml);
Thank you.
nullYour problem here is that when you store an XML document in a CLOB and search it using intermedia, when you do a query like:
SELECT xml_text
FROM bookstore
WHERE CONTAINS(xml_text,'John WITHIN authorsec')>0
The output from the XML SQL Utility using getXMLDOM() looks like this:<ROWSET>
<ROW>
<XML_TEXT><![CDATA[
<bookstuff>
<authorsec>
<name>Steve</name>
</authorsec>
etc.
</bookstuff>
]]>
</XML_TEXT>
</ROW>
</ROWSET>with the document as a single text value (it's actually just a text node, not a CDATA node) but the above illustrates conceptually that the whole XML document is one big text node.
To transform this you'll need to parse that XML text into an XML document in memory by passing constructing a StringReader() on the text value and parsing that reader.
null -
How to email text from a text component in my applet on a the host server ?
How to email text from a text component in my applet on a the host server, back to my email address ?
Assuming I have Email Form on the host server.
Help will be appreciated.You can do like below
=REPLACE(Fields!Column.Value," " & Parameters!ParameterName.value & " ","<b>" & Parameters!ParameterName.value & "</b>")
The select the expression and right click and choose placeholder properties
Inside that set Markup type as HTML
then it will highlight the passed parameter value in bold within the full xml string
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
InterMedia Text with USER_DATASTORE and ORA-03113
Hi,
I have problems using Oracle's InterMedia Text-index with a
USER_DATASTORE. I'm using Oracle 8.1.7 on Windows NT 4.0.
What I try to do is to create a context-index on multiple columns
of multiple tables. I created a table containing the original
tablenames and primary keys plus a char(1)-column to index, a
user_datastore, a procedure in a user-schema, a
wrapping-procedure in ctxsys' schema and finally the index. All
works fine so far but I get an ORA-03113 "end-of-file on
communication channel" error when querying the table with
contains. The procedure itself works.
Here's what I tried in detail:
I created a table "alldocs" containing the tablename and
primary-key-value of each line of each table plus a dummy-column
for the index:
create table alldocs(
table varchar2(30) not null,
id number not null,
data char(1),
primary key(tabelle, id)
I filled this table:
insert into alldocs (select 'MYDOCS', id, 'a' from mydocs);
insert into alldocs (select 'OTHERDOCS', id, 'b' from otherdocs);
The user's procedure - only dummy for testing - is:
create procedure test.GetAllDocsData(row IN ROWID, data IN OUT
NOCOPY CLOB) IS
tabname varchar2(30);
myid number;
tmpclob clob;
begin
dbms_lob.createtemporary(tmpclob, TRUE);
dbms_lob.writeappend(tmpclob, 34, 'Ein Text mit ca. 20
Zeichen Ldnge.');
data := tmpclob;
end;
In ctxsys' schema I defined the following procedure and the
datastore:
create or replace procedure sysGetAllDocsData(rid in rowid, tlob
in out clob) is
begin
test.GetAllDocsData(rid, tlob);
end sysGetAllDocsData;
grant execute on sysGetAllDocsData to test;
call ctx_ddl.create_preference('MyUserDS', 'user_datastore');
call ctx_ddl.set_attribute('MyUserDS', 'procedure',
'sysGetAllDocsData');
call ctx_ddl.set_attribute('MyUserDS', 'output_type', 'CLOB');
Finally I defined the index:
create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('DATASTORE CTXSYS.MyUserDS FILTER
CTXSYS.INSO_FILTER LEXER BASIC_LEXER');
This all works without errors. But when querying like this:
select * from test.alldocs where contains('data', 'Text')>0
the answer is
ORA-03113: end-of-file on communication channel
I hope someone can help.
Greetings
RalfHi Ralf,
please define first your own preferences like this:
exec CTX_DDL.drop_preference('MY_LEXER');
exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
exec CTX_DDL.set_attribute('MY_LEXER','ALTERNATE_SPELLING',
'GERMAN');
exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
exec CTX_DDL.set_attribute('MY_LEXER','COMPOSITE', 'GERMAN');
exec ctx_ddl.Drop_Preference ('MY_FILTER');
exec ctx_ddl.Create_Preference ('MY_FILTER','NULL_FILTER');
exec ctx_ddl.drop_section_group ('MY_SECTION');
exec ctx_ddl.create_section_group
('MY_SECTION','NULL_SECTION_GROUP');
and then create your index with this preferences. You only need
an INSO filter if you want to index pdf,word,...
create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('DATASTORE CTXSYS.MyUserDS FILTER
CTXSYS.INSO_FILTER LEXER BASIC_LEXER');create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('
DATASTORE CTXSYS.MyUserDS
lexer MY_LEXER
filter MY_FILTER
section group MY_SECTION');
Then see in the token table what tokens are in the index:
select token_text from dr$alldocs_ctx$i;
If you got also an ORA-3113 see in alert.log if there is a trace
referenced with this error and have a look in this file to find a
better error message.
Good luck.
Thomas -
Word processing within a text component
Although this is a potentially great application, I am at present prevented from using it to create a website due to the lack, as far as I can determine, of any form of processing individual text within the text components e.g. making individual words or word groups bold or italic or giving them COLORS.
I have large informatory text areas on my pages which need this sort of processing in order to avoid client eyestrain as well as my own.
Of course one can get around this to some extent by using multiple components but for long texts this quickly becomes very tedious and error prone, especially if one wants to copy from another source.
The Static Text component, which I presume is meant for this sort of text, in it's present simple form allows word wrap but no line formatting. The basic Text Area component (multiple lines) has no word wrap but does allow line formatting. However when one sets the Read Only property, it seems that any self created line formatting is duly destroyed. This is strangely not the case with the old Standard Mutliline Text Area component.
I may be missing something but if not I hope that these features may yet be incorporated.
Regards,
DaveYou can use static text to render pure HTML, just set "escape" property to false.
Note that the HTML text must be well former.
Regards. -
Center text in a text component with line wrapping
I need to display dynamic text in a text component. I need line wrapping (on work boundaries) and also need horizontal and vertical center alignment.
How do I do this? I saw a previous post on aligning text in a JTextArea that said to use a JTextPane but I don't see in JTextPane how to do word wrapping.
Thanks,
John// File: SystemInfoWindow.java.java
// Classes: SystemInfoWindow
// Package: utilities.msglib
// Purpose: Implement the SystemInfoWindow class.
// Author: JJB
// Revision History:
// Date By Rel# Description of change
// ============= === ==== ===============================================
// Jul 3, 2006 JJB 1.00 Original version
// Public Types / Classes Type Description
// ======================== =============================================
// SystemInfoWindow
package utilities.msglib;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.SwingUtilities;
* TODO Enter description
class SystemInfoWindow extends JDialog {
* @param args
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Test thisClass = new Test();
thisClass.setVisible(true);
SystemInfoWindow window = new SystemInfoWindow(thisClass);
window.setMessage("System shutdown in progress ... lot sof atatarte athis tis a sa logoint of tesxt it keeps going and going and going thsoreoiat afsjkjslakjs fshafhdskrjlkjsdfj");
window.setVisible(true);
// ------------------------ Inner Classes ---------------------
static class Test extends JFrame {
private JPanel jContentPane = null;
* This is the default constructor
public Test() {
super();
initialize();
* This method initializes this
* @return void
private void initialize() {
this.setSize(300, 200);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
* This method initializes jContentPane
* @return javax.swing.JPanel
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
return jContentPane;
// ------------------------ Static Fields ---------------------
private static final long serialVersionUID = -8602533190114692294L;
// ------------------------ Static Methods --------------------
// ------------------------ Public Fields ---------------------
// ------------------------ Non-Public Fields -----------------
private JPanel jContentPane = null;
private JTextPane textField = null;
public SystemInfoWindow(JFrame frame) {
super(frame);
initialize();
//setUndecorated(true);
setLocationRelativeTo(frame);
pack();
// ------------------------ Interface Implementations ---------
// ------------------------ Public Methods --------------------
public void setMessage(String text){
textField.setText(text);
adjustSize();
// ------------------------ Non-Public Methods ----------------
private void adjustSize(){
Dimension oldSize = textField.getPreferredSize();
textField.setPreferredSize(new Dimension(
oldSize.width, oldSize.height + 30));
pack();
// ------------------------ Generated Code --------------------
* This method initializes this
* @return void
private void initialize() {
this.setSize(300, 200);
this.setModal(true);
this.setContentPane(getJContentPane());
this.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowOpened(java.awt.event.WindowEvent e) {
//setLocationRelativeTo(MsgLibGlobals.parent);
pack();
* This method initializes jContentPane
* @return javax.swing.JPanel
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
jContentPane.setMaximumSize(new java.awt.Dimension(50,2147483647));
jContentPane.add(getTextField(), java.awt.BorderLayout.CENTER);
return jContentPane;
* This method initializes textField
* @return javax.swing.JTextPane
private JTextPane getTextField() {
if (textField == null) {
textField = new JTextPane();
textField.setEditable(false);
textField.setMaximumSize(new java.awt.Dimension(20,2147483647));
return textField;
}Message was edited by:
BaltimoreJohn -
Intermedia text search error for file system
I would like to search a text from a file. store in the file system. I have done the following procedures but when i create i get error.
BEGIN
CTX_DDL.CREATE_PREFERENCE('search_docroot_pref','FILE_DATASTORE');
CTX_DDL.SET_ATTRIBUTE('search_docroot_pref','path','c:/temp/abc');
END;
Now when i create INDEX with following syntex
CREATE INDEX mysearch_ind ON mytable(mycolumn) INDEXTYPE IS
CTXSYS.context parameters('datastore search_docroot_pref');
I get the following errors.
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: interMedia Text error:
DRG-50704: Net8 listener is not running or cannot start external procedures
ORA-28575: unable to open RPC connection to external procedure agent
ORA-06512: at "CTXSYS.DRUE", line 126
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
ORA-06512: at line 1
Can any body tell me where i am wrong.
Thanks,Hi
I was aslo facing same problem.My net8 connection and listner is aslo ok. but getting same errors.
Raju -
How to create a text Component With Certain Properties
I need to create a text component with the following properties:
Has Capability to be italic, right/left aligned, have different background / foreground colors, and most importantly, the ability to have a fixed width and a height that is set by the amount of text in it (ie line wrapping expands the field vertically).
It should be a simple exercise, but I cannot seem to figure out how to do it.Here is the correct syntax :
private static JEditorPane constructPane(String text, int normWidth, int normHeight, boolean rightAlign, boolean italic,boolean isWhite) {
JEditorPane pane = new JEditorPane();
pane.setEditable(false);
pane.setContentType("text/html");
pane.setText(
"<html><head></head><body>"
+ (italic?"<i>":"")
+ "<table><COLGROUP><COL width=\""+normWidth+"\"><THREAD><tr><td valign=\"top\" align="+(rightAlign?"\"right\"":"\"left\"")+">"
+ text+"</td></tr></table>"
+ (italic?"</i>":"")
+ "</body></html>");
pane.setSize(normWidth,normHeight);
if(isWhite)
pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.WHITE),BorderFactory.createEmptyBorder(0,1,0,1)));
pane.setForeground(Color.WHITE);
else {
pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.BLACK),BorderFactory.createEmptyBorder(0,1,0,1)));
pane.setForeground(Color.BLACK);
return pane;
} -
Formatting HTML Text in Text component
Hi all,
I'm trying to render some Html text in a text component, I'm
getting the HTML from within an xml document as such:
<xml><htext><p><b>Testing HTML
Text</b></p><p>Here's another
line.</p></htext></xml>
If I put that into a Text component with the htmlText=htext
property, the line spacing is as expected, but it seems to add in a
blank space character for every character of the html code. (E.g.
"<b>Testing" adds 3 extra spaces before the word "Testing").
Renders like (using - as space character):
Testing HTML Text
-Here's another line.
If I use the condeseWhite=true property on the Text
component, it fixes the extra space characters issue, but then
stuffs the line spacing up, so <p> becomes rendered like a
<br>.
Renders like:
Testing HTML Text
Here's another line.
Any thoughts, or help is much appreciated, thanks in advance.
Oz
P.S I was trying to avoid the obvious "br" tag which will
make it work and render correctly....
<p><b>Testing HTML Text</b></p>
<br/><p>Here's another line.</p>no. use css.
-
Output text component new line
HI Team,
I am picking up a value from resouce bundle for output text component.
I wish to display data in output text component to display data after a new line.
Suppose the message is coming as How are you.Welcome
Now it should come as
How are you
Welcome
Any help how is this achievable.
I am working on Jdev 11.1.1.6
Regards,
AjayHi Team,
The issue is resolved now.
I have changed the escape property of output text component. to false so as to avoid the <br /> being HTML-escaped. and at the value level have used like
<af:outputText value="#{XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE}<br /><br />#{XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE1}"
id="ot10" escape="false"/>
Where XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE=Value1 and YOUR_REQUEST_HAS_BEEN_SUBMITTE1=Value2 in my resource bundle file.
Output is coming as
Value1
Value2
Does any one know how can i mark it as correct , can't see it after the forums upgrade to new one.
Message was edited by: Ajay -
Strange: Conditional Error in Intermedia Text Index Creation
Hi All,
I am facing a strange error while creating the Intermedia Text index on 8.1.6 release for NT 4.0.
I have one database instance installed on the server. When i connect to Oracle through SQL plus as: connect username/password;
The index creation works fine!
But, if i connect using: username/password@servicename;
The index creation does not work!
The following error occurs.
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000:intermedia Text error:
ORA-50704:Net8 listener is not running or cannot start external procedures
ORA-28575:unable to open RPC connection to external procedure agent
ORA-12154:TNS:could not resolve service name
ORA-06512:at "CTXSYS.DRUE", line 126
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
ORA-06512:at line 1
Could anyone please help as to why it works without when connected without the service name but not otherwise?
Thanking you in advance!
Thanks and Regards
Anurag AgarwalHi All,
I am facing a strange error while creating the Intermedia Text index on 8.1.6 release for NT 4.0.
I have one database instance installed on the server. When i connect to Oracle through SQL plus as: connect username/password;
The index creation works fine!
But, if i connect using: username/password@servicename;
The index creation does not work!
The following error occurs.
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000:intermedia Text error:
ORA-50704:Net8 listener is not running or cannot start external procedures
ORA-28575:unable to open RPC connection to external procedure agent
ORA-12154:TNS:could not resolve service name
ORA-06512:at "CTXSYS.DRUE", line 126
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
ORA-06512:at line 1
Could anyone please help as to why it works without when connected without the service name but not otherwise?
Thanking you in advance!
Thanks and Regards
Anurag Agarwal -
Retrieve RowSet and Display in Output Text Component
To retrieve a row object, took more effort than I expected with this tool. I wanted to populate a simple output text component with a db object pulled from a row, and I binded it to the rowset column. It worked great, but it kept retrieving the first row, since in the JSP it was calling this:
#{questionsetup.questionRowSet.currentRow['question']}
To get it to increment rows per output text component I did this:
questionRowSet.setDataSourceName("java:comp/env/jdbc/SelfService");
questionRowSet.setCommand("SELECT ALL dbo.Question.quesId, dbo.Question.question, dbo.Question.lastChangeDate FROM dbo.Question");
questionRowSet.execute();
questionRowSet.next();
outputText3.setValue(questionRowSet.getString("question"));
questionRowSet.next();
outputText4.setValue(questionRowSet.getString("question"));
questionRowSet.next();
outputText5.setValue(questionRowSet.getString("question"));Is there another way to do this automatically? The Studio Creator way? Or is this correct? The Studio Creator help file explains how to bind a simple component, and using the binding, but it even says it will retrieve the data in the first row. Incremenet rows or specifying a specific one would really help!
Thank you very much!Maybe take control of the Select statement myself...
So I decided to get the MIN value of my ID
like this
"select MIN(T21id) AS ttt from persons"
now this is valid in SQLyog
BUT Creator says
Description: An unhandled exception ...
Exception Details: javax.faces.el.PropertyNotFoundException
Invalid column name: BaseRemuneration
nb why is this "unhandled" since it is inside a try block?
why does it mention BaseRemuneration which is a completely different but valid column??
So Sun Creator will accept an unknown subset of valid SQL commands, and give bizarre irrelevant exception error messages on the set of valid SQL statements that it doesnt like.
The documents appear to state that MIN is not handled by the IDE but can be entered manually.
In fact it can NOT be enmtered manually.
So is there an accurate list of valid SQL that is accepted? -
Line highlighting in Text Component
I'm trying to figure out how to apply a colored background to certain lines of a text component. This is common, for instance, in a lot of editors, especially IDE's (notably, Eclipse), where the currently selected line has a separate background color from the rest of the page. I'm having a lot of trouble understanding how to use Elements and Views and EditorKits and all that, and I'm not even sure if that will solve the problem. All I've been able to do so far is put a colored background behind individual characters; but then it stops at the end of the line, instead of continuing for the width of the text component.
Any help is greatly appreciated.I assumed you were using the built-in Highlighter classes to do the coloring. If you aren't, you're doing a lot more work than you need to. Here's what I use:import java.awt.Color;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.text.*;
* Usage: new CurrentLineHighlighter(myColor).install(myTextComponent);
public class CurrentLineHighlighter implements ChangeListener
static final Color DEFAULT_COLOR = new Color(0, 0, 0, 15);
private Highlighter.HighlightPainter painter;
private Object highlight;
private JTextComponent comp;
public CurrentLineHighlighter()
this(null);
public CurrentLineHighlighter(Color highlightColor)
Color c = highlightColor != null ? highlightColor : DEFAULT_COLOR;
painter = new DefaultHighlighter.DefaultHighlightPainter(c);
public void install(JTextComponent tc)
comp = tc;
comp.getCaret().addChangeListener(this);
public void stateChanged(ChangeEvent evt)
if (highlight != null)
comp.getHighlighter().removeHighlight(highlight);
highlight = null;
int pos = comp.getCaretPosition();
Element elem = Utilities.getParagraphElement(comp, pos);
int start = elem.getStartOffset();
int end = elem.getEndOffset();
try
highlight = comp.getHighlighter().addHighlight(start, end, painter);
catch (BadLocationException ex)
ex.printStackTrace();
} -
Issue using JS to change the value of an output text component dynamically
I am developing an application and I need to change the output text component value at run time when the mouse moves over a field. I am using javascript and then using UIComponent.setproperty to change the value.
I am not able to do this and am getting nothing.
Kindly let me know what am I doing wrong
I am using ADF 11g (10th November release).
Regards,
DeepakHi i'm doing the same thing with an input text
here is my code
jspx:
<af:inputText value="#{bindings.MiddleName.inputValue}"
label="#{bindings.MiddleName.hints.label}"
required="#{bindings.MiddleName.hints.mandatory}"
columns="#{bindings.MiddleName.hints.displayWidth}"
maximumLength="#{bindings.MiddleName.hints.precision}"
shortDesc="#{bindings.MiddleName.hints.tooltip}"
id="it4" autoSubmit="true">
<f:validator binding="#{bindings.MiddleName.validator}"/>
<af:clientListener type="valueChange" method="mo_UpperCase"/>
</af:inputText>
js:
function mo_UpperCase(event){
var inputField = event.getSource();
if (event.getNewValue().toUpperCase()!=event.getNewValue())
inputField.setValue(event.getNewValue().toUpperCase());
In my case i change the input text to upercase when the value is changing
I hope it works with output text also,
change my examples clientlistener type from valueChange to mouseOver
If you have more than one component and you need to pass parameters check this thread also:
bug at af:clientAttribute 11.1.1.2.0
Tilemahos -
Hello,
I'm working on a website at the moment which is cgi based and has an Oracle 8i backend.
On this website users can upload word documents etc into an knowledge base. These documents are physically held on the file system
What I want to do is to upload the documents to an Oracle table and then use intermedia text to search on these documents. I would like to avail of intermedia Themes & Gists and the "ranking" system it uses. In other words I would like the search to return something similar to the search results you find in Oracle Portal.
Any information on how to incorporate oracle intermedia into an existing cgi based website would be much appreciated.
thank you.
aidanHi,
For documentation see here on technet: products -> Oracle Text.
You don't have to load the documents into the database when they are already in the filesystem.
You can create a table with an entry for each filename.
Here is a sample script for FILE_DATASTORE with INSO FILTER (for filtering word and other documents).
=========================================================
-- Sample INSO Filter and FileDatastore
drop table datastores;
create table datastores(id number primary key, docs varchar2(2000));
insert into datastores values(1,'whitepaper.pdf');
commit;
-- Create Preferences
exec CTX_DDL.drop_preference('MY_LEXER');
exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
exec ctx_ddl.drop_section_group ('MY_SECTION');
exec ctx_ddl.create_section_group ('MY_SECTION','NULL_SECTION_GROUP');
exec ctx_ddl.drop_preference('COMMON_DIR');
exec ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
exec ctx_ddl.set_attribute('COMMON_DIR','PATH','/tmp/pdf');
exec Ctx_Ddl.Drop_Preference ('inso_filter_pref');
exec Ctx_Ddl.Create_Preference ('INSO_FILTER_PREF', 'INSO_FILTER');
-- Create Text Index
-- drop index datastores_text;
exec ctx_output.start_log('index.log');
create index datastores_text on datastores (docs)
indextype is ctxsys.context
parameters ('datastore COMMON_DIR
filter INSO_FILTER_PREF
lexer MY_LEXER
section group MY_SECTION
memory 50M');
exec ctx_output.end_log;
select count(*) from dr$datastores_text$i;
select token_text from dr$datastores_text$i;
Maybe you are looking for
-
Windows 7 Professional using a Windows 2003 print server to map printers
I am testing Win 7 in our network, I can install a network printer (HP Laserjet 3700 64bit driver) directly to the computer via TCP/IP. If I install the same driver on the 2003 R2 server (by adding the driver under sharing and additional drivers) it
-
Quicktime -50 Error (New Issue for Me)
I have OS X 10.9 and FCP X 10.0.9 I'm doing a project with h.264 footage that is simple - a talking head in front of green screen, keyed, lower third in beginning, Photoshop PSD still background under. Audio is secondary WAV synced with FCP X's auto
-
Hi, I have posted one vendor invoice with reference to contract number and that vendor is liable to pay TDS. We have also created the challan for TDS. After that we want to reverse invoice because of cancellation of contract but system will not allow
-
Importing Appleworks DB documents into Bento
I have tried to import my Appleworks data-base documents into Bento with no luck. I have saved the Appleworks DB documents as .tsv files, (as per instructions obtained from Google) but when I try load those DB files into Bento, Bento has no save or
-
10.1 install disk problem
Hello all, I have a few questions at the end of this post but first a rant of what a problem that I went through and later solved. [rant] I have an iMac 400 with 10.1.5 installed on it. I was interested in purchasing Panther but am low on hard drive