Indexing Multiple columns Doesn't work

Here's some help for those of you struggling
with the interMedia sample code for:
"Faster Multi-column Text Searches"
Basically, after you have run the code
cdstore.sql as CTXSYS and granted CTXAPP
to whoever, you are now in a position to
create your concatenated datastore.
Once you have created your datastore, you
create your index, specifying a single
column and the datastore. Your queries to
this index will 'magically' search the full
list of columns in the datastore, even though
you only specify a single column in the
contains part of your query. V.Cool :)
This work for a while until (like I did) you
start to change some of your indexes. Then
when you run a simple query and you get no
rows back AT ALL. This is because your new
index hasn't created properly due to a bug.
You can check this out with the query:
select err_text from ctx_user_index_errors;
If your index is corrupt, you should see:
DRG-50857: oracle error in drsinopen
DRG-50858: OCI error: OCI_INVALID_HANDLE
This is due to the fact that a create
index statement will work only ONCE
in a given session. This is Bug #881851
You can patch this bug, or use 8.1.6 instead.
The current workaround, is to reconnect to
the database and recreate the index.
(OK,so it's a misleading title, since it
actually does work, but I found this rather
puzzling and it's not easy to find in the
documentation)
Adeeva.

Here's some help for those of you struggling
with the interMedia sample code for:
"Faster Multi-column Text Searches"
Basically, after you have run the code
cdstore.sql as CTXSYS and granted CTXAPP
to whoever, you are now in a position to
create your concatenated datastore.
Once you have created your datastore, you
create your index, specifying a single
column and the datastore. Your queries to
this index will 'magically' search the full
list of columns in the datastore, even though
you only specify a single column in the
contains part of your query. V.Cool :)
This work for a while until (like I did) you
start to change some of your indexes. Then
when you run a simple query and you get no
rows back AT ALL. This is because your new
index hasn't created properly due to a bug.
You can check this out with the query:
select err_text from ctx_user_index_errors;
If your index is corrupt, you should see:
DRG-50857: oracle error in drsinopen
DRG-50858: OCI error: OCI_INVALID_HANDLE
This is due to the fact that a create
index statement will work only ONCE
in a given session. This is Bug #881851
You can patch this bug, or use 8.1.6 instead.
The current workaround, is to reconnect to
the database and recreate the index.
(OK,so it's a misleading title, since it
actually does work, but I found this rather
puzzling and it's not easy to find in the
documentation)
Adeeva.

