Create index in solr & cf9 from query data

Hey guys,
   Does anyone have a working example of cfindex where input data comes from a query and where you can search said index for a given value in a specified field.
    I create an index as below.
    <cfindex action="update" query="v_test" collection="lib_30" type="custom"
             key="sequenceId" title="Lib 30 index" body="#v_test.columnList#" category="#v_test.columnList#"
             status="report">
    This creats an index but my fields tag in index are empty, and all the data in each column is concatinated together to create one long string.
     I have googled, and tried to make heads and tails of the live doc, but I haven't been successful
     Any one, please help
Jay

I can't see any evidence that CF supports individual search fields with Solr.  The <cfindex> implementation for Solr seems to just replicate what it did for Verity: bung all the data from the various columns specified in the BODY attribute into one long string.
I hasten to add that my comment is not based on code-based investigation, but just my reading of the docs coupled with your findings.  And tangential experience with CF's Solr integration implementation which I have found to be a bit... basic.
Adam

Similar Messages

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • Error creating index (trailing null missing from STR bind value)

    I'm having the following error:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-50857: oracle error in dreii0fsh
    ORA-01480: trailing null missing from STR bind value
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
    ORA-06512: at line 1
    my script is:
    create index IDX_XML on EN_TESTE_XML(TXT_XML_CURRICULO)
    indextype is ctxsys.context;
    My Oracle is 9.0.1
    TXT_XML_CURRICULO -> XMLTYPE then
    the section group is PATH_SECTION_GROUP by default.
    thanks.
    Marlon

    If you get an OCI error when simply updating a record in PL/SQL Developer, it sounds like a PL/SQL Developer issue, although not one I've come across. You might try Allround Automations tech support. They'll need your exact versions of Oracle server, Oracle client and PL/SQL Developer.
    SQL*Plus is part of the Oracle Client software so you should have it somewhere, or you can download it free.

  • Creating new event in iCal from BBEdit data window.  Calendar number fails.

    When I try to create a new event in iCal I am getting the error "The variable theCalendarNumber is not defined." even though theCalendarNumber is supposed to be set in the preceding line. Does this have anything to do with embedding the tell application "iCal" within the tell application "BBEdit 6.5" loop?
    Before this error I was getting a NSContainerSpecifierError error. I think that was because I was trying to specify the calendar as a string instead of a number as required by Panther OS.
    BBEdit data window follows.........
    3/8/2009 Fun Fly CD ?
    4/5/2009 Fun Fly CD ?
    14/8/2009 Combat
    4/25/2009 Club Cleanup Workday
    5/2/2009 Electric Extravaganza
    5/17/2009 Fun Fly CD ?
    6/7/2009 Fun Fly CD ?
    7/12/2009 Fun Fly CD ?
    7/19/2009 Combat
    8/9/2009 Fun Fly CD ?
    8/14/2009 Combat
    8/22/2009 War Bird
    8/29/2009 Club Cleanup Workday
    9/5/2009 & 9/6/2009 IMAC
    9/13/2009 Fun Fly CD ?
    10/4/2009 Fun Fly CD ?
    11/9/2009 Fun Fly CD ?
    11/14/2009 Combat
    12/13/2009 Combat
    Applescript follows.......
    set theCals to {}
    set iCalendars to {}
    set theDate to current date
    set myDate to date string of theDate
    tell application "iCal"
    set theCals to calendars whose writable is true
    repeat with i from 1 to count of theCals
    copy title of item i of theCals to end of iCalendars
    end repeat
    end tell
    set theChoice to (choose from list iCalendars with prompt "Choose the Calendar to use" OK button name "Choose" without multiple selections allowed and empty selection allowed)
    tell application "BBEdit 6.5"
    repeat with i from 1 to count of lines in text window 1
    set the_line to contents of line of text window 1
    set old_delims to AppleScript's text item delimiters
    set AppleScript's text item delimiters to tab
    set the_Date to text item 1 of the_line
    set the_Event to text item 2 of the_line
    tell application "iCal"
    set theCalendarNumber to (first calendar whose title is theChoice)
    set theEvent to make new event at end of events of theCalendarNumber with properties {start date:the_Date, summary:"", description:the_Event}
    --if alarmTime is not 0 then
    --tell MyEvent
    --make new display alarm at end of display alarms with properties {trigger interval:alarmTime}
    --end tell
    --end if
    --show theEvent
    save
    end tell
    set AppleScript's text item delimiters to old_delims
    end repeat
    end tell
    tell application "iCal"
    reload calendars
    end tell

    You have a couple of issues here.
    First, the line:
    set theCalendarNumber to (first calendar whose title is theChoice)
    However, theChoice is defined at:
    set theChoice to (choose from list iCalendars with prompt "Choose the Calendar to use" OK button name "Choose" without multiple selections allowed and empty selection allowed)
    Since you're allowing multiple selections, theChoice will be a list.
    You can't get 'first calendar whose title is' a list. You will need to either permit single selections only, or extract the calendar name from the selected items (maybe iterating through them if you want to add the event to multiple calendars).
    Once you address that, the line:
    set theEvent to make new event at end of events of theCalendarNumber...
    also won't work because theCalendarNumber will be the name of a calendar, so this command tries to set the event to the end of events of a string. Instead you need to ask for the named calendar, like:
    set theEvent to make new event at end of events of calendar theCalendarNumber
    Then you should be set.

  • Automatically creating non-interactive PDF forms from XML data

    Hi All,
    I am a newbie to the whole Adobe LifeCycle Designer product and have been trying to find a definitive technical article on a way to automatically create pdf documents from template forms using XML data. I can create the XML, I can create the form based on the XML schema but I can't seem to find anything which explains how to automatically associate the form with the each xml file that I create and produce a pdf document based on the xml data.
    The project I am working involves creating marketing brochures, driven from our enterprise databases, to be sent to a printer. No user interaction is required, and I estimate that we'll need to create around 500-1000 pdf's per day.
    To me this seems like it should be quite a simple task but I can't find anything which gives me a starting point.
    Any help would be greatly appreciated.
    Regards
    Nick Smith

    Hi Nick,
    Just curious if you figured out how to generate a PDF out of a template? I've a similar requirement where I transform XML schemas into templates, convert the template into a PDF document, and at run time bind the PDF with the form data.
    To sort of answer your question of how to bind an XML instance file to a form, if that form is an XML-FORM, then all you'd need to do is open that document as a PDF document using the PDFFactory, and invoke the importFormData() method on it, passing the XML instance as the input stream.
    The harder part though is getting the PDF out of the template in the first place, without using any adobe user interface period.
    Karthick

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • Need info related to creating indexes on ODS.

    Hi All,
    I have transported manually created secondary indexes on my ODS to quality system.
    Now I have a requirement where i have to optimise the query performance.
    In quality, I activated the ODS.There was data in the ODS before creating of index.
    But still my Query is taking too long to display records.
    Now my main doubt is since I have transported the manually created indexes,
    when these indexes will start working whether at the time of data loading or after the activation of ODS?
    Please advice on how i can optimise the query performance.

    Hi Priyanka,
    I think, your indexes should be working immediately after the transport.
    You can always create indexes even when there is preexisting data. As soon as you save the indexs they should be created on the data base.
    You can check whether your indexes are being used by your query in RSRT in display run schedule in data manager in execute and debug mode (Check the execution plan).
    You can check whether your indexes have been created in ODS Active table in SE11 in index maintainance and also in DB02 , I believe.
    To optimize your query performance - Filter in the queries should be on the primary indexes or the seconday indexes. You will get to know whether the indexes are bein guse and the cost saving by the usage of these indexes in the execution plan.Try to create indexes only when absolutely essential , because as mentioned in the post below, it affect loading performance, since it has to create these indexes for the newly loaded data
    If you are using Oracle data base you can consider partitioning your infoprovider
    If you are using DB2 - You can try multi dimensional clustering
    You can choose appropriate read mode and Cache mode for the query
    You can archive historic data no longer reported, to increase the reporting speed
    You can design the query correctly - with correct placement of filters
    Points to note when creating secondary indices is the order and the number of characteristics  in the secondary indices is also the determining factor for the usage of the index by your query
    Hope this helps,
    Best regards,
    Sunmit.

  • Set/get variables with RSBBS from  query 1 to query 2

    Hi BW Experts,
    I created a sender/receiver assignment from query 1 to query 2 using RSBBS. For two characteristics I assigned the processing method by “Variable”. Process mode for these variables in the receiver query is by “customer exit”. But I don’t know how to set/get values of these variables.
    Is there any function module to do it ??
    Please help!!
    Dev

    thanks...but i m not used in RSBBS and i m afraid i m lost
    could anyone explain me in detail :
    - what i have to do for setting the sender & receiver,
    - before to set parameter ID in the sender how to get the information of the current line (which will serve for the jump)
    please help! i promise points
    Dev

  • How to map query data to workbook

    Hi Freinds,
          Hoping you have goodday, please let me know how to create workbook
          and how to map query data to it.
    Thanks
    Chandan Kumar

    Hello,
    Execute a BEx Query and in the BEx toolbar you can see SAVE button, click that as select SAVE as Workbook.
    If you want to insert more queries then first place the cursor where you want to insert the query, then Goto BEX toolbar, Select the Tool Icon and you can see a menu called Insert Query.
    Thanks
    Chandran

  • Creating Data Driven Subscription does not allow me to get Auto copy from Query.

    I am trying to create a data driven Subscription for sharepoint document Library.  I have a table I populate with values.  Then a stored procedure that exec and returns the values.  I use this in my data driven subscription. 
    Here is what my table looks like
    intSubscriptionID strSubscriptionName strFileName strPath strRenderFormat strWriteMode strFileExt strTitle strAutoCopy strUserName strPassword strVar1 strVar2 strVar3 strVar4 strVar5 strVar6 strVar7 strVar8 strVar9 strVar10 bitEnabled
    400 Billing - Invoice_ParentChildRollup 19_Jan2015 http://eagleviewportal/BusinessIntelligenceCenter/AccountingBI/Reports/New Excel Overwrite True Invoice_ParentChildRollup False NULL NULL 0000019 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    401 Test Daily Order and Pending Status by SubAccount Test Daily Order and Pending Status by SubAccount http://eagleviewportal/BusinessIntelligenceCenter/ClientRelationsBI/Reports/New Excel Overwrite True Test
    Daily Order and Pending Status by SubAccount True NULL NULL 152884 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    I can use all the values and it creates my subscription no problem as long as I do not try to use the autocopy. 
    If I select Use no Value  all works great. 
    If I select Specify a static Value and then choose True it gives me an error The AutoCopy Delivery setting cannot be set to True if the WriteMode Delivery setting is not set to Overwrite.  as you can see that value is set to overwrite.  If I use
    hard coded word OverWrite instead of getting it from query it works.
    If I do the same step above but select False it seems to work as well.
    If I try to choose the value from the query then it errors with the generic Sorry Something went wrong. I cannot find any value in url logs.
    Ken Craig

    Hi Ken,
    I have reproduced the same issue as you encountered. If you choose both value for the fields(WriteMode and AutoCopy) from query, SharePoint will result in an error page. I finally fixed the issue by manually updating the table
    dbo.Subscriptions from the reporting service database. To make this, please first copy the value of field
    ExtensionSettings from the subscription table.
    Change the WRITEMODE and AUTOCOPY from "<ParameterValue><Name>WRITEMODE</Name><Value>Overwrite</Value></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Value>AutoCopy</Value></ParameterValue>"
    to "<ParameterValue><Name>WRITEMODE</Name><Field>strWriteMode</Field></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Field>strAutoCopy</Field></ParameterValue>".
    Here Value means the static value, and field means the name of the query field. After you modify it, copy the settings back to field
    ExtensionSettings or use update SQL to update it.
    At last, your data driven subscription should be like this:
    Thanks,
    Reken Liu

  • Query data source type = procedure or from clause

    1)I have a form where a block is based on a from clause. In the source name I entered a simple sql statement.
    Isn't the items suppose to show without any other action or
    WHAT ELSE DO I NEED TO DO IN ORDER TO SEE THE BLOCK ITEMS EQUIVALENT TO THE COLUMNS IN THE QUERY?
    2) I have a form where a block is based on a procedure.
    First I created a package in a program unit with the procedures query_procedure, insert_procedure, update_procedure, delete_procedure and lock_procedure.
    Then I set the query data source name to the package query_procedure. The columns and arguments were automatically filled by Forms - they are fine as well.
    Forms automatically created the block triggers insert-procedure,delete-procedure, update-procedure and lock-procedure.
    Everything seems to be fine but when I run the form and execute the query I get frm 40505 - unable to perform query.
    What am i doing wrong?
    This is the package:
    PACKAGE pkgdeptemp IS
    type dept_emp is record (
    empno number(4),
    ename varchar2(10),
    job varchar2(9),
    hiredate date,
    sal number(7,2),
    deptno number(2),
    dname varchar2(14));
    success constant number :=0;
    type dept_emp_ref is ref cursor return dept_emp;
    type dept_emp_tab is table of dept_emp index by binary_integer;
    procedure query_procedure (resultset in out dept_emp_ref, p_empno in number);
    procedure lock_procedure (dmlset in out dept_emp_tab);
    procedure insert_procedure (dmlset in out dept_emp_tab);
    procedure update_procedure (dmlset in out dept_emp_tab);
    procedure delete_procedure (dmlset in out dept_emp_tab);
    END;
    PACKAGE BODY pkgdeptemp IS
    function get_success return number is
         begin
              return(success);
         end;
    procedure query_procedure (resultset in out dept_emp_ref, p_empno in number) is
    begin
         open resultset for
              select e.empno, e.ename, e.job, e.hiredate, e.sal, e.deptno, d.dname
              from emp e, dept d
              where e.deptno = d.deptno
              and e.empno = nvl(p_empno, e.empno);
    end query_procedure;
    procedure lock_procedure(dmlset in out dept_emp_tab) is
         tempout number(4);
    begin
         for i in 1..dmlset.count loop
              select empno
              into tempout
              from emp
              where empno = dmlset(i).empno
              for update;
         end loop;
    end lock_procedure;
    procedure insert_procedure (dmlset in out dept_emp_tab) is
         cursor c_dept (i binary_integer) is
         select deptno
         from dept
         where deptno = dmlset(i).deptno;
         tempout number(4);
    begin
         for i in 1..dmlset.count loop
              open c_dept(i);
              fetch c_dept into tempout;
              if c_dept%notfound then
                   insert into dept(deptno,dname)
                   values(dmlset(i).deptno, dmlset(i).dname);
              end if;
              close c_dept;
              insert into emp (empno,ename,job,hiredate,sal,deptno)
              values (dmlset(i).empno, dmlset(i).ename, dmlset(i).job, dmlset(i).hiredate, dmlset(i).sal, dmlset(i).deptno);
         end loop;
    end insert_procedure;
    procedure update_procedure (dmlset in out dept_emp_tab) is
         cursor c_dept (i binary_integer) is
         select deptno
         from dept
         where deptno = dmlset(i).deptno;
         tempout number(4);
    begin
         for i in 1..dmlset.count loop
              open c_dept(i);
              fetch c_dept into tempout;
              if c_dept%notfound then
                   insert into dept(deptno,dname)
                   values(dmlset(i).deptno, dmlset(i).dname);
              else
              update dept
              set deptno=dmlset(i).deptno,
              dname=dmlset(i).dname;
              end if;
              close c_dept;
         update emp
              set empno=dmlset(i).empno,
              ename=dmlset(i).ename,
              job=dmlset(i).job,
              hiredate=dmlset(i).hiredate,
              sal=dmlset(i).sal,
              deptno=dmlset(i).deptno;
         end loop;
    end update_procedure;
    procedure delete_procedure (dmlset in out dept_emp_tab) is
    begin
         for i in 1..dmlset.count loop
              delete from emp where empno = dmlset(i).empno;
         end loop;
    end delete_procedure;
    END;

    for ur q1:
    create the text items manually in the layout editor or in the obj navigator then specify there properties manually in the the pallette.
    database item = yes
    column name = field name in ur select statement
    for q2:
    try running the form again and press F8 then if an error occur press F1 or shift F1 to show the error in ur code.
    i suspect u forgot to specify a value for the in parameter the reason why u get an error that is specify the actual parameter for ur in argument then press F8.
    enjoy!

  • After creating index query is taking more

    Hello all,
    I am trying the following..and not getting why the query is taking more time after creating the index
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:22.16
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=15 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=15 Card=1 Bytes=22)
    2 1 TABLE ACCESS (FULL) OF 'IEFLOA_DATA_ANAL' (Cost=2 Card=1
    Bytes=22)
    /*******************Here I am creating the Index************/
    SQL> create index t_ind_date on iefloa_data_anal(datetime_inserted);
    Index created.
    Elapsed: 00:07:427.38
    SQL> SELECT distinct version_no
    2 FROM iefloa_data_anal
    3 WHERE datetime_inserted > to_date('17-02-2004','dd-mm-yyyy');
    VERSION_NO
    999
    Elapsed: 00:00:40.10
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=14 Card=1 Bytes=22)
    1 0 SORT (UNIQUE) (Cost=14 Card=1 Bytes=22)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'IEFLOA_DATA_ANAL' (Cos
    t=1 Card=1 Bytes=22)
    3 2 INDEX (RANGE SCAN) OF 'T_IND_DATE' (NON-UNIQUE) (Cost=
    1 Card=1)
    can anybody explains whats the reason...
    the table is having around 1.5 crore records
    regards

    The execution plan clearly shows that Oracle thinks only one row is going to match that condition on the index ("Card=1"). Is that a true statement? If not, you should make sure your stats are accurate. If the data is highly skewed, you may need to put a histogram on that column.
    Another possibility is that the index is on much slower disks than the table. Although, I can't imagine any range scan on an index that has only one matching value taking that long. How about doing a full trace (SET AUTOTRACE ON) and posting the logical and physical i/o information?

  • Creating Index on a XML generated from Dataset

    HI mark,
    I have an XMLTYPE table that contains data of the following format
    <ROWSET>
    <ROW>
    <column1>1</column1>
    <column2>2</column2>
    </ROW>
    <ROW>
    <column1>1</column1>
    <column2>2</column2>
    </ROW>
    <ROW>
    <column1>1</column1>
    <column2>2</column2>
    </ROW>
    </ROWSET>
    the size of the XML is around 6.6 GB
    I have to index it on column 1..
    Is it possible?
    If so how should be my schema?
    and table creation procedure?
    Can I create a clustered index on column 1 (it contains unique value)
    I am using an XMLTYPE table
    thanks
    Kathir

    Thanks Marco and you caught me right..
    I am a microsoft user..
    As you said I tried creating function based index(2 to 3) but when I run a query on that table and draw explain plan it shows full table access. I didnt understand what exactly the problem is and why it didnt use the index..
    would be great if some one can help me out with this...
    I created index like this
    Create INDEX Dataplace_Index1 on Dataplace e(e.existsnode('//syougou2')
    the query goes like this(worst possible query)
    select extractvalue(value(x),'//syougou2'),extractvalue(value(x),'//company_code'),extractvalue(value(x),'//address') from company_details c, table(xmlsequence(extract(value(c),'/COMPANY_DETAILS/COMPANY'))) x where
    rownum < 250
    and
    (extractvalue(value(x),'//gyousyu_code') LIKE '%1%' OR extractvalue(value(x),'//gyousyu_code') LIKE '%2%' OR extractvalue( value(x),'//gyousyu_code') LIKE '%3%')
    and
    extractvalue(value(x),'//city_code') IN ('3501','3502','3503')
    and
    extractvalue(value(x),'//g_rieki5') NOT IN ('1')
    and
    extractvalue(value(x),'//jugyoin') > 1
    and
    extractvalue(value(x),'//g_uriage5') > 1
    and
    extractvalue(value(x),'//sihon') > 2
    and
    extractvalue(value(x),'//company_code') > '01-003541-9'
    order by extractvalue(value(x),'//company_code') , extractvalue(value(x),'//g_rieki5')
    and yet times a join..
    My question is will functional index be helpful..
    and if so is something wrong with the way I created a Fucntional Index..
    why does the explain plan give Full table access
    thanks
    kathir

  • A query related to creating Indexes for a table

    Hi ,
    I am in a J2EE Banking Project using Oracle 10g as our Database .
    We have created Indexes on some tables .
    But this this is not called by any of our Java class .
    Could anybody please let me know how these Indexes will actually improve the Performance .
    Waiting for your replies .
    Thanks in advance .

    But in our safety database (huge & ofcourse Oracle), we use indexes just because to avoid duplicates, improve data retrieval and so on.As you pointed out indexes can do 2 things for you: enforce uniqueness and (hopefully) improve data retrieval. Enforcing uniqueness is pretty basic, but indexes don't always improve performance. Under the wrong condtions indexes can hurt performance. The ideas below refer to B-TREE indexes; other kinds of indexes have other considerations
    Indexes add overhead to insert, delete, and (hopefully not - updating index columns is a Bad Idea), enough so that if you're inserting a lot of rows into a large table it is sometimes helpful to drop the indexes, load the data, and recreate the indexes when done to help performance. The more indexes a table has the more overhead DML statements need to maintain them.
    Indexes help query performance under a couple of conditions. When using them as join keys to retrieve a small percentage of rows in a table (< 20% maybe; there is no firm number) indexes can help. When a query can read its columns from an index only (such as counts against a primary key index) index access can be faster than table access.
    Indexes can hurt performance by adding overhead for maintenance if the index is never actually used or if used to read most of the rows in a table when a full table scan would be more efficient (why go through the extra effort to read the index and then table when you'll have to read most of the rows in the table anyway?).

  • Creating index using XMLIndex, changes the result set when querying

    Hi there,
    I was tasked with populating an Oracle 11Gr2 database with data from 800,000 XML files. I used the Oracle documentation, and in about 2 days I had the data loaded into a simple table.
    Queries of this table were SLOW, so this morning I read about using XMLIndex to index the table... I did this, and it works great -- the queries got a LOT faster.
    However -- a "column" from my XML data is supposed to return values of 2000-4000 characters. It worked fine, until I created my index -- after I created the XMLIndex, the data is being truncated to 80 chars in my query.
    CREATE TABLE TEST_XMLTABLE OF XMLType; /* XML data has a "node" called TEXT which can be up to 4000 chars */
    SELECT to_number( extractValue(OBJECT_VALUE, 'newsitem/@itemid')) as ITEM_ID, Text.text <----- value here will contain full text body up to 4k chars
    FROM TEST_XMLTABLE KTX,
    XMLTABLE('/newsitem' PASSING ktx.Object_Value columns "TEXT" clob PATH 'text') TEXT
    /* now create the index */
    CREATE INDEX IDX_xmlindex ON TEST_XMLTABLE (OBJECT_VALUE) INDEXTYPE IS XDB.XMLIndex;
    Now, run my query again, and TEXT.TEXT is truncated to only 80 chars!?!?!
    I'm not sure what to do next... my users need the full text, so for now I have dropped the XMLIndex... the queries are slow, but they are getting all the data.
    Thanks in advance for any help or ideas.
    Keith

    I still do not have an answer back from Oracle, regarding if this is a "bug" or not....
    but for now, I have a "workaround" that seems to fix the problem. After I create the XMLIndex, I can remove the troublesome "path" from the index by doing an index rebuild, as shown:
    ALTER INDEX IDX_xmlindex REBUILD PARAMETERS ('PATHS (EXCLUDE ADD (/newsitem/text))');
    After I rebulld the index, I get all the chars in my TEXT node properly. However, the performance of the queries is noticably slower than before I did the ALTER INDEX.. albeit still faster than with no index at all.

Maybe you are looking for