About operator not using thesaurus

Hello,
I'm trying to use about query, and extending my knowledge base by loading a thesaurus,
but it doesn't seem like working...
Can someone tell me what i'm doing wrong?...
This is my table:
X@dev> select * from test_table;
NUM STR
1 my car is big
2 automobile is good
3 the sea is blue
4 the ocean is wide
5 surf forever
This is my thesaurus:
Seas
SYN Breakers
SYN Estuaries
SYN Surf
SYN Waves
NT Oceans
Then loading:
ctxload -user x/x@dev -thes -name default -file test
Then compiling:
ctxkbtc -user x/x@dev -name default
Then:
begin
ctx_ddl.create_preference('mylex','BASIC_LEXER');
ctx_ddl.set_attribute('mylex','index_themes','YES');
ctx_ddl.set_attribute('mylex','index_text','YES');
ctx_ddl.set_attribute ( 'mylex', 'mixed_case', 'NO');
ctx_ddl.set_attribute ( 'mylex', 'PROVE_THEMES', 'NO');
end;
and creating the index:
create index test_idx on test_table(str) indextype is ctxsys.context
parameters ('LEXER mylex');
but then:
X@dev> select * from test_table where contains(str,'syn(sea)',1)>0;
NUM STR
3 the sea is blue
X@dev> select * from test_table where contains(str,'syn(seas)',1)>0;
NUM STR
5 surf forever
X@dev> select * from test_table where contains(str,'about(sea)',1)>0;
NUM STR
3 the sea is blue
X@dev> select * from test_table where contains(str,'about(seas)',1)>0;
NUM STR
3 the sea is blue
The about operator is not using the thesaurus. why?
and also:
X@dev> select * from test_table where contains(str,'about(SEA)',1)>0;
no rows selected
If the mixed_case is set to "NO" i'm supposed to get results with upper case as well, don't I?
Thanks for your help!!

Hi,
Check this out - seems to match what you're experiencing:
Expectations of the Thesaurus??????
-Ron

