How to not index characters combined with numbers?

According to the Oracle Text Reference (10g or 11g) regarding a "stopclass", currently, only the NUMBERS class is supported and it is not possible to create a custom stopclass. So is there another way to not index text that contains characters combined with a number (such as "123ABC" or "ABC123")? If the text contains a number (anywhere in it) I don't want it indexed. Otherwise, I end up with a lot of junk representing 90% of my index and causes a maintenance pain...Essentially going from 300K rows in the index table to over 13 Million.

The only thing that I can think of is to use a user_datastore with a procedure that loops through each token in the row, eliminating those that have numbers. Please see the demonstration below.
SCOTT@orcl_11gR2> CREATE TABLE test_tab
  2    (test_col  VARCHAR2 (60))
  3  /
Table created.
SCOTT@orcl_11gR2> INSERT ALL
  2  INTO test_tab VALUES ('worda abc123 wordc')
  3  INTO test_tab VALUES ('worda 123abc wordc')
  4  INTO test_tab VALUES ('def456 wordb wordc')
  5  INTO test_tab VALUES ('worda wordb 789ghi')
  6  SELECT * FROM DUAL
  7  /
4 rows created.
SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE test_proc
  2    (p_rowid IN           ROWID,
  3       p_clob     IN OUT NOCOPY CLOB)
  4  AS
  5    v_clob            CLOB;
  6    v_token            VARCHAR2 (100);
  7  BEGIN
  8    SELECT test_col || ' '
  9    INTO   p_clob
10    FROM   test_tab
11    WHERE  ROWID = p_rowid;
12    WHILE INSTR (p_clob, '  ') > 0 LOOP
13        p_clob := REPLACE (p_clob, '  ', ' ');
14    END LOOP;
15    WHILE LENGTH (p_clob) > 1 LOOP
16        v_token := SUBSTR (p_clob, 1, INSTR (p_clob, ' '));
17        IF v_token = TRANSLATE (v_token, '1234567890', '        ') THEN
18          v_clob := v_clob || v_token;
19        END IF;
20        p_clob := LTRIM (SUBSTR (p_clob, INSTR (p_clob, ' ')));
21    END LOOP;
22    p_clob := v_clob;
23  END test_proc;
24  /
Procedure created.
SCOTT@orcl_11gR2> SHOW ERRORS
No errors.
SCOTT@orcl_11gR2> EXEC CTX_DDL.CREATE_PREFERENCE ('test_store', 'USER_DATASTORE')
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> EXEC CTX_DDL.SET_ATTRIBUTE ('test_store', 'PROCEDURE', 'test_proc')
PL/SQL procedure successfully completed.
SCOTT@orcl_11gR2> CREATE INDEX test_idx
  2  ON test_tab (test_col)
  3  INDEXTYPE IS CTXSYS.CONTEXT
  4  PARAMETERS ('DATASTORE test_store')
  5  /
Index created.
SCOTT@orcl_11gR2> SELECT token_text FROM dr$test_idx$i
  2  /
TOKEN_TEXT
WORDA
WORDB
WORDC
3 rows selected.
SCOTT@orcl_11gR2>

