Database search using Oracle SES
Hi all..specially Luca,
I am a new to oracle SES.I have to search my database through oracle SES from my ASP.NET
pages.
But before doing it from ASP.NET page , I just want to try serching from the SES tool itself.
I tried to create Database source type as :
Home > source > source type = database > create
then i got a page where i wrote the database connection string , userid , password , and a query (select * from images)
i clicked next n got another page which says step2 authorization ..
here again i need to put databse connection string ..for which i m confuse what to put ..
the entire connection string like "Data Source=atlas/orcl;User ID=yuntaa;Password=yuntaa" or "atlas/orcl" ..
i put user ID and Password,there wer few more fields like
Authorization Query,Single Record Query, Authorization User ID Format .i m not sure what to put in this fields,
and clicked next...i got an error saying ...
Oracle Secure Enterprise Search Error
An error occurred while validating the plug-in parameters.
now i m really confuse how to create database source and how it will search to my search string...how it will know which
table to search...i mean search string may be audio,video,image or a doc ..according to the string it has execute different
query to search in different table...
Plz help me out a little to solve this issue...
Warm regards and thanks
Suraj
Thanks a lot for the reply Raford...n sorry as my question are too long...
In my project i need to search my database but i do not
have any URL as i am displaying data straight from the database. The data's
are audio,video or images which i have stored in database tables itself.
so in my case the URL column will be empty which is a mandatory field.The URL column contains the Display URL for the document but I do not have any document outside my database.
The way I am storing the data, is oracle SES posible ?. Most importantly do this will enhance
the performance..or provide some extra information to the user regarding search...
Actually what we are thinking is that when user will search and if the data is present in database we will display the data from the database using oracle SES
or else if the data is not there in the database we will provide some links
of other web site, something like google..
Please give some thought on it and tell me whether this is possible using oracle SES...if yes then what should i put in URL column...if posible plz give me some suggestion how should i proceed
You said If the data is in an Oracle database, it is easier to use the Table crawler. I tried
to configure that with my table but showing an error in error log :
EQG-30100: Internal error: java.sql.SQLException: Missing IN or OUT parameter at index:: 2,
from: CrawlingThread.processPseudoURL() executing SQL BEGIN ?
:= 'http:/tds?id=24'||eq_util.tds_encode(1,?) ||eq_util.tds_encode(2,?)
||eq_util.tds_encode(3,?) ||eq_util.tds_encode(4,?) ||eq_util.tds_encode(5,?)
||eq_util.tds_encode(6,?) ||eq_util.tds_encode(7,?) ||eq_util.tds_encode(8,?);
EXCEPTION when others then eq_err.raise; END;; for URL http:/tds?id=-1&k1=24&display_url=0
EQG-30100: Internal error:
no new documents collected
also the crawl statistics is 0..
also search result is empty..i m searching with the string which is in contenttitle
column in table which i ve set through "table column mappings"...
the steps i ve taken to set the table crawler is :
selected source type as Table > provided source name , port number etc details > local table
selected primary key column > select content column > create and customise > table column mappings
Add another row(selected the contenttitle field) > apply > schedule > execute immediatlyWarm regards and Thanks
Suraj
Similar Messages
-
Help,runtime exception when using oracle ses 11g
development environment is myeclipse 8.5 , jdk1.6 , oracle ses 11g is installed on centos .
I use the query web service example in oracle ses 11g administrator's guide to test ses 11g.
I added wseeclient.jar,ant.jar and search_client.jar to my projects .
the project is compiled successfully, however, A runtime exception occured when runing the project :
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/DescriptorManager
at oracle.search.query.webservice.client.OracleSearchService.<clinit>(OracleSearchService.java:58)
at client.SESClient.main(SESClient.java:8)
Caused by: java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
The code is listed blow :
package client;
import oracle.search.query.webservice.client.*;
public class SESClient {
public static void main(String[] args) throws Exception {
// runtime exception occured : java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorManager
// when create the object OracleSearchService
OracleSearchService stub = new OracleSearchService();
stub.setSoapURL("http://59.77.132.154:7777/search/query/OracleSearch");
OracleSearchResult result = stub.doOracleSearch("fzu site:www.fzu.edu.cn", 1,
Integer.MAX_VALUE, Boolean.TRUE, Boolean.TRUE, null, "zh",
"zh", Boolean.TRUE, null, null, null);
int estimatedHitCount = result.getEstimatedHitCount().intValue();
if (estimatedHitCount == 0)
System.out.println("No Result!");
else {
ResultElement[] resElemArray = result.getResultElements();
for (int i = 0; i < resElemArray.length; ++i) {
System.out.println(resElemArray.getTitle() + ":"
+ resElemArray[i].getUrl());
System.out.println("-----------------------------------------------------------");I have a reason to believe that my anti virus scanner is modifying the jar file.
I had initially downloaded the jar file from sourceforge. It had the com.iwss.... package.
Now i dowloaded the file in zip format and that package is not there in the zip file. But i have a new problem now.
My eclispe just crashed with the following error message.
JVM terminated. Exit code=1
D:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\javaw.exe
-Xms40m
-Xmx256m
-jar C:\eclipse\startup.jar
-os win32
-ws win32
-arch x86
-launcher C:\eclipse\eclipse.exe
-name Eclipse
-showsplash 600
-exitdata 1bc_74
-vm D:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\javaw.exe
-vmargs
-Xms40m
-Xmx256m
-jar C:\eclipse\startup.jar -
Searching using Oracle Text instead of LIKE '%'
Hello all,
I hope you help me in this:
I have a table looks like this
create table subscribers (
id numer(10),
first_name varchar2(30),
father_name varchar2(30),
grandfather_name varchar2(30),
last_name varchar2(30))
The application is built using Oracle Forms. Many times, the end users are not so sure of the spelling of the name, therefore they use the "%" wildcard with name fields. This will be reflected to the queries the application will send them to the Oracle Server.
We have the following queries
1) select *
from subscribers
where last_name like '%family_name%';
2) select *
from subscribers
where last_name like 'family_name%';
3) select *
from subscribers
where last_name like '%family_name%' and first_name like '%first_name%';
4) select *
from subscribers
where last_name like 'family_name%' and first_name like 'first_name%';
As well as searching on the father_name and grandfather_name fields. But most of the search are on the first_name and the last_name.
These queries are killing the server since we have millions of records. BTree indexes will not help here because of the LIKE and the "%"
I am thinking to use Oracle Text here, but I am not sure whether I have to go for a CONTEXT index on each individual column, or I can use the MULTI_COLUMN_DATASTORE indexing.
Any idea will be appreciatedThe ctxcat index and catsearch operator are generally intended for usage with one text column and one or more columns of structured data. You would have to pick just one of your columns as the text column and the others as structured columns. I would be more inclined to use the multi_column_datastore with a context index and contains operator, so that you can search all of your columns as text columns.
-
Product Search Using Oracle Text or By Any Other Methods using PL/SQL
Hi All,
I have requirement for product search using the product table which has around 5 million products. I Need to show top 100 disitnct products searched in the following order
1. = ProductDescription
2. ProductDescription_%
3. %_ProductDescription_%
4. %_ProductDescription
5. ProductDescription%
6. %ProductDescription
Where '_' is space. If first two/three/or any criteria itslef gives me 100 records then i need not search for another patterns
Table Structure Is as follows
Create Table Tbl_Product_Lookup
Barcode_number Varchar2(9),
Product_Description Varchar2(200),
Product_Start_Date Date,
Product_End_Date Date,
Product_Price Number(12,4)
Could you please help me implementing this one ? SLA for the search result is 2 seconds
Thanks,
VarunYou could use an Oracle Text context index with a wordlist to speed up substring searches and return all rows that match any of your criteria, combined with a case statement to provide a ranking that can be ordered by within an inner query, then use rownum to limit the rows in an outer query. You could also use the first_rows(n) hint to speed up the return of limited rows. Please see the demonstration below. If you decide to use Oracle Text, you may want to ask further questions in the Oracle Text sub-forum on this forum or space or whatever they call it now.
SCOTT@orcl_11gR2> -- table:
SCOTT@orcl_11gR2> Create Table Tbl_Product_Lookup
2 (
3 Barcode_number Varchar2(9),
4 Product_Description Varchar2(200),
5 Product_Start_Date Date,
6 Product_End_Date Date,
7 Product_Price Number(12,4)
8 )
9 /
Table created.
SCOTT@orcl_11gR2> -- sample data:
SCOTT@orcl_11gR2> insert all
2 into tbl_product_lookup (product_description) values ('test product')
3 into tbl_product_lookup (product_description) values ('test product and more')
4 into tbl_product_lookup (product_description) values ('another test product and more')
5 into tbl_product_lookup (product_description) values ('another test product')
6 into tbl_product_lookup (product_description) values ('test products')
7 into tbl_product_lookup (product_description) values ('selftest product')
8 select * from dual
9 /
6 rows created.
SCOTT@orcl_11gR2> insert into tbl_product_lookup (product_description) select object_name from all_objects
2 /
75046 rows created.
SCOTT@orcl_11gR2> -- wordlist:
SCOTT@orcl_11gR2> begin
2 ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
3 ctx_ddl.set_attribute('mywordlist','PREFIX_INDEX','TRUE');
4 ctx_ddl.set_attribute('mywordlist','PREFIX_MIN_LENGTH', '3');
5 ctx_ddl.set_attribute('mywordlist','PREFIX_MAX_LENGTH', '4');
6 ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
7 ctx_ddl.set_attribute('mywordlist', 'wildcard_maxterms', 0) ;
8 end;
9 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- context index that uses wordlist:
SCOTT@orcl_11gR2> create index prod_desc_text_idx
2 on tbl_product_lookup (product_description)
3 indextype is ctxsys.context
4 parameters ('wordlist mywordlist')
5 /
Index created.
SCOTT@orcl_11gR2> -- gather statistics:
SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'TBL_PRODUCT_LOOKUP')
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> -- query:
SCOTT@orcl_11gR2> variable productdescription varchar2(100)
SCOTT@orcl_11gR2> exec :productdescription := 'test product'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> column product_description format a45
SCOTT@orcl_11gR2> set autotrace on explain
SCOTT@orcl_11gR2> set timing on
SCOTT@orcl_11gR2> select /*+ FIRST_ROWS(100) */ *
2 from (select /*+ FIRST_ROWS(100) */ distinct
3 case when product_description = :productdescription then 1
4 when product_description like :productdescription || ' %' then 2
5 when product_description like '% ' || :productdescription || ' %' then 3
6 when product_description like '% ' || :productdescription then 4
7 when product_description like :productdescription || '%' then 5
8 when product_description like '%' || :productdescription then 6
9 end as ranking,
10 product_description
11 from tbl_product_lookup
12 where contains (product_description, '%' || :productdescription || '%') > 0
13 order by ranking)
14 where rownum <= 100
15 /
RANKING PRODUCT_DESCRIPTION
1 test product
2 test product and more
3 another test product and more
4 another test product
5 test products
6 selftest product
6 rows selected.
Elapsed: 00:00:00.10
Execution Plan
Plan hash value: 459057338
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 38 | 3990 | 13 (16)| 00:00:01 |
|* 1 | COUNT STOPKEY | | | | | |
| 2 | VIEW | | 38 | 3990 | 13 (16)| 00:00:01 |
|* 3 | SORT UNIQUE STOPKEY | | 38 | 988 | 12 (9)| 00:00:01 |
| 4 | TABLE ACCESS BY INDEX ROWID| TBL_PRODUCT_LOOKUP | 38 | 988 | 11 (0)| 00:00:01 |
|* 5 | DOMAIN INDEX | PROD_DESC_TEXT_IDX | | | 4 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(ROWNUM<=100)
3 - filter(ROWNUM<=100)
5 - access("CTXSYS"."CONTAINS"("PRODUCT_DESCRIPTION",'%'||:PRODUCTDESCRIPTION||'%')>0)
SCOTT@orcl_11gR2> -
How to create logical standby database without using Oracle Grid Control
Hi All,
I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
I already have a primary database as well as physical standby database.
What i want to create a logical standby database as well on the same machine where physical standby database is running.
So anyone of you help me out to do that
Thanks in advanceHi,
Creating a Logical Standby Database
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
Regards,
Tom -
How to make new database connection using Oracle BI Interactive Dashboards
Hi,
I install Oracle BI Intelligence on my system.
I am using Oracle BI Interactive Dashboard. Here we have default database connection.
but now i want to use it for my own database. Can any body give me guideline how to
make a new data base connection using this s/w or how to connect to my database so
that i can make my own reports.
I am using
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
this link.
i make odbc connection which is fine.
but
Restoring the Business Intelligence Presentation Catalog and Updating Metadata
The third point blow above heading is not clear.
ThanksUmesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
All these tasks are carried out using the Repository Administration Utility.
1) Import your physical tables using OCI/ODBC into the physical layer.
2) Build your model
3) Deploy
Then you're ready to start building answers/dashboards.
Good Luck. -
Hi,
I'm working on a demo and I'd like to set up smart search. I'm trying to make it work with Oracle Secure Enterprise Search (google onebox isn't free), but I'm having a hard time finding some documentation on-line, and the configuration process is unclear to me.
Has someone already done this? Could you please give me a link, or guide me through Oracle SES Search Mode Configuration ?
Thanks,
CyrilHi,
I found a good tutorial: http://st-curriculum.oracle.com/tutorial/SESAdminTutorial/index.htm
Thanks for reading ;) !
Cyril -
Hi,
I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
1) Should i be using an Oracle.connect statement before every #sql?
2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?
3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?
4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.
Thanks for your time and I appreciate any feedback that anyone has to offer.Hi Adam,
Please find the answers inline.
I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
1) Should i be using an Oracle.connect statement before every #sql?No, you don't have to call this each time, just call this once to intialize your DefaultContext and from then on, whenever
#sql is used, it would fetch the connection from the DefaultContext.
2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?No, it doesn't create connections each time.
3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?There would be only one connection
4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.The connection has to be closed explicitly using Oracle.close();
For samples on using connect.properties refer to,
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/9i_sqlj.html#BatchingAndREFCursorSample
Regards
Elango. -
Connect to an Oracle database by using oracle.jdbc.OracleDriver: error
Hi,
I'm trying to connect to an Oracle database so we can retrieve notes of tables, views and packages.
By using the API of Data Modeler (transformation script) we want to add these notes to corresponding objects in Data Modeler.
I'm starting with this:
importPackage(java.lang);
importPackage(java.awt);
importPackage(java.sql);
java.lang.Class.forName("oracle.jdbc.OracleDriver");
An error occurs when I run this code:
It has to be a Java thing...
Anyone a suggestion?Problem solved! One of my colleagues referred to this post: Import user defined properties from Oracle Designer
More in detail: it's about this couple of lines:
// Copy the ojdbc6.jar file to ..\datamodeler-home\jlib directory
// Add this line to datamodeler.conf
// AddJavaLibFile ../../jlib/ojdbc6.jar
I changed my datamodeler.conf file, restarted DM and now there's no longer an error when I am trying to use the Oracle JDBC drive. -
How can install form 6i & which database we use oracle 7 or 8
Hi David,
I have Oracle 8.1.6 installed in ORACLE_HOME and Developer 6i
runtime installed in DEV_HOME. I could not install both in one
home either. I had the same connectivity problems as you, and I
found out that my tnsnames.ora file was not set in both the
homes.
You might have to edit the files and name the database alias
yourself. I tried creating alias as PRD in both the homes using
the Net 8 utility; one turned out as PRD.world and the other
turned out as PRD.AUM.COM.MY!
Hope this helps. -
Number Search using Oracle Text
Hi,
I'm new to Oracle Text. I want to implement search for the unique ids. Like google search when the user start typing 123 it need to brings anything starting with 123 and has show like entries how google will shows. When I add number 4 to like 1234 then it has bring numbers starting with 1234. Any body suggest me what is the best approach to implement this. Do we have any examples for this kind requirement. If any please share. That will be a big help for me.
In advance thanks a lot for the help.
Thanks & Regards,
Ramana.Oracle Text is intended primarily for character data, but you can treat the numbers as characters. I have provided an example below.
SCOTT@orcl_11gR2> CREATE TABLE test_tab (id NUMBER, dummy VARCHAR2(1))
2 /
Table created.
SCOTT@orcl_11gR2> INSERT INTO test_tab (id)
2 SELECT object_id FROM all_objects
3 /
74986 rows created.
SCOTT@orcl_11gR2> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('test_mds', 'MULTI_COLUMN_DATASTORE');
3 CTX_DDL.SET_ATTRIBUTE ('test_mds', 'COLUMNS', 'TO_CHAR(id) id');
4 END;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> CREATE INDEX id_idx ON test_tab (dummy)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS ('DATASTORE test_mds')
4 /
Index created.
SCOTT@orcl_11gR2> VARIABLE search_string VARCHAR2(100)
SCOTT@orcl_11gR2> EXEC :search_string := '123'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> SELECT DISTINCT id
2 FROM test_tab
3 WHERE CONTAINS (dummy, :search_string || '%') > 0
4 /
ID
123
12316
12323
12329
12348
12350
12354
12366
12372
12373
12375
12376
12392
12396
1238
12303
12306
12313
12330
12332
12344
12361
12365
12369
12371
12395
123750
12308
12320
12326
12337
12340
12346
12349
12370
12386
12387
12397
1233
1234
1236
1237
12300
12301
12302
12305
12309
12311
12319
12338
12345
12355
12359
12362
12377
12388
12390
12391
12398
1239
12304
12307
12360
12318
12325
12335
12339
12353
12357
12358
12394
12312
12317
12328
12327
12331
12333
12351
12352
12356
12363
12364
12367
12368
12393
1235
12310
12314
12324
12334
12336
12341
12347
12374
12389
12399
96 rows selected.
SCOTT@orcl_11gR2> EXEC :search_string := '1234'
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> /
ID
12348
12344
12340
12346
12349
1234
12345
12341
12347
9 rows selected. -
New to Webcenter Search- Oracle SES or WebCenter live search adapters.
Hi
We are planing to implement the search functionality for Webcenter .
As per the Developer's guide WebCenter provides two ways of searching your application:
■ Oracle Secure Enterprise Search (SES) adapter
■ Oracle WebCenter live search adapters
Documents service provides its own search engine for file searches.(Is it only for file search ? What kind of Files ?)
- Can you provide the the differences between the three searches (SES , live search , Document Service)?
- Where can i find the refernces for implementing WebCenter live search adapters?
- What are the search functionality that WebCenter live search adapters provide?
-What are the benifts of using Oracle SES over WebCenter live search adapters ?
- What is that we cannot do with WebCenter live search adapters but with Oracle SES ? and the other way round.
Edited by: 887508 on Sep 28, 2011 9:46 PMHi Dani,
Eventually I found the problem, it is reported in Oracle Support as Doc ID 1503173.1.
It seems jDeveloper is a bit special when adding Directories to the MAR file. If the whole directory "/oracle" is added, the adf-config.xml introduces the following line:
namespace metadata-store-usage="WebCenterFileMetadataStore" path="/oracle"/
As a result, this diverts all /oracle/... file and class requests to MDS, which causes failures.
So when editing the MAR deployment profile be careful to select the sub-directories under /oracle/webcenter/portalapp/ one by one.
Added to this, I had to perform the cleaning process you suggested to make it work too, otherwise I get a different error...
Final steps are:
1. Undeploy application.
2. Delete MDS partition.
3. Shutdown managed server.
4. Delete /cache and /tmp content for the managed server.
5. Start managed server.
6. Exectute Clean all in jDeveloper.
7. Create a new mar deployment as described in SR 1503173.1.
8. Deploy to EAR file.
9. Deploy new application to managed server using Enterprise Manager.
And it works!
Thanks for your help! -
Can I use Oracle database Standar Edition One?
Hi,
In what versions of database can use Oracle Lite, to my central Database?
Can Oracle Lite support Oracle Standar Edition ONE?
In the official documentation only mentions Enterprise Edition and Standar Edition
Thanks in advanceJust quickly viewing oracle's datasheet on the product, I don't see why you couldn't. I don't think it is supported to work with Oracle Mobile Server though. Also, the maximum CPUs supported are 2 on Standard One. Depending on how many mobile users you require, this could be a bottleneck.
-
How to Connect Oracle Database 10g with using Oracle Dev 10g
Hello there,
I have problem with connection on database 10g using oracle dev 10g on the same server.
The message is: TNS... bla..bla... it means not connect.
Please advice
Regards
Leksonojust simple
copy the from the database instance the tnsnames.ora
file's entried into developer folders tnsnames.ora
file and you can connect to DBFirst of all there is no such error as TNS... bla..bla... it means not connect.
there are several errors for the tnsnames, post the exact error
And it is not recommended that you copy it from the database's tnsnames file, it doesn't always work.
to configure the tnsnames.ora you have 2 ways, manual and GUI.
For GUI use the Net configuration assistance from your Devsuite home and for manual you need edit the tnsnames.ora file usually under %ORACLE_HOME%/NETWORK/ADMIN
You need to specify the connection string name, the hostname and the database SID name. It should look something like this.
<connection identifier> =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = host name)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = SID)
)Regards,
Tony -
Problem with blob column index created using Oracle Text.
Hi,
I'm running Oracle Database 10g 10.2.0.1.0 standard edition one, on windows server 2003 R2 x64.
I have a table with a blob column which contains pdf document.
Then, I create an index using the following script so that I can do fulltext search using Oracle Text.
CREATE INDEX DMCS.T_DMCS_FILE_DF_FILE_IDX ON DMCS.T_DMCS_FILE
(DF_FILE)
INDEXTYPE IS CTXSYS.CONTEXT
PARAMETERS('DATASTORE CTXSYS.DEFAULT_DATASTORE');
However, the index is not searchable and I check the following tables created by database for my index and found them to be empty as well !!
DR$T_DMCS_FILE_DF_FILE_IDX$I
DR$T_DMCS_FILE_DF_FILE_IDX$K
DR$T_DMCS_FILE_DF_FILE_IDX$N
DR$T_DMCS_FILE_DF_FILE_IDX$R
I wonder what's wrong with it.
My user has been granted the ctx_app role and I have other tables that store plain text which I use Oracle Text are fine. I even output the blob column and save as pdf file and they are fine.
However the database seems like not indexing my blob column although the index can be created without error.
Please advise.
Really appreciate anyone who can help.
Thank you.The situation is I have already loaded a few pdf document into the table's blob column.
After I create the Oracle text index on this blob column, I find the system generated index tables listed in my earlier posting are empty, except for the 4th table.
Normally we'll see words inside the table where those are the words indexed by oracle text on my document.
As a result, no matter how i search for the index using select statement with contains operator, it will not give me any result.
I feel weird why the blob is not indexed. The content of the blob are actually valid because I tested this by export the content back to pdf and I can still view and search within the pdf.
Regards,
Jap.
Maybe you are looking for
-
How to change exchange rate rounding
Hello guys, our customer requires to have exchange rates rounded to 3 decimal places. For direct FX rates it is not problem. But, the customer also requires to have rounded to 3 decimal places calculared cross FX rates (ie. FX rates calculated by SAP
-
The problem about inputDate with pattern specified for 24h time.
Hi all, i want to use pattern specified for 24h time for inputDate, format mask like:yyyy-MM-dd HH:mm:ss at runtime,the inputDate value is :2011/09/27 22:05:59 , but the value is 10:05:59 in Calendar Dialog. then click OK button,the inputDate value b
-
I can't install java update v1.5.0_02-b09 please help!!
java 2 runtime enviornment, v1.5.0_02-b09 i can't install it. windows installer says the 'installer server is not responding'. is there any other way i can get this update?? please help!!!
-
I'm tring to implement a dual buffering strategy. (Flash Media Server 3, Flash Player 9 and Actionscript 3) I have a simple player with FLVComponent, a standard skin using the vod application. I put in the first frame the following code: videoPlayer.
-
Source window in iphoto window
the source window on the left side of my Iphoto window on G4 Power Mac has disappeared --- how do I get it back? Mac G4 and IMac G5 Mac OS X (10.4.5)