Similar Messages

  • About query not using extended knowledge base

    Hello,
    I compiled a small thesaurus to the knowledge base:
    ctxkbtc -user dcenter/dcenter -name THES_PLACE
    It contains:
    GERMAN
    USE FEDERAL REPUBLIC OF GERMANY
    UF FRG
    BT EUROPE
    NT BAVARIAN
    I have 2 record, 1 containing GERMAN, 1 containing BAVARIAN.
    Field is indexed with a context index, and the index is synchronized.
    I'm using 8.1.7.2 english.
    Using an ABOUT operator, I always get 1 hit.
    SQL> select count(*) from file_info where contains (places, 'about(BAVARIAN)') > 0;
    The (9i) doc says:
    When you augment the existing knowledge base with your new thesaurus, you query with the ABOUT operator which implicitly expands to synonyms and narrower terms.
    How can I get the ABOUT query to expand to the narrower term in 8.1.7.2? Is this a bug, do I have to upgrade, or am I missing something?
    Thanks

    Hello.
    Did you load the supplied english thesaurus as your DEFAULT thesaurus using the command line utility ctxload (or some other method)?
    I had the same experience until I loaded the sample thesaurus in $ORACLE_HOME/ctx/sample/thes/. Now my ABOUT and SYN queries work as expected though I still have a concern about the incomplete nature of the sample thesauri (I'll open a new thread on that topic).
    Hope this helps.

  • Anbody used Hash partioning? - what about queries not using partition key

    Hi there,
    We have a table, will have over 3 billion rows when loaded and wish to implement partioning.
    Brief structure
    cal_id -- relates to date of transaction
    prod_id
    cust_id,
    sales_qty
    The id's are all surrogate id's/dimension keys
    About 80% of queries expected to use by on_sale_date of product rather than date of transaction hence considering using hash partition on product_id.
    Queries will hit > 1 partition in general and also some e.g 15% of queries wil be by date of transaction.
    Qusetions I have - how will these 15% of queries be affected. I expect will be poorer performance-wise because of partioning but becuase of size of table and 80% queries by product have to use partition.
    Also will partition-pruning work if queries use between rather than = operator
    Anbody used hash partioning - keen to hear other people's ideas/experience with hash partioning.
    Many Thanks

    Hi,
    When partition pruning is not used, then that depend on the access path.
    If it does a full table scan, then there is nearly no overhead to full scan all partitions (compared with full scanning the same non-partitioned table)
    If it is an index access and if indexes are local, then all indexes must be read. But with global index, again, there is no overhead in comparison with a non-partitioned table (except that indexes are a bit larger when global on partitioned table)
    However can be expected to partition even when reading all partitions, especially with parallel query.
    the between is not optimal with hash partitions, s it is hash partition, not range partition.
    Regards,
    Franck.

  • Why not use interfaces for constants?

    Hi,
    I have been getting conflicting views about why not use interfaces for constants?
    Can anyone shed some light on it?
    Piyush

    How so?
    If the constants are only used in a single classhow
    does it help to put them in a separate structute?
    (Ignoring the a type safe enumeration of course.)Well, mainly for readability. Suppose that you have a
    web application which has a servlet class
    "RedirectServlet", which takes a variable to redirect
    to a given JSP file. In the JSP files, you want to
    create forms which take this servlet as their action.
    You could of course put all these "redirect"
    constants in the RedirectServlet itself, but then
    it's kind of weird that you have to import a
    servlet in your jsp file to include these constants
    and to be able to write
    <form action="servlet/RedirectServlet?key=<%=
    RedirectServlet.HOMEPAGE %>> or so.
    Instead, you could create an interface called
    "RedirectConstants", and then your servlet
    RedirectServlet could implement this interface. Then
    your JSP can also access these constants via this
    interface.
    But then again, this is merely a matter of style, I
    fully agree that there is never a real _need_ to put
    constants in a separate structure if they're only used
    in a single class.Are you claiming that your example above is a single class?

  • ABOUT query not affecting results or not using knowledge base

    Hello again,
    Another question here,
    I've searched through the forum and have found other
    posts on the same problem but no solutions, though
    the problem isn't always the primary topic of the
    forum. I've put this post up to hopefully put this
    to rest as I'm pretty sure this is just a
    configuration issue.
    I am using an ABOUT operator in a CONTAINS query and
    the query seems to return the same results as the
    same query without the about operator, eg:
    SELECT SCORE(0) AS scr,
    file_repository.file_id,
    file_repository.file_title
    FROM file_repository
    WHERE CONTAINS(index_url, 'ABOUT(australia)', 0) > 0
    versus
    SELECT SCORE(0) AS scr,
    file_repository.file_id,
    file_repository.file_title
    FROM file_repository
    WHERE CONTAINS(index_url, 'australia', 0) > 0
    I have included documents based on the default
    knowledge base should be found. For example I have
    three documents, one containing the term 'Tasmania'
    another containing 'Australia' and a third with
    'Pacific Area'. The first query above should return
    all three of these documents, but it only returns
    the one containing 'Australia'.
    I have used other examples from the default knowledge
    base and have had no success. I have not attempted to
    extend the knowledge base with a thesaurus as, from
    what I can tell, I shouldn't need to do this for it
    to work.
    Any help would be much appreciated.

    Hello.
    Did you load the supplied english thesaurus as your DEFAULT thesaurus using the command line utility ctxload (or some other method)?
    I had the same experience until I loaded the sample thesaurus in $ORACLE_HOME/ctx/sample/thes/. Now my ABOUT and SYN queries work as expected though I still have a concern about the incomplete nature of the sample thesauri (I'll open a new thread on that topic).
    Hope this helps.

  • Problem when using About Operator in Contains Query

    Hi,
    I'm new to Oracle and this forums too. I have a problem when using about operator in contains query.
    I create a table with some records and then create a context index on 'name' column.
    CREATE TABLE my_items (
      id           NUMBER(10)      NOT NULL,
      name         VARCHAR2(200)   NOT NULL,
      description  VARCHAR2(4000)  NOT NULL,
      price        NUMBER(7,2)     NOT NULL
    ALTER TABLE my_items ADD (
      CONSTRAINT my_items_pk PRIMARY KEY (id)
    CREATE SEQUENCE my_items_seq;
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Car', 'Car description', 1);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Train', 'Train description', 2);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Japan', 'Japan description', 3);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'China', 'China description', 4);
    COMMIT;
    EXEC ctx_ddl.create_preference('english_lexer','basic_lexer');
    EXEC ctx_ddl.set_attribute('english_lexer','index_themes','yes');
    EXEC ctx_ddl.set_attribute('english_lexer','theme_language','english');
    CREATE INDEX my_items_name_idx ON my_items(name) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer english_lexer');
    EXEC ctx_ddl.sync_index('my_items_name_idx');Then I perform contains query to retrieve record :
    SELECT count(*) FROM my_items WHERE contains(name, 'Japan', 1) > 0;
    COUNT(*)
          1
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Japan)', 1) > 0;
    COUNT(*)
          1But the problem is when I using ABOUT operator like in Oracle's English Knowledge Base Category Hierarchy it return 0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Asia)', 1) > 0;
    COUNT(*)
          0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(transportation)', 1) > 0;
    COUNT(*)
          0I can't figure out what 's wrong in my query or in my index.
    Any help will be appreciated.
    Thanks,
    Hieu Nguyen
    Edited by: user2944391 on Jul 10, 2009 3:25 AM

    Hello (and welcome),
    You'd be best asking this question in the Oracle Text forum, here:
    Text
    And by the way, it will help others to analyse if you put {noformat}{noformat} (lowercase code in curly brackets) before and after your code snippets.
    Good luck!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ? What can i do about this, i will have cancel this if i can not use the programs

    good evening i have just purchased lightroom and photoshop on a 12 months contract and its now saying i am running a operative system that photoshop no longer supports  ? What can i do about this, i will have cancel this if i can not use the programs

    unless that message is erroneous, you'll need to upgrade your os to use whatever you dl'd.
    with a cc subscription, you can use cs6, cc and cc 2014.
    if you need more help, what os do you have?

  • My pic 3 has suddenly started draining the battery in only a few hours even when I am not using it. Might this mean something is running all the time? I recently downloaded Dropbox. How do I check? What do I do about it? Or is battery faulty? Tim

    My ipad 3 has suddenly started draining battery in only a few hours. Even if not in use. Might this be because a programme is running in he background? I recently downloaded Dropbox. Might my photos still be downloading after a few days? How do I check? What do I do about it? Or might my battery be faulty? Thanks, Tim.

    Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon.  The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
    Use the wall-mount charger that came with the iPad and charge overnight.  Admittedly the labeling is hard to read but, if you use a magnifier and squint your eyes, you'll see "Output 5.1V, 2.1A."  The symbol between volts and amps is the symbol for DC.  Do NOT use an iPhone charger.  Do NOT use an iPod charger.  Then, operate it normally until auto shut-down (ignore any low level alerts that may appear).  An irony is that doing that test to determine the total operating time is also the exact procedure necessary to calibrate the battery level meter.
    I'm not claiming that you do not have a problem.  I am stating, however, that we don't yet know whether or not a battery problem exists.
    According to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • Why not use "new" operator  with strings

    why we not use new when declaring a String .because in java String are treated as objects. we use new operator for creating an object in java .
    and same problem wiht array when we declare array as well as initialize .here we are alse not using new for array
    why

    Strings aren't just treated as objects, Strings are Objects.
    As for why not using new for Strings, you can, if you want.:
    String str = "this is a string";
    and
    String str = new String("this is a string");
    do the same thing (nitty-gritty low level details about literals aside). Use whatever you like, but isn't it simpler not to type new String(...) since you still need to type the actual string?
    As for arrays, you can use new:
    int[] ints = new int[10];
    or
    int[] ints = { 0, 1, 2, 3, ..., 9 };
    But the difference here is you are creating an empty array in the first one, the second creates and fills the array with the specified values. But which to you often depends on what you are doing.

  • "Not Enough Memory to Complete this Operation" Error using notifiers in LabVIEW

    I get the (windows?) error message "Not Enough Memory to Complete this Operation" when using notifiers to send a flattened byte string as a response from one VI back to my calling VI. I do get my data and everything works out perfectly between the two VIs, but I do get this annoying error message that requires a user interface action. Why?

    Well, I'm thinking you may have stumbled across a LV issue.  I can get it to crash a lot faster than that when I clear your plot history in the top chart.  It definitely seems as though LV has a huge memory leak on charts having their history cleared.  With your 500,000 data point history, I lose about 170MB of memory every time I clear the chart history.
    When I run your VI, the first time you plot data, I see a 170MB jump in memory, which I am assuming is the chart allocating its chart buffer.  But, then I continue to see more memory being used as more data is collected (if you don't use your default 1 sample a sec rate, you can see this happen much faster - I am using 5k sample rate and 5k samples).  Eventually, even without clearing the chart history, this will cause the system to crash.
    I did a quick test and dumped the waveform and just used doubles and plotted that.  Memory usage is drastically better, as I see no memory leak during standard acquisition (I still see the memory leak when the chart is cleared however).
    You may have to rewrite to not use the waveform and signal for your chart and just use DBLs.

  • HT1208 Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Where do I find a tutorial about how to use the new iTunes? I have version 11.1.3 (8). I looked on the Apple web site but only found info extolling the virtues of iTunes, not how to use it.

    Use it the same way as previously.
    ctrl B shows the menus.
    ctrl S shows the sidebar.
    What else do you need help with?

  • TS3212 I installed an iTunes update on my Windows Vista Laptop and iTunes wouldn't start saying it was missing MSVCR80.dll, now when I start Outlook it is going on about a mobileme error? Any advice? I'm tempted to not use iTunes ever again.

    I installed an iTunes update on my Windows Vista Laptop and iTunes wouldn't start saying it was missing MSVCR80.dll, now when I start Outlook it is going on about a mobileme error? Any advice? I'm tempted to not use iTunes ever again.

    Troubleshooting issues with iTunes for Windows updates - MSVCR80

  • After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please?

    After updating my iPad recently, I can no longer use it to present PPTs using a TV monitor that always previously worked. The display mentions something about using AirPlay which I am not using or trying to. Suggestions please? I am currently using iOs 7.0 on this iPad and I never had a lick of trouble until aetr this update. Anything would help. Thanks.

    I'm adding screen shots taken from this afternoon showing connection that varied from non-existent to 1X.

  • I have an old version of InDesign CS5, have not used in a while..about a year.  It will not load nor allow me to uninstall and reinstall, please help.  I have original discs and serial number.  How can I fix this?

      I have an old version of InDesign CS5, have not used in a while..about a year.  It will not load nor allow me to uninstall and reinstall, please help.  I have original discs and serial number.  How can I fix this?

    CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3

  • I have not used my CS3 version for about 3-4 years.  I tried to use it recently and I get a message about activation.  Called the phone number recommended but no longer in use.  How do I start using MY version I paid for?  Using PC

    I have not used my CS3 version for about 3-4 years.  I tried to use it recently and I get a message about activation.  Called the phone number recommended but no longer in use.  How do I start using MY version I paid for?  Using PC

    Can you activate CS3. If you lost your serial you can retrieve it from Adobe.com. Sign in at Adobe.com the use this link https://www.adobe.com/account/my-products-services.html When your Adobe Product list is displayed click on your CS3 product your serial number should be displayed.

Maybe you are looking for

  • Change the field description in the query report

    Dear All, I have created a querry using SQVI,It is working fine Now i want to change the field description in the querry report,Please suggest on this.

  • Unable to change preferences after Security Update 2006-007 10.3.9 ppc

    Problem: System Preferences are locked and cannot be unlocked. And Software Update, and Disk Utility would launch but not work following installation of the S.U. 2006-007 . Solution Steps: 1) Turn off airport card, 2) Connect using ethernet, 3) resta

  • Problem with user logon in b2c webshop

    hello, i have  registered as a consumer in BC webshop CRM,soon after creation i could able to logon into the shop,but when i logoff and again logon with the created logon info it says logon is invalid. Iam using the same same address data which is re

  • Lexmark Z510 series

    Hello everyone. I've bought a mac pro and I can´t install the lexmark Z510 series driver. On the website of Lexmark it's just avaible until the 10.4.x version of this printer. I'm running Snow Leopard 10.6.1. I´ve been looking on topics and I saw tha

  • This is probably the most stupid question ever but..

    how do i log out of the apple site on the computer? lolz. i am using the school computer and i dont want to leave and then have my account used.