Querying Oracle Text using phrase with equivalence operator and NEAR

Hello,
I have two queries I'm running that are returning puzzling results. One query is a subset of the other. The queries use a NEAR operator and an equivalence operator.
Query 1:
NEAR((sister,father,mother=yo mama=mi madre),20) This is returning 3 results
I believe Query 1 should return all records containing the words sister AND father AND (mother OR yo mama OR mi madre) that are within 20 words of each other.
Query 2 (a subset of Query 1):
NEAR((sister,father,mother=yo mama),20) This is returning 5 results
I believe Query 2 should return all records containing the words sister AND father AND (mother OR yo mama) that are within 20 words of each other.
Why would Query 1 be returning fewer results than Query 2, when Query 2 is a subset of Query 1? Shouldn't Query 1 return at least the same amount or more results than Query 2?
~Mimi

For future questions about Oracle Text, you can try the Oracle Text forum at: Text
There you have more chances of recieveing an awnser.

Similar Messages

  • Issue While executing the Query for Pagination using ROWNUM with like

    Issue While executing the Query for Pagination using ROWNUM with like.
    Database is Oracle11G.
    Oracle Database Table contains 8-9 lakh records
    1) SQL equal (=)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920'
    Execution Time:- 0.00869245 seconds
    Returns 2 resultsets
    2) SQL like (one %)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920%'
    Execution Time:- 0.01094301 seconds
    Returns 2 resultsets
    3) SQL like (two%)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE like '%KMF22600920%'
    Execution Time:- 6.43989658 seconds
    Returns 2 resultsets
    In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
    4) SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
    Execution Time:- Infinite
    ResultSets:- No as execution time is infinite
    a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
    b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
    Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
    Could you please let us know what is the issue with two % used in like and rownum
    5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
    SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
    Execution Time:- 7.41368914 seconds
    Returns 2 resultsets
    Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?

    This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.

  • When legally ipad2 with 3G would be available in Thailand?  Can I buy it from US and use it with 3G operator in Thailand?

    When legally ipad2 with 3G would be available in Thailand?  Can I buy it from US and use it with 3G operator in Thailand?

    The iPad 2 is available in Thailand now, though I don't know whether you can find one it stock. The iPad 2 continues to be in short supply everywhere in the world. A US iPad with GSM 3G should be able to work with any carrier worldwide that offers GSM service and a suitable data plan. You'll need to be sure you purchase the AT&T version of the iPad if you purchase in the US, NOT the Verizon version which uses a different cell technology.
    This has been asked and answered in these forums multiple times already, by the way. A quick search or browse of the forums and you would not have had to wait for a response.
    Regards.

  • If i buy Unlocked Iphone 5s from Virgin Mobile can i use it with other operator?(In Europe)

    If i buy Unlocked Iphone 5s from Virgin Mobile can i use it with other operator?(In Europe)

    You need to clarify where you are as Virgin Mobile are a Global Mobile Virtual Network Operator (MVNO) brand however the terms and offers differ in each country.
    If you are in the USA the brand is actually franchised and operated by Sprint .
    Operating on Sprint CDMA and LTE frequency bands.
    The CDMA radio will be provioned to work off of the Sprint towers - This IS locked down and can't be used on any other network -for instance Verizon.
    The phones GSM Sim card holder and radios should be unlocked but we won't know for sure until the handsets are available to test.
    The models in question are the A1453 - 5S ad A1456- 5C- these support the most channel frequencies of any iPhone , however NOT the all important European LTE band 7 (2600mhz)
    So it is highly likely that the Virgin USA model will have unlocked SIM and GSM support will work on all European 3G and most earlier 2 and 2.5G networks however may have patchy to no European LTE support.
    Note that comment reqarding 2G (GPRS) and 2.5 G (Often called Edge) - A number of European countries and mobile operators are re-provisionng (reusing) frequencies in the 800mhz spectrum to 800DD (digital) for future LTE and where this takes place normal subscibers without LTE contracts will loose service in some areas.
    This is already taking place in the UK - Beware.
    Virgin Mobile UK are not currently an Apple iPhone dealership.
    And other countries with the band including Canada, France and India I have information about.

  • How to use aggregator with filter  operator

    Hi,
    how can i use aggregation with filter operator. i have a table, form this table i have to calculate this valurs
    1. no of notes
    2. no of open notes where attribute =y (logic for one notes is count(notes) where attribute =y)
    2. no of closed notes where attribute =n
    for this i used like this
    table --> two filter operators 1 is for attribute =y and one is for attribute=n ----> to aggregaror operator. --- i am getting error.
    Regards,
    Jyothy

    Jyothy,
    Try this..
    U can use the below code in the aggregator without filters
    sum(decode(notes,'y',1,0) adn sum(decode(notes,'n',1,0)
    Regards,
    Sivarama

  • I have a new ipad which needs itunes 10.7 or later to download my music onto it... but my ipad is not compatible with this as it is too old... can i use itunes with this ipad and apple laptop?

    I have a new ipad which needs itunes 10.7 or later to download my music onto it... but my apple laptop is not compatible with this as it is too old... can i use itunes with this ipad and apple laptop?

    To use itunes 10.7 you need to have Snow Leopard operating system installed
    These are the system requirements
    System Requirements:
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
    Some features require a compatible internet service provider: fees may apply.
    If you can run Snow Leopard you need to purchase it
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    There is no more LiveType with Motion 5.  You may want to go to the Final Cut Express forum, as that's the only place it's existed for the last few years.

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • Using Icloud with Outlook 2007 and windows 7, I cannot get my calendar to list the scheduled appointments as it used to do before I cloud.  The to do bar just shows no upcoming appointments when my calendar is filled with them.  How do I fix this

    Since using ICloud with Office 2007 and Windows 7, the to-do-list will not show any appointments.  If has the notation that no appointments are available?  My calendar is full of appointments.  How do I correct this?

    I don't have a password on my phone. After attaching the phone to the Windows 7 computer, my DCIM folder is always empty. Here's the solution:  While the phone is plugged in to the computer, pick it up and select the Photos application. A dialog box appears and asks if you trust this computer. Obviously, select the "Trust" option. Then the photos will download. If you have a password on your phone, I'm guessing you have to enter it before you open the photo application.

  • I am using Firefox with OS X and suddenly I lost the slot in which I type URL's in the top of the browser. How can I get it back?

    I am using FIREFOX with OS X and suddenly I lost the slot at the top of the browswer in which to type the URL's. It just disappeared.
    How can I get it back?

    View --> Toolbars --> Navigation Toolbar

  • Hello! I'm using Aperture with Efex plugins and notice, what when I saving result in plugin and go back to aperture, preview mode is going to grey color and not working until I reboot Aperture. Did you saw this problem?

    Hello! I'm using Aperture with Efex plugins and notice, what when I saving result in plugin and go back to aperture, preview mode is going to grey color and not working until I reboot Aperture. What is intresting - in full screen mode everything works fine. Did you saw this problem?

    It seems there's a workaround here:
    https://discussions.apple.com/thread/5566037?tstart=0

  • I have a new I Pad air and I am trying to use it with a projector and a whiteboard, unfortunately the two are not connecting. Can anyone give me reasons why this might be happening.

    I have a new I Pad air and I am trying to use it with a projector and a whiteboard, unfortunately the two are not connecting. Can anyone give me reasons why this might be happening.

    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    Connect an iPad to a Television or Projector
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.html
    Connecting iPad iPhone or iPod to TV or Projector
    http://www.disabled-world.com/assistivedevices/computer/ipad-tv.php
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    http://www.apple.com/airplay/
    http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    http://support.apple.com/kb/ht4108
    http://support.apple.com/kb/ht4108
     Cheers, Tom

  • Integrtion Scenario using BPM with two sender and multiple receiver

    integrtion Scenario using BPM with two sender and multiple receiver
    How many Application Components are required?

    Hi Vinod,
    1) In integration repository you can have one or many software components it depends on your landscape orchestration
    2) In integration direcory you need at least one service for bpm and one or many for each system in your bpm
    also each connection between systems and bpm must have receiver determination and so on.
    Advice: Please treat BPM as a separate system.
    best,
    Wojciech

  • 10.9.1 used terminal with rm-rf and deleted my user data. Can I get back the deleted data? Help.

    10.9.1 used terminal with rm-rf and deleted my user data. Can I get back the deleted data? Help.  I really just need mail file and desktop files recovered.

    If data were on the SSD drive with TRIM - practically no chance. If HDD - use DIY recovery software such as DiskDrill or DataResue.
    As quickly as possible turn off the drive where deleted data.
    Use an external HDD with installed OSX for data recovery.
    Alex
    Apple Certified Support Professional

  • Is Oracle Developer 10g certified with Windows 7 and IE-8 ?

    Hi All,
    Is Oracle Developer 10g certified with Windows 7 and IE-8 ?
    Regards,

    Is Oracle Developer 10g (32-bit and 64-bit) certified with Windows 7 (32-bit and 64 bit) and IE-8 ?Yes it is certified on 32-bit only -- Oracle Forms/Reports Builder 10gR2 or 11g are certified with Windows 7 (32-bit)
    Please see (Forms / Reports Builder 10gR2 or 11g Certification on MS Windows 7 [ID 1112213.1]) for details.
    Also, see (Cannot Open Forms/Reports Within Forms/Reports Builder 10gR2(10.1.2.3) on Windows 7 [ID 1306651.1]).
    Thanks,
    Hussein

