Search in a collection of XMLs

Hello to all,
I have a table (CLOB type) that contains a big collection of XMLs.
A simple search on this column is too slow.
Could you please provide me a list of possible solutions in order to make the search faster.
1. Using Oracle text possibly?
2. Creating an index at the column?
3. I found the http://xqengine.sourceforge.net/ but there are some memory problems. Although what I am looking for is something like XQEngine.
What else would you suggest.
I am using Oracle 9.2.0.6
Thank you in advance,

Thank you a lot about your answer.
I will try to give you more info regarding my situation.
1. These XMLs is important to be updated quickly because is the core of the system.
2. Indexes provide slower update/insertion.
3. Currently we extract all the info we need from the XML to separate tables and we search the columns on these tables.
4. There are no "most wanted" XML tags.
Basically as I said we have some tags already in new columns outside of the XML.
I am just searching ways for different solutions that will be quick enough and not so difficult to maintain.
For example for a new tag we have to create a new column on the table, update interface, and many many other actions when we update, insert an XML.
It is cumbersome.
That's why I am searching for other ways to go on.
If I will not be able to find something better then I will continue with the existing solution.
So I am looking for alternatives.
Thank you in advance,
Klearchos

Similar Messages

  • Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Qtn: I have 10 standard elementary search helps in collective standard search help, how to deactivate the 10th elementary search help?

    Hello,
    this topic is still a problem for me, does anybody have an idea.
    Just to show what's my problem:
    Collective Search help KRED does include a SAP append-search help ASH_KRED which holds the elementary search helps KREDC, KREDE, KREDM, KREDW.
    The search helps KREDE, KREDM, KREDW should not be displayed, so I added another Serach-Help-Append ZKRED_CUST at the end of CSH KRED which holds these 3 SH's with the hidden flag.
    That works, the SH's are not shown anymore.
    I also added some other of the Original SAP SH's (e.g. KREDA) with the hidden flag and added changed copies of these (e.g ZKREDA) there to be shown instead.
    All this can be done modification free by appends.
    The folders of the elementary search helps are shown in the order as they are found included in the KRED SH and the append to this SH.
    This means that the not hidden Sh KREDC from ASH_KRED is shown before all the "custimized" ZKREDx -SH's. But we need this SH not very often, so that I want it to displayed al the right-most position of the folders of SH's or at the most down postition of the drop-down-selection of SH's.
    But I have not found any way to do this modification free.
    The only way to archive this is to modify ASH_KRED by setting the Hidden-Flag for KREDC and add this SH at the end of append-SH ZKRED_CUST again.
    But I want avoid this modification.
    So, is there any way to do this without modifing any of the original SAP SH's ?
    Helmut Fischer

  • Search with Logical Collection

    Hi all!
    I'm on a Siebel Project and the customer has a requirement that their users need to perform a search across multiple BC's.
    Looking at the documentation on bookshelf (Siebel Search Administration Guide), i found that is possible group search categories into logical collections and then it's possible to search on multiple BC's.
    Does anyone know if with the logical collection procedure can I fill different fields of differente categories or can I just fill a generic search field that search the term in all the categories I definied to the logical collection?
    If anyone have experiences on Siebel Search and logical collection to share, i would appreciate!
    Thanks in advance
    Rafael Feldberg

    You have to distinguish between attribute search and full text search:
    In attribute search you can use logical operators by using the generic Select Options just like in any other search help.
    In full text search all entered search words are interpreted with AND conditions.
    If you just press the generic F1 for help on the field "Full Text Search" you will receive the complete standard documentation.
    OR conditions in full text search are not supported because of the restrictions of the generic F4 UI.
    If you want to support OR conditions you should consider installing the SAP product NetWeaver Enterprise Search. The full text search in it's generic search UI contains a query parser that supports the following (and more) features:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/d0/297dfa25a24a57a31e8364ee2ad7eb/frameset.htm]
    Instead of contructing OR conditions it's sometimes much more convenient to browse with NetWeaver Enterprise Search through the distinct value lists of attributes: Read "Narrowing Down Results" in:
    [http://help.sap.com/saphelp_nwes72/helpdata/en/df/f2fb01b6844246b121497b633d83a5/frameset.htm]
    Enjoy! - Klaus

  • Question regarding stacks, searches and smart collections

    Apologies if this is considered a 'basic' question - but I hope that someone can help me.
    I'm currently in the process of upgrading/migrating a reasonably large Photoshop Elements 6 catalog where I've made extensive use of hierarchical folder structures, keywords and star ratings to quickly locate photos using a range a different techniques.I've successfully upgrade/migrated the Photoshope Elements catalog into Lightroom 3 and as part of the verification that everything has come across OK - I've done some comparisons of catalog searches in Elements and Lightroom and seem to be getting some strange results which I'm not sure if this is simply how things work or if I'm doing something wrong. I think part of the issue is caused by the fact that Elements always does destructive edits - so I never edited original photos in Elements so made extensive use of copied photos and stacks - but this didn't seem to cause any issues as Elements seem to keep things straight.
    In Elements, the result of a query or Smart Collection might return 18 stacks of photos (with most of the stacks containing multiple photos) - but for most purposes Elements simply treated this as 18 seperate photos and simply ignored all of the photos under the top of the stacks. 
    Now in Lightroom I get different results depending on how the photos are identified. If I use either a keyword or rating search using the 'Right Hand' panel - I get a photo count returned which is always much higher than 18 but Lightroom seems to retain the stacks so only displays 18 different stacks,  However, if I put the same search criteria into a Lightroom Smart Collection - it retrives and displays ALL of the photos in the 18 stacks (so it displays 2-3 times more photos) and I can't seem to find a way to get the Smart Collection to honour these stacks. I know that I could probably alter each of my photo stacks and change the rating or keyword of all of the photos under the top of the stack - but trust me this is a huge amount of work!!
    Is this simply the way Lightroom works?  I can partially understand and accept the way direct keyword or rating searches work using the 'Right Hand' panel - although the photo counts are different from what I've got used to in Elements the way the photos are actually displayed is not that different. However, what really confuses me is the completely different way Smart Collections work when compared to the 'equivalent' direct query.  Have I missed something?  Or is this some form of technical issue/bug/future enhancement request?
    Also, on a slightly related issue - I've noticed that keywords with spaces (or other special characters) seem to cause issues for Lightroom - while Elements seems to cope with these OK. From the reading I've done it looks like one of the most common suggestions is to simply remove the spaces (..etc.) in the keywords - is that what most people would recommend??
    Any help, advice or other suggestions would be appreciated.
    Kind Regards .... Jerry

    I'm currently in the process of upgrading/migrating a reasonably large Photoshop Elements 6 catalog where I've made extensive use of hierarchical folder structures, keywords and star ratings to quickly locate photos using a range a different techniques
    Please tell us EXACTLY the steps you are using to move your PSE catalog to Lightroom.
    However, if I put the same search criteria into a Lightroom Smart Collection - it retrives and displays ALL of the photos in the 18 stacks (so it displays 2-3 times more photos) and I can't seem to find a way to get the Smart Collection to honour these stacks. I know that I could probably alter each of my photo stacks and change the rating or keyword of all of the photos under the top of the stack - but trust me this is a huge amount of work!!
    I believe this is how Lightroom was designed to work. Smart collections don't recognize that some photos are at the bottom of the stack.
    Also, on a slightly related issue - I've noticed that keywords with spaces (or other special characters) seem to cause issues for Lightroom - while Elements seems to cope with these OK. From the reading I've done it looks like one of the most common suggestions is to simply remove the spaces (..etc.) in the keywords - is that what most people would recommend??
    I have no trouble whatsoever using keywords that have spaces in them. I have keywords that are "New York", "New Jersey", "Union Pacific Railroad", etc. Special characters, such as a comma, will probably cause trouble. Exactly what are you doing where spaces in keywords are not working properly?

  • ISA 50 - B2C Open orders search, extending generic-searchbackend-config.xml

    Hello Experts,
    I have several B2C sites and webshops, and B2C self-created accounts are common to all sites. The problem is that all open orders and completed orders (from all sites) appear in the open orders / completed orders in My Account. I'd like to separate the display of orders for each site.
    Each of my site corresponds to a sales organisation in CRM / R3. In the GenericSearchDynamicContent class, which is used in the standard generic-searchbackend-config.xml to generate dynamic values in filters, I found a method addSalesOrg(). I tried to add this in the customer/generic-searchbackend-config.xml :
    <configs isa:extends="../configs[@id='crmdefault']">
      <config id="javabasket_javatemplate_forCRM">
        <property-group name="SearchCriteria_B2C_Sales">
          <property name="SALES_ORG"
          entityType="CL_CRM_REPORT_SET_ORGMAN"
          tokenType="RAN"
          type="dark">                                                     
            <allowedValue content="dynamic"
            contentCreateClass="com.sap.isa.isacore.GenericSearchDynamicContent"
            contentCreateMethod="addSalesOrg" />
          </property>
        </property-group>
      </config>
    </configs>
    But it doesn't work, all orders are displayed. If I don't set the entityType and RAN, ABAP returns an error and doesn't take in account the property SALES_ORG, but I don't know if these are the good values (I found these values by debbuging abap ...)
    I haven't found any documentation on the parameters I could add and the corresponding types etc., the Dev and Ext guide (and tuts) shows an example on how to add a search parameter in the selection screen and add a column in the result screen, but no detailed list of fields we could add...
    Please let me know if you have a solution to add sales organisation to the search parameters, and links to documentation.
    Thank you by advance
    Julien

    Hello and thank you for your answer
    I finally found the solution by myself :
    in crmtcweb~appbase/WEB-INF/xcm/customer/modification/generic-searchbackend-config.xml :
           <configs isa:extends="../configs[@id='crmdefault']">
                     <config id="javabasket_javatemplate_forCRM">
                        <property-group name="SearchCriteria_B2C_Sales">
                             <property name="SALES_ORG"
                            entityType="CL_CRM_REPORT_SET_ORGMAN"
                            tokenType="RAN"
                           type="dark">                                                     
                        <allowedValue content="dynamic"
                                      contentCreateClass="com.sap.isa.isacore.Z_GenericSearchDynamicContent"
                                      contentCreateMethod="addSalesOrg" />
                    </property>
                        </property-group>
                   </config>
              </configs>
    in Z_GenericSearchDynamicContent :
         public void addSalesOrg() {
              selOpt.addSelectOptionLine(
                new GenericSearchSelectOptionLine(
                     handle,
                     pty.getName(),
                     pty.getEntityType(),
                     pty.getTokenType(),
                     "I",
                     "EQ",
                     bom.getShop().getSalesOrganisation(),
    And it works Now only the orders with the same salesOrg as the webshop are displayed.
    Hope this could help somewone else.
    Julien

  • The find function (Ctl+F) , doesn't not expanding the xml file , to search for given search. If the the xml file is expanded , then find function finds the tag and data. How to fix this.

    The find function doesn't expanding the xml nodes to search. If the xml is expanded , then find function highlights both matching tag and data. how to fix this.
    == This happened ==
    Every time Firefox opened

    <xsl:value-of select="x"/> produces a string that consists of all text nodes in x.
    <xsl:copy-of select="x"/> produces an exact copy of x.
    Go to http://www.zvon.org/ for more information like this.

  • How to send emails using Automatic Work Items in Collections using XML Publ

    Hi,
    We are using XML Publisher to send correspondances in Advanced Collections.
    We want to send email correspondances using Automatic Strategy Work Items.
    Can anybody please help on how to send these?

    I believe you have to define your dunning template and assign that template to the strategy work item.
    Let me know if you are still not able to do it.
    Thanks,
    Anil

  • How to search and replace in an xml file using java

    Hi all,
    I am new to java and Xml Programming.
    I have to search and replace a value Suresh with some other name in the below xml file.
    Any help of code in java it is of great help,and its very urgent.
    I am using java swings for generating two text boxes and a button but i am not able to search in the xml file thru the values that are entered into these text boxes.
    Thanks in advance.
    **XML File*
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <student>
    <stud_name>Suresh</stud_name>
    <stud_age>40</stud_age>
    </student>Also i am using SAX Parser in the java program
    any help of code or any tutorials for sax parisng is very urgent please help me to resolve this problem
    Edited by: Karthik84 on Aug 19, 2008 1:45 AM
    Edited by: Karthik84 on Aug 19, 2008 3:15 AM

    Using XPath to locate the elements you are after is very easy.
    Try something like this:
    import java.io.File;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.xpath.XPath;
    import javax.xml.xpath.XPathConstants;
    import javax.xml.xpath.XPathFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class BasicXMLReplaceWithDOM4J {
         static String inputFile = "C:/student.xml";
         static String outputFile = "C:/studentRenamed.xml";
         public static void main(String[] args) throws Exception {
              // Read xml and build a DOM document
              Document doc = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(new InputSource(inputFile));
              // Use XPath to find all nodes where student is named 'Suresh'
              XPath xpath = XPathFactory.newInstance().newXPath();
              NodeList nodes = (NodeList)xpath
                   .evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
              // Rename these nodes
              for (int idx = 0; idx < nodes.getLength(); idx++) {
                   nodes.item(idx).setTextContent("Suresh-Renamed");
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
    }- Roy

  • Is it possible to search for keywords in an XML file?

    Hey all,
    I'm currently searching for ways to count the number of pre-defined keywords in an XML file. An example would be trying to find how many times "war" is mentioned in a news networks RSS feed <title></title> and adding it to a variable.
    I've found a few custom AS3 XML class files out there but nothing I've been able to adapt. I'm at the point of considering just taking the title of these news stories converting them all to strings and searching them that way...
    I'd be grateful for any help
    Thanks!

    An XML element can have multiple attributes such as:
    <title keyword="war" category="international">War Breaks Out in the Middle East!</title>
    In the above example, the XML element <title> has 2 attributes named keyword and category.
    So in my example I'm searching for the attribute named "keywords" within the element <newsItem>.
    The XML document could be formatted something as the following:
    ============
    <someNewsFeed>
         <items>
              <newsItem keyword="war" category="international" url="www.cnn.com/headline2010020111">War Breaks Out in the Middle East!</newsItem>
              <newsItem keyword="healthcare" category="politics" url="www.cnn.com/headline2010020321">Healthcare Bill Still Has Some Hurdles to Jump</newsItem>
              <newsItem keyword="lady gaga" category="entertainment" url="www.cnn.com/headline2010020981">Lady Gaga Has 360 Reach</newsItem>
         </items>
    </someNewsFeed>
    ===========
    So in my example, the if/else loop is looking through each XML node named <newsItem> and when it finds it, it then see if it has an attribute called "keyword" and if it does, it then looks to see if it contains the word "war". If it DOES, then it will do the proceeding actions.
    ===========
    if (newsFeed.items.newsItem[q].attribute("keyword") == "war") {
              warKeywordCounter == warKeywordCounter+1; //increase your keyword counter
              trace("Current value of warKeywordCounter = "+ warKeywordCounter);
    ==========
    I'm assuming you already know how to load external XML documents into flash.
    I hope this helps.
    Message was edited by: dchaparro
    Corrected if/else code to include right parentheses.

  • Search for a tag in xml and modify the content

    Hi,
    I am quite new to using xml db and i want to know how to search a xml, modify a tag value inside xml and replace the content in xml.
    Please help me to find a solution for this.
    Regards,
    Sprightee

    Hi,
    First important thing : give your database version (SELECT * FROM v$version).
    Please also provide some sample data :
    - a typical XML document you're working with (or abridged version)
    - explain what change(s) you want to do, or give expected output
    - if you're using a table to store the XML (which is preferred), give the DDL

  • Search informatio​ns about using XML to create scripts (automate tests)

    Hello,
    I search some (A LOT OF...) informations  about using XML in Labview. I know that Labview use a specific schema for XML, but I search examples or tutorials.
    My aim is to control a VI with a script in XML, I would know if I can generate "while loop", modified attributes etc... with my XML file?
    Bye

    Hi leo,
    first for all others: this is related to this thread!
    Then:
    Your script should be handled by LabView in an interpreter-style. So you read in the script and parse the commands. For each command that is supported you have to provide the functionality in a state-machine like handling routine.
    I would stay away from the before mentioned "LabView scripting", atleast for production-type programs as LV-Scripting is not supported by NI (and not easy to handle...)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Search option or Query to search multiple Site collections?

    Is there a Search or Portal site Hierarchy/ Structure option in SharePoint 2013 that would enable searching of specific and multiple Site collections (not Search all)?
    We opened a ticket with Microsoft o365 and they said this is not possible without custom development and that search queries can't span multiple Site collections.
    Is this true?

    You can setup a custom Result Source that limits results to the paths (URLs) provided, then use this Result Source in a custom search page, CSWP, etc. Check this post for more info:
    http://sharepointbrandon.com/2013/07/setup-multiple-search-pages-result-sources-search-scopes-for-a-site-search-in-sharepoint-2013/
    You can use the path restrictor to specify the URLs to limit the search to, IE: "path:http://yourdomain/site".
    Hope that helps.
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • What is the best cheap/free search and replace software for .xml files?

    Transferring my iTunes library from PC to Mac I have reached the stage where I want to edit the .xml file from PC file paths to Mac ones - which would be the best preferrably free software to do this on?

    Perhaps my comment in your other thread will help.
    tt2
    PS I don't know about the Mac, but Notepad++ will probably do your search & replace on the PC if you have to edit the XML.
    Message was edited by: turingtest2

  • "This Site" searches all site collections

    Hi
    I've created a new web application and site collection (http://newSite)
    I created a second site collection (http://newSite/sites/newsite)
    For some reason when i do a search on the standard home page of
    http://newSite and select "This site: newSite" (the only option in the dropdown list) sharepoint also returns results for the second child dite collection (http://newSite/sites/newsite).
    Any ideas why?
    Another question: I have also create a new scope. How do i get the new scope to display in the default dropdown list?
    many thanks for your response.

    I'm not sure why you are seeing results from the other site collection.  However for your dropdown list issue.  You just need to go to your Site Collection settings -> Search Settings and check the use custom scopes box and provide the path
    to your search center.  It will then display whatever scopes are in the scope display group named Search Dropdown.  You can modify this by clicking on the Search Scopes link and then add your custom scope to that display group.Corey Roth blog: www.dotnetmafia.com twitter:
    @coreyroth

  • Collections of XML Schema

    Hello,
    On a XML native database, there is a concept of "collection", like a XML table in which I can store XML documents defined by many different XML schema but which have the same collection name (e.g. a collection of multimedia documents, videos (defined by a video.xsd), pictures (defined by a picture.xsd), ... but all of them referring to the same collection "multimedia_documents").
    Is there such a concept in Oracle (I'm working on Oracle 10g) ?
    Thank you very much for your answers !
    Tadeusz

    I thought more of Tamino collections, more conceptually. And I know that there is no such a concept in Oracle.
    But how is it possible to replace such "collections" in Oracle 10g ?
    2 possible (?) ways :
    - 1 nested table = 1 collection, cointaining references to the views that access the XML document tables.
    - 1 collection = 1 database with several XML schema

Maybe you are looking for