Big problem with Oracle Text

Hi all
I use the Oracle text to perform a full text search. I have my column indexed like that

CREATE INDEX cm_property_text ON cm_property (text_value) INDEXTYPES IS CTXSYS. FRAMEWORK

After that, I inserted a line in the text_value field have contain is: "I and you or other ', then run the synchronous command my index finger:

Begin
CTXSYS. CTX_DLL. SYNC_INDEX ('cm_property_text');
end;

Then I run the query to select out have the text_value line contains text value is "I and you".

SELECT * FROM cm_property WHERE CONTAINS (text_value,' I / you "")

But I got nothing. And I tried to change like this looking for text entry

SELECT * FROM cm_property WHERE CONTAINS (text_value, ' I/you and/or other "" ");

And I had a line that is the line that I inserted before.

I have really no why? Who can help me to explain about this?

Thank you very much!

If you want to be able to search for empty words by default, you can use an empty stopwords list or which does not contain the words you want to search. For a single character escape, preface with-not. To escape a whole word or phrase, such as a keyword or reserved word, surround it with {}. Please see the demo below.

SCOTT@orcl_11gR2> CREATE TABLE cm_property
  2    (text_value  VARCHAR2 (60))
  3  /

Table created.

SCOTT@orcl_11gR2> CREATE INDEX cm_property_text
  2  ON cm_property (text_value)
  3  INDEXTYPE IS CTXSYS.CONTEXT
  4  PARAMETERS ('STOPLIST CTXSYS.EMPTY_STOPLIST')
  5  /

Index created.

SCOTT@orcl_11gR2> INSERT INTO cm_property (text_value)
  2  VALUES ('I and you or other')
  3  /

1 row created.

SCOTT@orcl_11gR2> Begin
  2    CTXSYS.CTX_DDL.SYNC_INDEX ('cm_property_text');
  3  end;
  4  /

PL/SQL procedure successfully completed.

SCOTT@orcl_11gR2> SELECT token_text FROM dr$cm_property_text$i
  2  /

TOKEN_TEXT
----------------------------------------------------------------
AND
I
OR
OTHER
YOU

5 rows selected.

SCOTT@orcl_11gR2> SELECT * FROM cm_property
  2  WHERE  CONTAINS (text_value, 'I {and} you') > 0
  3  /

TEXT_VALUE
------------------------------------------------------------
I and you or other

1 row selected.

SCOTT@orcl_11gR2> SELECT * FROM cm_property
  2  WHERE  CONTAINS (text_value, 'I {and} you {or} other') > 0
  3  /

TEXT_VALUE
------------------------------------------------------------
I and you or other

1 row selected.

SCOTT@orcl_11gR2>

Tags: Database

Similar Questions

  • Need help FAST. ! Big problem with Oracle on Windows.

    I have Oracle 9.2.0.6 on Windows 2003 Enterprise Edition SP2. My oracle SID in XRTY01PD. OracleServiceXRTY01PD Startup Type is automatic.

    The Service starts, but the database does not open. When I go to a command prompt and you connect to SQLPlus and connect using "/ as sysdba" I am connected to an idle instance. I said at the start, and it starts up and opens smoothly. No errors in the log to alter or event viewer.

    I found a note: 1022458,6 dated 2007, Oracle on NT must have a 4 character SID. I can't believe it's this day and age, that I only have 4 characters in the SID? What is the case with Windows 2003? Does anyone know a work around for this?

    Hi Chris,

    Take a look at this link:

    -http://www.dba-oracle.com/oracle9iAS_tips_windows_service.htm

    See you soon,.

    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • Big problem with voice XT1068

    Hello! Sorry for my English not good!

    In my XT1068, I have a big problem with the voice: I set up the volume to hear (after call to answer etc.) other different Max-> always I hear MAX Volume headset (no helmet)! Next-> low volume - but next call... MAX AGAIN!

    Please help me!

    5 Android, XT1068, Dual Sim, of Poland but the phone is purchased in detail of the Germany.

    Try safe mode - if this solves the problem, then it's probably an app you have installed.

  • Big problem with Windows XP, IE8

    I have a big problem with windows xp. Many things do not work as they had passed him. For example the personal setting are not recalled from session to session. IE 8 does not funtion properly (icons on the desktop are re-arraged, toolbars cannot be deleted or I'm unable to load pages from the internet). Programs do not work, the files will not open. When I look at my hard C disk folders and files are hidden.

    Recently, IE has been upgraded to IE8 and I installed Norton 360 but I don't mean that they caused the problem. However, whenever the Norton scan executes a "error 8 506 421" stands up and says me that I have to uninstall and re install Norton.» But I lost the ADMIN privileges so I am not able to uninstall or go back to a restore point.

    I can't go in safe mode. Pressing F8 takes me to the quick screen C not the windows safe mode screen. I can't go in safe BOOT mode. INI or the other.

    If I switch to another user, everything seems fine but I don't have ADMIN privileges with this user to be able to make changes.

    Is this a problem with norton? IE8? A virus?

    Any thoughts will be greatly appreciated.

    Thanks in advance,

    Lost without a computer

    It sounds like you have a corrupted for your user to administrator user profile.

    You may be able to recover using System Restore to restore to a point in time before your problem.  Based on the F8 key, you bring in a command prompt window, try to start restoring the system to the command prompt by using the following procedure:

    "How to start the System Restore tool by using the option of safe mode with prompt theCommand in Windows XP"

    <>https://support.Microsoft.com/kb/304449/en-us >

    If this does not work, you can still be able to recover by performing a check disk to your command prompt window operation (after that you press the F8 key).  Enter the following command:

    CHKDSK c: /R

    If you are in the Recovery Console, it can simply begin, or you may need to restart before it will start.  Corrupt profiles are most often caused by the Corruption of system files, so a chkdsk operation should be performed little matter how you end up recovery.  Note that this can take a few hours to run.

    "How to perform disk error in Windows XP check"

    <>http://support.Microsoft.com/kb/315265/en-us >

    HTH,

    JW

  • My dear friends, I have Acer s2oo smart phone. I have a big problem with it

    My dear friens, I have an Acer s 200 smartphone. I used it for many years. but now I have a big problem with it. Dears when I turn it on it is the acer logo appears on the screen, but then it keeps this process. I mean after 5 or 6 hours, when I look at my phone always logo Asher on the screen never turn off or work. then I have it connected to my computer in order to re program the windows installation, but my computer does not connect to it. My dear please help me

    How can I get it back. What kind of program will help connect my computer. If such a program exists please could you give me the link of it for download. Please help me. Take care.

    Wow this is a very old smartphone

    I suggest you take a look at this forum to find some tools useful/rom:

    http://Forum.xda-developers.com/Acer-F1

    Here you can find some ROMs to use to try to repair your S200:

    FTP://FTP.Acer-euro.com/Smartphone/S200/os_images/

  • I have a big problem with Windows Live essentials 2011. 0x8007064c error code

    I have a big problem with Windows Live essentials 2011.  I can't find in Add and remove programs or in C:\program files to remove it if I can reinstall it.  I went through the registry and deleted all instances of it.  When I try to reinstall, I get the error 0x8007064c code.  I've done everything I can find to do, but to no avail.  Help, please...

    Hello

    bad forums

    Repost in windows live forums

    http://windowslivehelp.com/

  • BlackBerry Q5 big problem with BB Q5 data - IP ADDRESS REJECTED. :( :(

    Hi all!! I have a blackberry Q5, the version of the 10.2.1.2102 software... It is the best blackberry smartphone I've ever had! but since one week, I have a very big problem with my BB Q5: if I want to surf the internet, with data from my phone (not in WIFI mode but with the data of the phone (4G, 3 g +)), I can not go on any website, but the only thing I watch is a white screen with this message "ERROR HTTP 403.6 ": the IP address of the client has been rejected"...! What can I do? I'm really desperate! I called my provider (SFR), they told me that my connection is ok, I'm not a problem with them, and this is my phone... HELP ME PLEASE!  

    Hello!!! Just to say that finally, after several attempts, I have solved my problem: there was a problem with my service provider SFR with my phone! I regret bringing this up on the forum, but when you call the customer service you think they know their work... but fortunately for us if we have the blackberry is because we are not so ignorant on the connections, network and telephone line! : D have a nice day blackberry users!   

  • Big problem with photoshop!

    Big problem with photoshop! 6 days ago, I expired trial version of photoshop for a month, four days ago, I purchased a monthly subscription only for photoshop, after trying the steps written on the adobe page, yet I can't use photoshop because it says "trial has expired" when I try to click on buy says 'already purchased package' but the problem is that even after having uninstalled and reinstalled all adobe problem reports. talk about the Mac in Photoshop version. Being the center of Italian service does not even exist in my language... Sorry for my bad English, I hope someone can help me!

    According to the information of your account you have not activated your Computer.Looks as something must be considerate activation.

    See Solutions to connect, activation and errors in connection with creative cloud and Creative Suite applications and follow the steps. /

    ~ Assani

  • Photoshop: problem with the text tool

    Hi there, problems with my text in Photoshop tool. When I try to write, using vertical text is written just a line, a straight line instead of any text. This only started happening in the last hours. I tried to change the texts and closing and start Photoshop again, all without success, please help?

    Please reset the text tool

  • Problem with the text is pixelated

    Problem with the text is pixelated on iPad retina. You have a solution?

    Digital Publishing Suite 101: keep the text accurate in a Raster slideshow

  • Big problem with the D810 images

    I have a big problem with lightroom. He presents objects in images to avoid. An example is the following:

    Bildschirmfoto 2014-09-20 um 15.18.04.png

    The same image converted with Nikon ViewNX 2, does to 16 bit TIF and reimported into Lightroom is much better:

    Bildschirmfoto 2014-09-20 um 15.19.01.png

    Is there something I can do? Is there a problem with my settings? Is this a known on the side of lightroom problem? Will there be improvements corrections? This may be due to active d-lightning without knowing about this in lightroom?

    Thanks for any help and suggestions!

    There is a problem of Posterization with the camera matching profiles having Lightroom for the D810. This could well be her. As I know there is no update for those yet. Try a different camera such as Adobe Standard profile. If this resolves the Posterization that this question and you will have to wait for the next update of Lightroom to get updated profiles to update (I hope).

    > This can be caused by active d-lightning without knowing about this in lightroom?

    No, but it is advisable not to use all modes like this in camera when you use Lightroom or any other software gross non-Nikon because all that camera RAW isn't to underexpose it and save a statement to apply treatment HDR with Nikon raw software. Other software will not be able to read as the statement and it will make images appear underexposed because they are in reality.

  • Adobe Muse - big problems with SEO/metadata?

    Hello

    I just finished mysite using muse adobe but I have big problems with the metadata tool, basically, it does not work.

    I can't find my site anywhere on google except if I type in the domain itself, despite the fact that I inserted a full description and several key words.  When it seems that the description is not what it is supposed to be. Rather than taking the actual description, it must be just a paragraph of my site.

    Metadata Adobe Muse option actually works? Anyone who has used with success. Seems to be a major flaw in the product Adobe Muse.

    While Muse inserts metadata into your page correctly, search engines do rely not 100% on this subject. You can add semantic properties to your pages by creating paragraph styles, applying, and then choosing the tag type in the paragraph style options. You can add h1, h2 and so on, for example.

  • I have problems with the text... Help

    Hey

    I have problems with the text box in indesign cs4...

    When I do a text frame and write a short text and want to make a new line and press ENTER, my cursor goes to the next page and the small red cross in the corner of my document apears.

    someone knows what to do here?

    I realle need your help

    Thank you

    This has been covered a lot. A BIOS update may be an option to solve the problem of keyboard mapping, you can change your keyboard shortcuts to reassign the digital keypad input to be a paragraph return or you can try simply by changing the State of the numlock - if it is on, turn it off and vice versa. Withthis problem most of the systems that seems to change the function of the two keys back and forth between the enter alpha and entry number.

  • problems with the text and rounded rectangles

    So I have some rounding of the rectangles in fireworks, then export as fxg, and import it into flash catalyst - but they lose the roundness of rectangles square become. Also have problems with the text as half displaying or doesn't appear do not at all.

    feature request

    -would be really cool to be able to change the paths in flash catalyst

    -Edit the code in code view

    see you soon

    brand

    Hi, the absence of a property of corner radius is a limitation of the FXG export command in Fireworks CS4. We work closely with the Fireworks team to improve interoperability FXG in CS5.

    Thank you for your comments and suggestions.

    -brian

    Team Flash Catalyst

  • Problem with Oracle performance

    Hi all

    I use Oracle database 11 g 2.

    I am facing a problem with one of my queries.


    Scenario is:
    I associate myself with 3 tables.
    The engine is saa_hist.saa_rep_product_activity (70 million lines).
    The second table is scmsa_hist.scmsa_sub_feature_trueup (900 million lines).
    The third table is saa_hist.saa_rep_subscriber_activity (35 million lines).

    The output of the query will be only about 120K.

    I'm majoriy of the columns in the first table. On the other hand, we get 2 columns and in table 3, we get a single column.

    When I join all 3 tables as it appears in the query runs for 6 hours. (The

    SELECT / * + PARALLEL_INDEX(R,SAA_REP_PRODUCT_ACTIVITY_BI,12)
    PARALLEL(SUB,24)
    PARALLEL_INDEX(RR,SAA_REP_SUBSCRIBER_ACTIVITY_I1,8)

    */
    R.*, sub.mrc, sub. RATEPLANCODE, rr.measure_group_id
    Saa_hist.saa_rep_product_activity r
    JOIN scmsa_hist.scmsa_sub_feature_trueup sub
    ON sub.job_log_id = r.job_log_id
    AND sub.service_number = r.msisdn
    AND sub.ban = r.account_number
    AND sub.soc_code = r.product_id_code
    LEFT OUTER JOIN saa_hist.saa_rep_subscriber_activity rr
    ON rr.quantity = 1
    AND rr.service_universal_id = r.service_universal_id
    AND rr.msisdn = r.msisdn
    AND rr.account_number = r.account_number
    WHERE r.billing_subsystem_id = 1
    AND 1 = 1
    AND r.batch_key BETWEEN 674 AND 675;

    The explain command plan looks good for this one and the cost is also okay(222K). I don't see any S-> data flow in the Section of IN-OUT of the explain plan P.

    -----------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | TQ | IN-OUT | PQ Distrib.
    -----------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT |
    | 1. COORDINATOR PX |
    | 2. PX SEND QC (RANDOM). : TQ10001 | Q1, 01 | P > S | QC (RAND) |
    | 3. NESTED EXTERNAL LOOPS | Q1, 01 | SVCP |
    | 4. HASH JOIN | Q1, 01 | SVCP |
    | 5. JOIN FILTER PART CREATE | : BF0000 | Q1, 01 | SVCP |
    | RECEIVE 8 2 PX | Q1, 01 | SVCP |
    | 7. PX SEND LOCAL BROADCAST | : TQ10000 | Q1 00 | P > P | BCST LOCAL |
    | 8. PX HASH PARTITION ALL | Q1 00 | ISSUE |
    | 9. TABLE ACCESS BY LOCAL INDEX ROWID | SAA_REP_PRODUCT_ACTIVITY | Q1 00 | SVCP |
    | 10. CONVERSION OF BITMAP IN ROWID | Q1 00 | SVCP |
    | 11. BITMAP INDEX RANGE SCAN | SAA_REP_PRODUCT_ACTIVITY_BI | Q1 00 | SVCP |
    | 12. FILTER-HASH PARTITION PX JOIN | Q1, 01 | ISSUE |
    | 13. TABLE ACCESS FULL | SCMSA_SUB_FEATURE_TRUEUP | Q1, 01 | SVCP |
    | 14. RANGE OF PARTITION ALL THE | Q1, 01 | SVCP |
    | 15. HASH PARTITION ALL | Q1, 01 | SVCP |
    | 16. TABLE ACCESS BY LOCAL INDEX ROWID | SAA_REP_SUBSCRIBER_ACTIVITY | Q1, 01 | SVCP |
    | 17. INDEX RANGE SCAN | SAA_REP_SUBSCRIBER_ACTIVITY_I1 | Q1, 01 | SVCP |
    -----------------------------------------------------------------------------------------------------------------

    But when I joined the first two tables and run as shown below, the request is get executed in 13 Minutes.

    SELECT / * + PARALLEL_INDEX(R,SAA_REP_PRODUCT_ACTIVITY_BI,12)
    PARALLEL(SUB,24)
    */
    R.*, sub.mrc, sub. RATEPLANCODE, rr.measure_group_id
    Saa_hist.saa_rep_product_activity r
    JOIN scmsa_hist.scmsa_sub_feature_trueup sub
    ON sub.job_log_id = r.job_log_id
    AND sub.service_number = r.msisdn
    AND sub.ban = r.account_number
    AND sub.soc_code = r.product_id_code;

    Therefore, I created a temporary table with this data and made a left outer join with the other 3 table. It runs a few seconds and I can say all the data I am able to take less than 15 minutes to 6 hours.

    So my question is that why Oracle is a strange behavior.

    I tried all approaches to avoid this kind of behavior methods but unable to produce the same thing as how I did in the second approach.

    For example, I joined the first two tables and use NO_MERGE hint with the third table and always NO_MERGE, PUSH_PRED's not going anywhere. I tried Inline view and it doesn't give me any improvement in performance.
    I'm tempted to do it using WITH Clause with two tables and then joined the data set with the third table. But still does not.
    I tried hint ORDINATE and yet so big difference.
    I even tried to force some clues which are presentm, but the 50Million cost ranges from 200K.
    I think I'm exhausted all the possibilities.

    I'd appreciate any Oracle guru can help me what is the issue.

    Thank you
    NKM

    You could start trying to impose (with extensive predicates) what you discover or believe work better.
    In this case I usually found the ansi syntax not useful and often the optimizer ignore my intentions:(mais il n'y a pas de mal essayer)

    select x.*,
           rr.measure_group_id
      from (select r.*
                   sub.mrc,
                   sub.rateplancode,
              from (select *
                      from saa_hist.saa_rep_product_activity
                     where billing_subsystem_id = 1
                       and batch_key between 674 and 675
                   ) r,
                   scmsa_hist.scmsa_sub_feature_trueup sub
             where sub.job_log_id = r.job_log_id
               and sub.service_number = r.msisdn
               and sub.ban = r.account_number
               and sub.soc_code = r.product_id_code
           ) x,
           (select service_universal_id,
                   account_number,
                   msisdn,
                   measure_group_id
              from saa_hist.saa_rep_subscriber_activity
             where quantity = 1
           ) rr
     where x.service_universal_id = rr.service_universal_id(+)
       and x.msisdn = rr.msisdn(+)
       and x.account_number = rr.account_number(+)
    

    Concerning

    Etbin

Maybe you are looking for