Similar Messages

  • Indexing multiple columns in multiple tables

    I have a multiple tables in which I want to search. I need to do text search that supports fuzzy logic for which I've currently set up a context index using the user_datastore. I also need to search columns such as numbers/dates/timestamps which from what I understand is not supported with the context search. I'm looking at setting up a second index of type ctxcat for this purpose - but I will need to index multiple columns in multiple tables. Is this possible?
    Can someone advise on the best way to create indexes and search when a table schema such as the following exists. I've tried to keep it simple by just giving a few example columns and tables.
    Order Table
    - Has columns related to the order details - order name (varchar2), description (varchar2), date order placed (timestamp), date order completed (date), order amount (number), customer Id
    Customer Table
    - Has columns related to the customer information - customer name, address, city, state, telephone etc (all varchar2 fields)
    Items Table
    - Has details about the items being ordered - item name (varchar2), item description (varchar2), cost (number) etc
    Order-Item Table
    - Table that maps an order to the items in that order - orderId, itemId, quantity
    Comments Table
    - Logs any comments with the customer - comment description (varchar2), call type (varchar2), comment date (timestamp)
    Currently with the Context index, I have it set up so I can search all text columns in all tables for a search term. This works fine.
    I now need to be able to do more advanced searches, where I can search for a specific text in all orders as well as orders created after a certain date or orders above a certain amount or orders with a item quantity purchase of more that 10. The text has to be searched across the all text columns in all tables. How can I achieve this with Oracle Text?

    There was a similar discussion with various ideas that may help you here:
    How can I make CONTAINS query work for a date range

  • Indexing multiple columns of multiple tables

    Hi,
    I'm trying to index multiple columns of multiple tables.
    As I have seen, the way to do this is using User_Datastore.
    have the tables to share a (foreign)key? My tables have only 2 or 3 similar columns(description, tagnr...)
    I want to get the different tagnr belonging to the same description etc.
    Can I do this?
    Has anyone a Samplecode indexing multiple tables?
    Any suggestion would be helpful.
    Arsineh

    A USER_DATASTORE works like this:
    create table A
    ( id number primary key,
    textA varchar2(100));
    create table B
    ( id number primary key,
    textB varchar2(100));
    procedure foo (rid in rowid, v_document in out varchar2)
    v_textA varchar2(2000);
    v_idA number;
    v_textB varchar2(2000);
    begin
    select id, textA
    into v_idA, v_textA
    from A
    where rowid = rid;
    select textB
    into v_textB
    from B
    where id = v_idA;
    v_document := textA | | ' ' | | textB;
    end;
    create preferences for USER_DATASTORE
    create index ...
    on table A ( text) ...
    you also can build on table B
    This depends where you want the
    trigger to be build to sync the
    documents.
    null

  • My 80gb doesn't boot up this morning. apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

    my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

    my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

  • Finder show items in columns an item arrangement selected: Right size this column doesn't works

    like the title says, under these condition (note that an item arrangement must be selected) the “right sized” to the maximum width, necessary to display the longest item in the column, doesn't works even with a double click or choosing "Right size this column" option (in both cases the column is set to the default size).
    Anyone else experience this issue?

    You understand me well, sorry I'm not native English.
    Have you selected an item arrangement? if I select "None" it works for me too, the issue is when I select an item arrangement (arrange by Kind for example).
    My setting:
    Finder > View > Show View Options:
    - Always open in column views: SELECTED
    - Browse in column view: SELECTED
    - Arrange By: Kind
    - Sort By: Name
    - Text size: 12
    - the "three show" SELECTED
    Under the above conditions I've the issue, the column isn't resized.

  • Index Multiple Column of Multiple Tables

    Hi All,
    I would like to know how to create a index which can search through all column in my database tables. Eg: I have 30
    tables and every tables have around 10 columns. I want to create a index which can search through the columns in
    these tables.
    I know that User_DataStore can helps in create multiple column search across multiple tables. But in my case the BLOB
    created will be very huge. Any work around? I mean is there any solutions like concatenated datastore?
    Thank You.
    Regards,
    LG Tan

    Hi,
    I figured out how to do this today. The first thing is that the type of index you need is a USER_DATASTORE.
    The idea behind this type of index is pretty straight forward but the documentation does a very good job of not drawing attention to just how powerful it is.
    The idea behind a USER_DATASTORE is that you can write your own stored procedure to extract the data that you want to index and return it to the indexer. Take an example where you have a master table which contains enough information to allow you to find associated data in other tables i.e. a shared key. The idea is that when you set up a USER_DATASTORE index, you specify the name of a stored procedure that the indexer will call for each row in the master table. The stored procedure has one input and one output parameter, rowid (in) and clob (out).
    When the index is created, the stored procedure you specify is, as I said above, called for each row in the master table. Your stored procedure uses this ROWID to extract the shared key (this can be anything you want) from the master table and uses this to build the necessary SELECT statement to retrieve the related data from the other tables. The rest of the stored procedure simply appends the data returned from your select statement to the return CLOB. The indexer then indexes the inforamation in this CLOB and discards the data.
    The index can of course only return hits against the master table. It's up to your application to extract shared key from the returned row(s), bind to the other tables and present the results.
    You will find a basic example of how to implement USER_DATASTORES in the Oracle Text Reference Guide (http://download.oracle.com/otndoc/oracle9i/901_doc/text.901/a90121.pdf). Feel free to email me if you want some example code.
    Dean

  • Shortcut to widen column doesn't work

    Any shortcut for the "Grow Area" using the function name "Right Size This Column" (Select the vertical equals sign on the bottom right corner of a column and press the Control Key) doesn't work.
    I restart after setting it. I use "Shift, Option, Command, Y" as the shortcut, Any thoughts on how to get this shortcut to work?

    known issue, will be fixed in 5.3
    https://community.kde.org/Plasma/5.2_Errata

  • Span column doesn't work for me?

    Hey guys
    I'm not sure if there's another question/thread about this issue I have. I've tried searching but didn't give me good results.
    Basically, I've received an IND file from my client. The main heading paragraph style has span column (across all) setup already. But according to my client, for some reason, it doesn't work. I've tried fixing but I can't tell what caused it.
    The main heading is a numbered-list heading. Would this cause the span column not working?
    The setting is pretty straight forward, with span set to across all columns and space after span set to 15mm (space before is 0mm).
    If I can get some direction to how to rectify this that would be fantastic because I've got a number of reports to typeset using this template.
    Thanks guys.
    Cheers
    Leanne

    Never mind. I figured out what was the problem.
    It only works if all the text in one text frame with columns.

  • How to use a USER_DATASTORE to index multiple columns in different tables

    I would appreciate if somebody can give an example or point to links with examples on how to use USER_DATASTORE on multiple columns in different tables. THe Oracle Text documentation only shows multiple columns in the same table.
    Thanks in advance.

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • Buttons with multiple actions doesn't work in v32.1

    We had buttons in our previously published folios that bring one multi-state object to first state and second MSO to other state which depends on which button is pressed. It works in app v32.0 and lower, but it doesn't work longer after trying to update our app to v32.1.
    If there is no more possible to have buttons with more than one action, I think we should be warned in What's New in Relaese v32.1 notes. Because it's not happen we consider it as a bug. Can someone please tell us whether this is a permanent change to button functionality in DPS folios or if it is happen by mistake?

    Hello Michelle,
    I was wondering if you were able to see my post today about problems with MSO's and whether you were able to get any solutions for the previous posts on this thread?
    I have been in contact with the Adobe support team with regards to the problems I am having with the App I've created  and sent the App and some sample indesign files for them to look over. They have been really unhelpful and just given me this as the response:
    I have also researched about this issue and would like to inform you that there are several changes which have been incorporated in iOS 8.
    So apps which are created and working with iOS 7 might not work with iOS 8. This is an expected behavior.
    You would have to create the app again with compatibility settings with iOS 8 and then release an update for the same.
    So altogether there has to be another to be app created for iOS 8.
    As we are already 2 weeks over deadline, due to problems with iOS 8, and out of budget to cover the extra work we have had to do so far problem solving these issues, I really hoped for something better than this response.
    Are Adobe really not looking into a fix for this? Is the only solution to limit the interactivity and functionality of DPS apps so they work within the new restrictions of iOS 8?
    Any help would be really gratefully received.
    many thanks,
    Chrissy

  • Stamping presets to multiple images doesn't work in 3.3?

    I used to be able to lift adjustments from one image select multiple images and stamp multiple images at once. This doesn't seem to work in 3.3. Can someone verify please?

    The hot key is ⇧⌘V  (in the main menu bar : Metadata > Stamp Metadata and Adjustments) and this hot key also works for me on multiple selected images, provided "Primary only" is not enabled, as William pointed out. But I usually keep the Lift & Stamp HUD open, to be able to deselect some adjustment.
    Regards
    Léonie

  • PHP and multiple DB doesn`t work

    Hi
    I've been all day trying to find some clues on how to get data from two SSID on the same server (under Oracle 10g and PHP5 w/oci)
    I'll explain:
    The Oracle server has two schemas: datos and global.
    datos: localhost:1521
    SID: datos
    global: localhost:1521
    SID: global
    in PHP this is the connection I'm trying now, after a whola day i tried to simplify to the fullest:
    Line:-----
    <?php
    //STATEMENT 1
    @     $link = oci_connect("user","password" ,"localhost"/"global");
    echo "oci_fetch_array <br>";
    $stmt = ociparse($link, "select rut from USUARIO");
    ociexecute($stmt);
         while ($r2 = oci_fetch_array($stmt, OCI_BOTH)) {
              echo $r2['id_usuario'];
    OCIFreeStatement($stmt);          
    //STATEMENT 2
    @     $conn1 = oci_new_connect("user", "password", "localhost"/"datos");
    $SQL = "select id_usuario from USUARIO where id_empresa = '2'";
              $stmt = ociparse($conn1,$SQL);
              ociexecute($stmt);
                        while(OCIFetch($stmt)){ 
              $valor = OCIResult($stmt,1);
              echo $valor;
              OCIFreeStatement($stmt);
    ?>
    Both sentences are tested and working so there is no problem in the PHP code.
    * I've noticed that no matter what type of code I try, it always seems to only access the bolddatos*bold* schema and never even touches the global schema.
    * The errors I get from this code:
    Warning: ociparse() expects parameter 1 to be resource, boolean given in D:\www\index.php on line 12
    Warning: ociexecute() expects parameter 1 to be resource, null given in D:\www\index.php on line 13
    Warning: oci_fetch_array() expects parameter 1 to be resource, null given in D:\www\index.php on line 14
    Warning: ocifreestatement() expects parameter 1 to be resource, null given in D:\www\index.php on line 18
    after that, I succesfully get the result from the second statement ... so confusing
    * In the begining I used the sabe user and password for both schemas, now I've changed them . In that time the error was related to tables that didn't exist so I got to the conclussion that PHP was only accesing the datos schema, as I menctioned before.
    I don't know that else to do, and I'm thinking seriously on passing to another language.
    I've made a Sw in Java that also access those two databases, it works perfectly, so I'm thinking that perhaps it's me who don't know how to write in PHP, or PHP's OCI that doesn't support this kind of acces to databases.
    If somebody could show me some clues I'll be gratefull.

    Well actually the @ signs are there so the "PHP Warning: Division by zero" is disabled, still the connection have always worked just fine for me, that's just a warning.
    I really don't get the mixture between php4 and php5 as all the functions I used are documented in here http://cl.php.net/oci8.
    I've always have this confussion about SID and schemas. As i understand it the schemas are database instances that are identified by an SID. Lets say, the database instance has a global name "no_godzilla", then the SID will be "nogodzilla" (oracle truncates "_" from SID). And that database will have a user and a password to grant the access.
    So, the connection string must have a : username, password, SID or global database name and a specified host.
    For now the second connection ($conn1) on my php file is working but the first doesn, that even when the sentences are made to be perfectly equals, for that I've created tables in both databases with tha same structure but different data. Still, the only database that seems to work is datos
    Yesterday I tried to make the connection from an ODBC but found some trouble on doing that, I've received the following error:
    [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    so, I've created a new listener and i was able to start a ODBC from the datos database but still I recieve the message when I try to connect from the other database.
    After that I figured out (after reading some forums) that the error was on the listener configuration listener.ora and tnsnames.ora, I found it very troublesome to manually edit those files and after a while I just cracked and fell death on my desktop.
    Then I was told to use 3 databases instead of 2, wich made my soul leave my body for a while, and I took that fine oportunity to say "hi" to some people I haven't seen in a while.
    On my rebirth I decided to make tree brand new Oracle installations, so the ports on each database are different (this will solve my problem I thougth), but I only came to the same conclussion, PHP can only access one database (from 3 Oracle 10g on the same machine, Ive tested it under Oracle and mysql without problems of this kind).
    Now I have 3 listeners and 3 databases, each one on localhost:1521, localhost:1522 and localhost:1523. The listeners work fine but I cant make an ODBC or make my precious code to work.
    I must finish this work tomorrow, so I'm switching back to Java. Still in the future I surely will have to deal with this again so, I still ask for some clues, just so i know how to deal with this.
    Right now I'll resume reading the Underground oracle and PHP manual (I've read it before but only untill page 120).
    Thaks for your time.
    P.S. should I post my listener.ora and tnsnames.ora? (6 in total)

  • On OnPremise, Sending email to multiple recipients doesn't work with SendEmail method

    Hi,
    We are creating a site collection on OnPremise from App by using Sharepoint Client API's (16 version).
    After creation of site collection, we are sending an email to all site collection administrators. But we found that email is being sent to the only first person mentioned in the "To" list. For sending email we are using following method "Microsoft.SharePoint.Client.Utilities.Utility.SendEmail()".
    We tried different scenarios by passing alternately domain username and email address.
    Here are the findings for the different scenarios for the "To" field:
    1) "domain\user1; domain\user1" => sends email to first user
    2) "[email protected]; [email protected]" => sends email to both emails (at least shows in inbox To field, two occurances of email)
    3) "domain\user1; domain\user2" => sends email to first user
    4) "[email protected]; [email protected]" => sends email to first user
    Here is the code we are using:
                    EmailProperties properties = new EmailProperties();
                    properties.To = to.ToList();
                    if (cc != null)
                        properties.CC = cc;
                    properties.Subject = subject;
                    properties.Body = body;
                    Utility.SendEmail(context, properties);
                    context.ExecuteQuery();
    Please let us know what is going wrong here.
    Thanks in advance for your valuable inputs.
    Br,
    Shriram
    Shri07

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • 'Sort order column' doesn't work for prompt with function

    I turned on the 'sort order column property' in repository for a logic column 'school year', so when I get school year from prompt, it shows desc order. It works fine if th colume in prompt is a simple prompt. But when I add function in the column in prompt (means edit Fx with a case statement), when school year prompt shows in dashboard, it is not sorted in desc order any more, it went back to acs.
    Am I missing something, or this is a bug?
    Another question, when I turn on 'sort order column property' in repository for a logic column, can I choose to desc on another column? I couldn't do it, and had to create another sorting column.
    Thanks,
    Amy

    Cant you create this logic in the rpd and then apply order there and use the newly created column in your prompt..

  • "Warn me when closing multiple tabs" doesn't work

    Under Tools > Options > Tabs, "Warn me when closing multiple tabs" is selected. Also, in about:config, browser.tabs.warnOnClose is set to "true". I always have multiple tabs open. However, sometimes my hand slips or the mouse falls off the table and Firefox closes without any warning.

    I had this problem too a few monthes ago,
    sorry don't remember how I solved the problem...
    BUT a general TIP is that you sometimes should fully reinstall Firefox from the scratch.
    I mean save your bookmarks (json), have a list of your add-ons,
    preferably with their url too, and one for your plugins too, everything safe in a folder in your documents...
    And only then "shoot away" Firefox from your computer, profile included...
    make a full cleaning of everything belonging to Firefox.
    (with Glary utilitises, CC cleaner or any soft alike)
    Reinstall everything with the latest Firefox.exe !
    This especially if you're used to ( as I am) try new adds, make changes
    in about:config... and so on.
    I guess it comes because with the "normal way of updating", which I suppose is the case for most people, just to download the updates, Firefox, after a few monthes,
    starts to mess a little things around.
    And even "Speedyfox" nor defragmentation can't help that much...
    Personnaly, I don't like so much to do it, but like that, usually my Firefox works fast and well.
    Another solution is to use "FEBE" add-on...
    I wish this "general tip" will help some of you, or at least give some indications,
    on how you want to solve some Firefox problems :-)
    Note : depending on how many add-ons you have, this may take ~30minutes up to 3 hours (:-(), if you have never saved anything before (list from your adds).
    PS Me ? I save everything quiet often, because I once lost, years ago, everything concerning Firefox because I did a main mistake (lost all my bookmarks)... and told myself : Not Twice... :-)
    Happy Christmas ! :-)

Maybe you are looking for