Indexing on text() of a node

Hi All,
might have overlooked it but can't find a way to do the above?
I have about 30k documents containing something similar to:
<aaa>
<bbb>
<region>One</region>
<region>Two</region>
</bbb>
</aaa>
Now adding an index:
addIndex "" region node-element-equality-string
Doesnt improve the search times for xpaths like:
//region/text()="One" very much, about 4 secs.
However, if i reconstruct the document to:
<aaa>
<bbb>
<region id="One"/> ...etc.
And create an index:
addIndex "" id node-attribute-equality-string
The search time is improved to about 0.06secs.. which is more what i had in mind.
Any pointers?
Michel Onstein
http://www.beautyinnederland.nl

Michael,
This FAQ entry will explain more about the use of "text()":
http://www.oracle.com/technology/products/berkeley-db/faq/xml_faq.html#42
John

Similar Messages

  • How to read Sales order Item Text of item node?

    Hi Sap Guru's,
    I have urgent requirement, i want to read Sales order item text of item node.
    can anybody give detail code.
    Thanks in Advance,
    Venkat

    hi venkat,
    take a look at this code
    data:
      git_line type standard table of tline.
    data:
      gwa_head type thead,
      gwa_line type tline.
    data:
      v_first type c.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = '0002'
        language                      = sy-langu
        name                          = '1000000122000010'
        object                        = 'VBBP'
      IMPORTING
        HEADER                        = gwa_head
      tables
        lines                         = git_line
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    loop at git_line into gwa_line.
      at first.
        move 'X' to v_first.
      endat.
      if v_first eq 'X'.
        write: / gwa_line-tdline+10.
        clear v_first.
      else.
        write: / gwa_line-tdline.
      endif.
    endloop.

  • Indexed short text on a filter

    Hi guys,
    I created a prompt to filter the field "Indexed short text 1" on a dashboard. I've already create the filter "indexed short text is prompt" on the detailed report. However I got nothing even If I paste the exactly text of this field on my prompt.
    Is it possible to filter a short txt on dashboards on the CRM OD?
    Thanks in advance
    Rafael

    You can absolutely use an indexed short text field as filter prompt. Make sure that you are building the prompt and the report from the same subject area and double-check your fields and prompt settings. You may want to start over with a very simple prompt + report to help troubleshoot.

  • How to set Tool Tip Text to Tree Node?

    Hi,
    How to set Tool Tip Text to Tree Node in JTree?
    Pls somebody help me to solve it.

    bsampeieri,
    Been here a long time myself. I don't agree with the one post is enough per se. That is to say, sometimes, it helps to post in several groups so that more eyes may see it. A number of forum posters linger in specific forum topics and may not see the post in another forum.
    Now, if in the previous post you/others answered the question and then the OP posted here later, I could see the complaint.
    For the OP, the better way to cross-post is to have one "main" post, then have all the other posts refer back to that one (link to it) so that people aren't duplicating the effort to answer your question(s). A simple "I have cross-posted this to get more eyes on it. Please reply to this question at this post <link here>"

  • Getting text of tree node

    Hi all,
    When I click on any tree node I need to save the node text at the corresponding node in a variable.Can this be done with onTreeClick?How?

    use onNodeClick of treeNode
    capture the event in oninputprocessing to get the id of the node clicked and read the itab (passed to tree) to get the text of the node.
    Regards
    Raja
    close your previous thread
    where is an attachment saved ?

  • Text or hiearchy node?

    hi,
    i need to report on items hierarchy built in BCS. Am wondering what difference does it make on the reporting front if we make the node in the hiearchy as characteristic or text. How will this effect my reporting performance, its mentainence etc. Since we have option of making the node as text or characteristic, there must be some pros nd cons for it on the reporting side. Kindly advise
    thx

    Hi Abhinav,
    I dont see any performance compared to text or char node. Its for easiness and anyway more levels are always a performance bottleneck. Keep the hierarchy as simple as possible and also anyway you need to add characteristic value or a node even though you have defined many text nodes...esle you will get the characteristic values under node "not assigned".
    Anway internally when a node is expanded, its data is fetched and rendered in frontend and hence there will not be any performance issue based on the node types.
    Regards,
    E

  • Build index for texts in SAP

    Hi,
    I would like to build a searchable text index for text linked to employees (PD and PA). How can I use any standard SAP technology to do this? I reward any helpful answer.
    Thanks,
    Robert

    Please check:
    1) Values of in engineDir and deployShare in LaunchingService component
    2) Search environment name
    3) To create a full index, the indexing engine requires a clean partition, a file from which all indexes are created: /atg/search/routing/RoutingSystemService
    You need to identify the location of the clean partition by creating a /localconfig/atg/search/routing/RoutingSystemService.properties file. Use the cleanPhysicalPartitionPath property
    to identify the full path to the clean partition. There is a copy of the clean partition located at <Searchdir>/SearchEngine/operatingsystem/data/initial.index. To resolve the path
    correctly, use a relative path to identify the clean partition location as a local copy. For example: cleanPhysicalPartitionPath =../data/initial.index
    Thanks and regards,
    Anuj

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • Error in creating index on text BFILE

    Hi,
    I have put data into a table using SQL* Loader. The BFILE exist (I've tested it with a procedure). I've no errors during text indexing but when a look into the view ctx_user_index_errors, I have the following :
    DRG-11101: failed to open file \drgit3
    So, my index doesn't work.
    Any ideas ?

    ORACLE_HOME must be set. Otherwise ctxhx.exe used during indexing won4t work.
    null

  • Lack of texts in hierarchy nodes and leafs for 0ORGUNIT

    Hello experts!
    We have the BCT hierarchy 0ORGUNIT in BW exporting his time-dependent structure from R/3. Now, for some leafes and some nodes above the leaf we have no texts just see the key.
    Has someone an idea what the problem could be? In R/3 we have the text and in master data of 0ORGUNIT we also have the text within the right time period...
    Thanks for help!
    Best reagards,
    Peter

    I'm not sure I understand what you are suggesting. Here is the data we have:
    Hierarchy             Key Figure
    - CC 0001 (node)      30.56
      CC 0001 (leaf)          6.45
      - CC 0002 (node)       24.11
           CC 0002 (leaf)     6.45
           CC 0003 (leaf)     5.72
           CC 0004 (leaf)     7.47
           CC 0005 (leaf)     4.47
    We want the value 6.45 to show up next to the CC 0002 hierarchy node, since that is the value for that cc. And we want the 6.45 to show up against the cc 0001 node rather than adding everything beneath it. What you suggested below - is that a display option in the query, or where do I do it?
    Thanks.

  • How to set the caption text of a node with user object.

    This is my problem for two days below is my sample code. I need to associate object with the tree node but the node is displaying the toString() value of the object. It should display the text I wanna see.
    Please help. I was from the JSP world so Swing is quiet new to me, only this year I got again a project in swing.
    TreeMap treemap = new TreeMap();
    treemap.put("3","3");
    treemap.put("5","4");
    treemap.put("4","4");
    treemap.put("1","1");
    treemap.put("2","2");
    DefaultMutableTreeNode nodetable = new DefaultMutableTreeNode(treemap,true);
    DefaultTreeModel model = (DefaultTreeModel)jtree.getModel();
    model.insertNodeInto(nodetable, nodetop,nodetop.getChildCount());

    I have created a subclass of DefaultMutableTreeNode, I just have one question with my Default Constructor, is it correct? Suppose to be it should be super(Object userObject ,boolean allowChildren)?
    But when I do that it does not compile.
    Please correct me if I am wrong. I suspect my contructor inside code super() is not enough the parameters got lost. (btw) i will give you the dukes, please just verify my code.
    Thanks.
    class MyDefaultMutableTreeNode extends DefaultMutableTreeNode{
    public String caption="";
    public MyDefaultMutableTreeNode(Object userObject ,boolean allowChildren){
    super();
    public void setCaptionString(String str){
    caption = str;
    public String toString(){
    return caption;
    }

  • Colon in index marker text

    I have a mif file from which I need to create a 1 level index.
    I have numerous data which contains a colon; so the MText tag looks something like this - <MText `Accredited: Representative'>
    Now, I know that the function of a colon is "Separates levels in an entry"
    I also read "Note: To enter a backslash or any special character used in these building blocks—colon, semicolon, bracket, or angle bracket—as regular characters, precede it with a backslash (\)."
    I can make the MText look like this - <MText `Acccredited\: Representative'>
    But this does not work; I still get a 2 level entry in my index. What am I missing?
    Any help is greatly appreciated.

    Entering:
    colon\: test
    in the normal Special > Marker > Marker Text: field
    then saving the file as MIF, and searching for it, finds:
    <MText `colon\\: test'>
    Apparently the rule is single-escape for dialogs, double-escapes in MIF.

  • FM10 index maker text

    Hi.
    In the FM10 manual, it says the text of the index entry in the Marker panel can be entered up to 255 characters (127 Japanese double-byte characters).
    But, When I entered 500 English characters or 300 Japanese characters, the index marker can be generated and no message to tell me the marker
    text is too long.
    In the FM7, if I entered more than 256 character or 128 Japanese characters, FM7 shows the message that marker text is too long.
    How many characters in the marker text limited in FM10?
    Regards
    erieru103

    > How many characters is the marker text limited to in FM10?
    It looks like it's 1024:
    Klaus Daube: Known limits and special properties
    As an aesthetic matter, of course, anything wider than an Index column (minus a few digits for page number) is too long.

  • How to preserve encoded characters at text and attributes node?

    <greeting>hello, <World> </greeting>
    When I run a SAX parser, it automatically decodes the characters
    and make the document ill-formed after the round trip.
    <greeting>hello, <world> </greeting> --- ERROR
    Q: How do I preserve those special characters at text node and attribute nodes?
    Thanks

    Thanks for you guys' help.
    It's great to get a real-time help from this online community.
    Yue,
    What I attempted to do was
    0. I have 6G <database> document having 1.4 M <entry>s.
    1. Read one <entry> at a time using SAX
    2. Save each <entry> to a buffer
    3. Pass the buffer to a Unmarshaller ( JAXB ) and create a JavaObject
    Repeat above moving to next <entry> until reaches to the end.
    At step 1, unescape happens
    becomes >< becomes <
    and & &
    making my doc malformed (which is legal) :(
    At step 2, I did the following to perserve <, >, and &
    str = str.replaceAll( ">", "&gt;");
    str = str.replaceAll( "<", "&lt;");
    str = str.replaceAll( "&", "&amp;");At step 3, JAXB is now happy to get a healthy XML input
    <greeting>hello, <World></greeting>
    It turned out to be nobody's fault but myself.
    It was a good lesson, though.
    Thanks, buddies

  • Text or characteristic node?

    hi,
    i need to report on items hierarchy built in BCS. Am wondering what difference does it make on the reporting front if we make the node in the hiearchy as characteristic or text. How will this effect my reporting performance, its mentainence etc. Since we have option of making the node as text or characteristic, there must be some pros nd cons for it on the reporting side. Kindly advise
    thx

    refer:
    http://help.sap.com/saphelp_sem350bw/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm for significance of each nodes...
    It should be modeled in BW depending on your structure in source system.
    If a node in your source system hierarchy is just a grouping element and nothing can be actually post to it,,then it will go as a text node. ex: cost center group, account group..
    If the node in source system corresponds to a characteristic value then it will be a characteristic node. ex: cost center, GL account
    Edited by: sam hennry on Feb 14, 2008 8:48 AM

Maybe you are looking for

  • SQLT_DAT

    Alright, got a little problem. When I use the SQLT_DAT datatype to fetch a date value from a table and the year is < 2000, I get bad values in the second byte of the 7 byte date variable: Example 1 (date = 1997-FEB-14) date[0] = 119 (correct) date[1]

  • Reader X says document can't be printed

    I have a simple 1 page PDF document. I get two error messages "The document could not be printed", followed by "There were no pages selected to print" when I try to print it to a HP 5520 printer.  Nothing happens at all. I'm running Windows 7, Adobe

  • Positioning objects in a JTabbedPane

    Is the any way to specify the positioning of an object in a JTabbedPane? I am placing JPanels which contain JLabels and JTextFields into tabs of a JTabbedPane. All the panels are centered in the tab panes. This is annoying because one panel contains

  • QI stock

    Dear All, Here is a problem, Stock of a material is lying in Quality inspection stock. but there is no inspection lot pending for this material. how can i send it to inrestricted stock. bcoz if i send it throgh movement type 321 by t- code mb1b, it g

  • HP Mini 110-1033ca don't want to install the IDT Audio Drivers.

    Hello everyone. I brought a new HP Mini 110-1033ca from Casco in Canada when i visited my Godmother. Now i am back home in Germany and i installed Vista on it. Everything got discovered properly and everything works. Except the Audio!  I downloaded t