Similar Messages

  • How to repear a corrupt file with Numbers

    How to open a "corrupt" file with Numbers.
    With excel it is possible to open such a file with the following error message :
    "The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"
    Clicking YES, the file is opening correctly with XLS.
    How to do the same with Numbers?
    When i try to open the same file with numbers i have no "error message" but the information contained in the file is not readable.
    Many thanks for your help

    Yeah that's true to an extant; microsoft did a good job fixing that but unfortunately allowed it to be re-introduced in 2006 with windows vista where they allowed file naming to receive destructive values (wasn't very fond of this);
    in previous versions of windows such values once entered would be followed by an error message telling you those values couldn't be used
    I wasn't aware it would pop its ugly head back up into windows 7 but I see otherwise as in the case of mine
    (I forgot to mention the period preceded a parenthesis which in turn can be destructive to the file's original format)
    Anyway photoshop wont open the file after changing it to .psd leaving an error message stating....
    'Could not complete your request because the file is not compatible with this version of photoshop'

  • How to put an electronic signature with numbers?

    Hi everybody, i want to know how to put an electronic signature with numbers?
    Thanks

    See more like this to right of screen
    https://discussions.apple.com/message/24846549#24846549

  • I am now using the free 1 month CC trial. I got a free one year licence with a camera. I have a product key 24 characters long with numbers and letters. I can't find anywhere to put this key to activate the account? Using a PC, windows 8.

    I am now using the free 1 month CC trial. I got a free one year licence with a camera. I have a product key 24 characters long with numbers and letters. I can't find anywhere to put this key to activate the account? Using a PC, windows 8.

    Redemption Code Help
    Mylenium

  • How do I autofill a column with numbers increasing by 1?

    How do I autofill a column with numbers increasing by 1?

    Hi Patricia,
    Type in your first 2 values. Select both and drag the yellow dot down to fill the remainder.
    quinn

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • How to write Japanese characters (kanji) with OS X 10.5.8

    How can I write text in Japanese characters (kanji), switching from English or Dutch and back in OS X 10.5.8 ?

    walter Van Geyt wrote:
    Maybe there is a way to input Hiragana, after which a choice of Kanji is offered, from which to choose the right one since many Kanji  are pronounced the same way but have a different meaning (and Hiragana and Katakana are phonetic).
    Of course, that is exactly what everyone does with Kotoeri.  Perhaps you did not see Page 2 of the site?
    http://redcocoon.org/cab/j4mactyping.html
    You hit the space bar to bring up the Kanji choices.

  • Rss not showing as red with numbers next to it.

    With the old FF the RSS tabs at top of my tab bar show when new messages were posted by going red, and with a (4) next to it.
    Now it does no longer do this, and I have no way of knowing new posts etc unless i go over it.

    In post number 8 you said;
    If you use (as in your example), 40% to center the item as required, on a page width of 1000px (set by the user by resizing the browser), then the item will be 400px from the left. If you use 40% on a page size of 800px (set by the user), then the item will be 320px from the left.
    For the sake of easy numbers, lets say the combined width of the image and text is 200px. Then if I set the left-margin to be 40% then for a 1000px width display, the content will be perfectly centered. The left side of the div will be 400px from the left, and the right side of the div would be 400px from the right.
    If the screen was resized to 2000px, then the left side of the div would be 800px from the left side. The right side of the div however would be 1000px from the right side, so the div would not be centered.
    Unless im mistaken (always a possibility!), that means this method does not always center the content perfectly for a fixed width layout.
    Ive read that the text-align:center property doesnt always work for images. Could I get around this but having a div with the image and text in it, and annother div around that with the text-align:center. This looks fine on FireFox, but IE and older browsers are normally the problem.
    Thanks

  • How can I use mail merge with numbers in the new pages version?

    I am trying to use mail merge with the new version of pages and can not seem to be able to figure it out. PLEASE HELP!!!

    Nope. Version 5 is a fashion accessory: it looks like software, but it doesn;t actually do anything. Sort of like a sports car with a lawn-mower engine. Looks snzzy. Doesn't really work. (And given how buggy it is, I should further specifiy that the lawn-mower engine comes with a blade: it chews up your old templates, produces files that cannot be sent as email attahcments [yes, really], and—this just in—doesn;t play well with the new SMB facility of Mavericks. In short, as one reviewer put it, "un unmitigated disaster."

  • How to do a mail merg with numbers?

    I've made a mailing list in numbers and now want to turn it into lables for mailing.  How do I make this happen?

    The instructions for doing a Mail Merge are in Chapter 11 of the Pages User Guide. The basic requirements are:
    o Your Numbers document must have a merge table with one Header Row. The titles in the header row will be used to establish the links to your Pages document.
    o You will get one Pages Document Section for each Row in your Merge table in Numbers.
    o Your Numbers Document must be Saved. Only Saved data will be merged.
    Regards,
    Jerry

  • How do I count/add fields with numbers and fields with letters?

    This is an attendance calendar I'm making for my work.
    Cells in CLIENT A column will be marked with either a number ( >0, indicating how many hours attended) or a letter (A = absent, H = Holiday).
    I need 2 formulas/scripts I suppose:
    1) I would like cell DP1 to represent how many cells in the CLIENT A column are marked only with a number >0 -indicating how many days were attended, not how many total hours there are.
    2) I would like cell DA1 to represent how many cells in the CLIENT A column are marked only with the letter A -indicating how many days were not attended.

    Let's say there are 20 fields in the column. In that case you can use these scripts:
    Custom calculation script for "DPA"
    var total = 0;
    for (var i=1; i<=20; i++) {
        var v = +this.getField("CA"+i).value;
        if (isNaN(v)==false && v>0)
            total++;
    event.value = total;
    Custom calculation script for "DPB"
    var total = 0;
    for (var i=1; i<=20; i++) {
        var v = this.getField("CA"+i).value;
        if (v=="A")
            total++;
    event.value = total;

  • How to make a compass graph with Numbers?

    Hi, I did a search for compass graphs and there are a few excel examples, do you know if there are any Numbers, versions, and user friendly ones at that. As I am not a mathematician. Basically I am plotting the frequency of doorway directions to compass points, e.g. N, NNW,NW,W, on a bar chart, but the paper I am comparing it to, has used a compass graph, with the freqency as longer lines eminating from the compass point depending on the number of doorways.
    The directions could be input as degrees if required. Any help appreciated

    Hi Nanouk,
    A compass graph would certainly be appropriate for this data, but that chart type is not available in Numbers.
    You can fake it with a little work, though.
    Arrange the data in pairs as shown. Note that the values in column C are expressed as negatives.
    Create four Stacked Bar charts, one from each data pair. You will need to click the three bar icon that appears at the upper left of the selection to change it from horizontal to vertical. That makes Numbers consider the pair as parts of the same series, and stack the two bars.
    Open the Chart Inspector and for each chart, remove everything except the actual bar, and for now, the Label on the X axis (if this helps identify which graph shows each pair). Set the Y Max to the maximum expected value, Steps to 1 and Y Min to the negative of the Max value. Use the Pen and Fill controls in the Toolbar to set the Fill colour to None and the Line to None.
    Switch to the Metrics Inspector (ruler icon) and set the size of each chart to the same values (I used 0.5 wide and 4.88 high (with Max Y set to 10).
    Drag (or use the arrow keys, with or without the shift key) the four charts into place.
    Add as many circles (from the Shape button—be sure to set Fill to None) as you want and drage them into position.
    I left the bars in the default colours to assist in lining them up correctly. Those colours can be changed by clicking on the individual bar, then using the Fill well.
    Too fiddley? You could just dump the data into NeoOffice and use that to create a Compass chart.
    Here's one produced from the same data set.
    Graph from NeoOffice (same data, in single column, all positive values).
    Regards,
    Barry

  • How can i use GZip combined with NIO?

    Hi All,
    I have a nio client that connects a client (HTTP) and request something. I need my client to Accept-Encoding: gzip - but how will i be able to read the data into my ByteBuffer?
    I don't have a problem reading, cause it's bytes after all, but i will have a problem (i guess) determining when the reading is complete - when it finished. If i'm reading HTTP, for instance, i know i should finish reading after receiving \r\n\r\n. How should i do it for gzip info?
    Thanks,
    Snayit

    When i'm reading the HTTP i receive Content-Length X but actualy is sends the X with Y bytes (i guess it's a key, about to check in the API).
    Is there a way to combine the GZip with NIO?

  • How to sort a character field with numbers and letters on the end

    I have an internal table with character field which has data like this after I sort it.  This is not what I expect from the sort.:
    13A
    15A
    29A
    30A
    31A
    33A
    123A
    125
    62 
    76 
    94A
    I expect this, which is sorted number first, then alpha.  Any ideas how to get this sort?:
    13A
    15A
    29A
    30A
    31A
    33A
    62 
    76 
    94A
    123A
    125

    Thanks for the suggestions.  After reading the suggestions and reviewing some other post threads, here's what I did to get the sort to work:
    Add a dash - to the end of any record that did not have an alphabet character at the end.  This way, all records have at least one non-numeric character at the end.  Then I overlayed zeros  '0000000'  over each record.  Then I sorted the table.  Afterwards, I removed the dashes and zeros.
    The long way around, but it worked for me.  Since the internal table is processed in memory, it doesn't add much overhead to the run time.

  • How to NOT synchronize ALL mails with IMAP ?

    When sychronizing with my business mailserver using IMAP, ALL existing messages are being synchronized.
    How to synchronize, say, only messages starting from year 2011?
    Can't find the asnwer on any forum.
    Your help is very much appreciated.
    Christiaan

    I am not aware of any way to limit synchronization by date.
    Assuming older messages are in folders that you do not frequently access (a 'Saved' or 'Archived' folder, for example), you have a few options - none of which are ideal.
    Ideally Mail.app should support the IMAP ability to subscribe or unsubscribe from a folder but this feature does not appear to exist. It is hinted-at if you control click on your IMAP server and choose Account Info > Subscription List, but chances are your list is blank like everyone else's.
    Your first real option is to control the way Mail.app synchronizes messages. Go to your Preferences > (Your IMAP Account) > Advanced > Keep Copies ... > Only Messages I've Read. Don't read the older messages that you don't want synchronized and they shouldn't be saved to your computer.
    A second option requires deleting or locking the folder you don't want synchronized in the Finder, although it's not clear to me if these methods still work. A Google search will turn up instructions.

Maybe you are looking for

  • Select with like for multiple results

    Hi, I need to find all the rows of a table that contain the values of another query in the table. My problem is that the table that I want to verify may contain a list of values and I'm not been able to think on an easy way to do this! Performance is

  • Problem with USB hub on network

    I recently added a USB hub to my mac mini server, which has the harddrives plugged in. Its a powered hub and within the confines of the mini is perfect. However on the network I can see my mini, home folder and public folder, but cannot see the hardd

  • Cost center  & company code relationship

    Hi All, How many company codes can be assigned to a cost center? In Cost center master record there is an option to enter company code. If we mention company code there, does that mean that cost center is valid to only that particular company code? T

  • Change G/L account on WO component

    Hi expert, how to change G/L account on component - gen data/ reservation item detail (item cat: L), the field is grey. pls help. Thanks. rgds.

  • After Effects CS4 Sniffer_gpu is not working

    After Effects was working fine a few minutes ago and then the next time I started it up it suddenly gave me this message that sniffer_gpu had stopped working. After that, it said something like "After Effects can't continue:sorry. After Effects have