Maybe you are looking for

  • Set up HA in SharePoint 2013 with NLB

    Hi All, We have 2 database servers in cluster and 2 application servers in a single SharePoint farm. We need to configure HA along with NLB for SharePoint 2013 in our environment. Please help.. !!

  • CREATIVE ZEN TOUCH - CUSTOMER SERVICE WONT H

    CREATIVE, i will never ever buy another product from you again and will encourage all others not to buy from you because of your poor customer service. My problem is not with the product as such, i own a Creative Zen Touch and until about?6 weeks ago

  • ExecuteQuery() fails with -2146232000 on Windows 8.1 (works great on Server 2013)

    When executing a small console app on my Windows 8.1, I get an error: {"Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 95, position 36."} The code: ClientContext ctx = Create(); Web web = ctx.Web; List instNoteList = ctx.Web.L

  • "My Content"-link not working in MySite in 2010 mode

    I'm trying out upgrading our Sharepoint 2010 to Sharepoint 2013 but keeping it in Sharepoint 2010 mode (or v14 mode if you will) until we've had a chance to educate our users on the new UI and Everything. Right now everything works good but there is

  • Excise register report

    Hi all, I want to get the report for RG1, RG23A Part 1 and Part 2, PLA. Can anyone tell me where i can see all the report. If there is any standard T.code, please give me. Thanks in advance, Regards, Babs