NDATA does not give steven / stephen
I am using 11.2.0.3.
create table table1
(column1 varchar2(60),
indexed_column varchar2(1))
insert all
into table1 values ('stephen', null)
into table1 values ('steven', null)
select * from dual
create or replace procedure mystery_proc
(p_rowid in rowid,
p_clob in out nocopy clob)
as
begin
select '<tag1>' || column1 || '</tag1>'
into p_clob
from table1
where rowid = p_rowid;
end mystery_proc;
begin
ctx_ddl.create_preference ('mystery_ds', 'user_datastore');
ctx_ddl.set_attribute ('mystery_ds', 'procedure', 'mystery_proc');
ctx_ddl.create_preference ('mystery_lex', 'basic_lexer');
ctx_ddl.set_attribute ('mystery_lex', 'base_letter', 'YES');
ctx_ddl.create_preference ('mystery_wl', 'basic_wordlist');
ctx_ddl.set_attribute ('mystery_wl', 'substring_index', 'true');
ctx_ddl.create_section_group ('mystery_sg', 'basic_section_group');
ctx_ddl.add_ndata_section ('mystery_sg', 'tag1', 'tag1');
end;
drop index test_idx;
create index test_idx
on table1 (indexed_column)
indextype is ctxsys.context
parameters
('datastore mystery_ds
lexer mystery_lex
wordlist mystery_wl
section group mystery_sg
stoplist ctxsys.empty_stoplist')
select token_text from dr$test_idx$i
select column1, score(1) from table1
where contains (indexed_column, 'ndata(tag1, stephen)', 1) > 0
order by score(1) desc
It only return stephen. I wanted it to give both stephen and steven.
I don't have an answer for why ndata doesn't find steven and stephen similar enough, but it looks like both fuzzy and soundex do, as shown below.
SCOTT@orcl12c> create table table1
2 (column1 varchar2(60))
3 /
Table created.
SCOTT@orcl12c> insert all
2 into table1 values ('stephen')
3 into table1 values ('steven')
4 select * from dual
5 /
2 rows created.
SCOTT@orcl12c> create index test_idx
2 on table1 (column1)
3 indextype is ctxsys.context
4 /
Index created.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '!stephen or
5 (fuzzy(stephen,1,5000,w))',
6 1) > 0
7 order by score(1) desc
8 /
COLUMN1 SCORE(1)
stephen 39
steven 18
2 rows selected.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '!steven or
5 (fuzzy(steven,1,5000,w))',
6 1) > 0
7 order by score(1) desc
8 /
COLUMN1 SCORE(1)
steven 39
stephen 18
2 rows selected.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '!stephen',
5 1) > 0
6 order by score(1) desc
7 /
COLUMN1 SCORE(1)
steven 4
stephen 4
2 rows selected.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '!steven',
5 1) > 0
6 order by score(1) desc
7 /
COLUMN1 SCORE(1)
steven 4
stephen 4
2 rows selected.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '(fuzzy(stephen,1,5000,w))',
5 1) > 0
6 order by score(1) desc
7 /
COLUMN1 SCORE(1)
stephen 39
steven 18
2 rows selected.
SCOTT@orcl12c> select column1, score(1) from table1
2 where contains
3 (column1,
4 '(fuzzy(steven,1,5000,w))',
5 1) > 0
6 order by score(1) desc
7 /
COLUMN1 SCORE(1)
steven 39
stephen 18
2 rows selected.
Similar Messages
-
How do i delete songs from my iphone when they don't show up in itunes? Swiping across the song on the iphone does not give me a delete button.
Hello audreywisc,
Songs can be removed from your iPhone by tapping 'Songs,' then swiping the song, then tapping Delete.
Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
iPhone User Guide - Playlists
http://help.apple.com/iphone/8/
Cheers,
Allen -
How do I Restore my iPhoto library from my time machine if it does not give me the restore option?
When I go into my backups and click on the iPhoto library it does not come up with an option to restore it just says open and of course then won't let me open it because it is a back up in time machine? I need these photo very important.Mac Basics: Time Machine backs up your Mac - Apple Support
For detailes TM support post in the forum for your OS rather than the iphoto forum
LN -
I am trying to authorise my new macbook air for i-tunes and it won't let me. I try to de-authorise all the other computers and it says I can only do this once a year and have to wait until the 7th Feb. It does not give me an option to authorise this computer
Always remember to 'de-authorize' you computer when selling or sending for service. If sending for repairs you might not get the same mother board or HD back and some how this counts as an authorized computer against your count.
MJ -
I would like to make an in app purchase using the $20.00 credit that I have on itunes. I am using my i phone5. It does not give me the option of using the credit that I already have, only of using a credit card. How can I use the credt that I already have instead of a credit card?
Is Settings > General > Restrictions > In-App Purchases: ON (green)?
Some In-App Purchases works only with credit card. -
I have had MyWebSearch install itself as my primary browser....I have needed to reset Firefox in safe mode but I am not sure that the changes have actually been done! In Options in the Options menu the window displays all the add on's and features that are on Firefox....I have two zipped folders here One allows me to see inside the other does not. How do I access this one that does not give me the option to as I want to know what is inside...as this "MyWebSearch has been an enormous hassle...and needless to say has compromised my PC and the security of all of my passwords.....I want to be sure that the resetting the browser default has actually worked and that MyWebSearch is gone!
Regards
CocoAre you talking about MyWebSearch toolbar (http://help.mywebsearch.com/sbar2.html#q1) which offers apps such as Smiley Central, Cursor Mania???
If yes, uninstallation instructions are here - (http://help.mywebsearch.com/sbar2.html#q4). Could you provide me some details about the ZIP folders. If I get a screenshot, I can help you very well. -
Hp officejet pro 8500 a910 does not give me the option of printing in black and white
Hello,
My hp officejet pro 8500 a910 does not give me the option of printing in black and white. How do I choose to print in B&W when the option does not show up under properties?
Thank you.
This question was solved.
View Solution.Hi,
From the application being used to print, Click File > Print
Click Properties or Preferences to access the Printing Preferences Dialog.
Click the Advanced button at the bottom of the window.
Under Printer Features, Click the Print as Grayscale selection box and set as High Quality Grayscale or Black Ink Only.
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution -
Netctl fails to connect to a wireless network and does not give detail
If I try to connect to a wireless network (WEP, DHCP) using netctl I get "Jon for netctl@wlp2s0\x2dnetworkname.service failed." and two commands (journalctl -xn and systemctl status ...) that should give details about the error.
However, both of them give the following lines:
oct 05 14:44:25 laptop network[422]: Starting network profile 'wlp2s0-networkname'...
oct 05 14:44:30 laptop network[422]: Failed to bring the network up for profile 'wlp2s0-networkname'
oct 05 14:44:30 laptop systemd[1]: netctl@wlp2s0\x2dnetworkname.service: main process exited, code=exited, status=1/FAILURE
oct 05 14:44:30 laptop systemd[1]: Failed to start Networking for netctl profile wlp2s0-networkname.
oct 05 14:44:30 laptop systemd[1]: Unit netctl@wlp2s0\x2dnetworkname.service entered failed state.
Just one line saying that it was trying to connect and four lines repeating the same thing (connecting failed), but it does not give any detail at all.
The netctl profile is:
Interface=wlp2s0
Connection=wireless
Security=wep
ESSID=networkname
IP=dhcp
Key=\"hex-password
Last edited by eduardosm (2014-10-05 14:01:02)MoonSwan wrote:Either this Key=\"hex-password was a typo when you cut & pasted that code or your issue is that you need a closing " symbol. So your line should read: Key=\"hex-password".
If you look at the netctl.profile man page, it explains some special quoting rules at the end. The literal double-quote (or escaped double-quote) actually just results in a non-quoted string when passed from netctl to the underlying supporting software. This is apparently necessary if the WEP key is in hexadecimal. -
When I plug in my external LaCie drive I get an error message "the disc you inserted was not readable by this computer."
The only options offered are "ignore" or "eject"
Disk Utility sees the disc but does not give a repair option.
What can I do?The good thing about mac-centric resellers such as OWC, is they have people on staff that can answer questions without you buying things first. They also have how-to information, and instructions are included in many of their products. I saw a link to watch a DIY video in one of their pages; an example of a RAID (with its own power supply) is shown on their drives page. Also a few in there, with no power supplies, for less money.
If I were looking to backup and perhaps also have a partition for a system clone, I'd consider something like one of these: http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
Some ideas on the RAID backup methods appear in google search, some of the pages are ideas and concepts; and the better ones also warn about using RAID for the only backup plan.
Oh, OWC has live chat. Haven't tried it, nor have I bought anything from them. I have what appears to be two products from them, but have not used either. One is in a box as-new, but has only USB2.0 ports & my Macs needed FW400/800. It has been said their RAM is a good way to upgrade, too. But I can't confirm!
A 'RAID-ready' unit for backup may be more versatile for just that, but I have not checked into these details. I use single HDDs in powered enclosures, and usually manually make backup clones to FW drives, of bootable OS X systems. Some of the OWC raid-ready use eSATA ports so that may not be viable for a computer without them.
The unused in-box external drive I have is like the base model in the link above. However mine is USB2.0 (maybe) and won't boot my older Macs due to hardware variance; and my preference would be for FireWire options, these models do offer that. But the one I have does not. Dual 500GB HDDs, and they could be used in tandem as a RAID. That would be a choice set up in software. I'm not sure and not interested enough to read up just now.
My backup method is not automatic, or a moving backup plan, if I don't get a move-on and make full system clones. I do make copies of photos and documents the manual way, to USB external drives; and occasionally backup to DVD or CD media. And USB flash, that helps to move files between computers without need to use file sharing via wi-fi. {Like Why fly? Walking is better exercise unless one is a bird. Squawk!}
https://www.google.com/#q=raid+backup+mac
Depending on the ports in your Mac, you may be able to use other cables to attach between a backup or externally enclosed hard disk drive with multiple partition and bootable clone in one of them. Not sure about the Thunderbolt, and where that is the main port, adapters are required to access other devices, as allowed.
Anyway, I am going on and on, yet not really saying anything.
My ideas would not be all that interesting to follow as a backup
plan when matching available newer hardware to task, but you
can get some into better ideas if you are not in a rush. Get a
good setup and then look into more an betterer stuff.
Good luck & happy computing! -
I’m applying for jobs online through my iPad using the safari app. For
some reason when I try to attach my resume, which I have saved in
Pages, it does not give me an option to go to Pages. It only gives
my an option to choose a file from photos. Does it not have the
capability to choose a location other than photos??No. Safari does not have the option to attach files for uploading other than photos.
Look at iCab Mobile in the App Store. There are other browsers that may do this, but I'm pretty sure that iCab will fill the need.
iCab Mobile (Web Browser) on the App Store on iTunes
take a look at this.
http://www.icab-mobile.de/faq.html -
I made a purchase of an album on iTunes...somehow I deleted the whole album from my iMac and now when I go back to my purchases it does not give me the option to download the whole album again, instead it gives me the option of plaing them...please help!!
Where are you looking to download them from ? You might be able to redownload them via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your Mac's iTunes. If that album shows there but doesn't have the cloud symbol against it for redownloading then that implies that it's still in your iTunes library
-
I am trying to log into my itunes and I put my apple id and password in and it wants me to answer the security questions and I know one of the answers but not the other. and it does not give me an option to reset the questions or have them emailed to me. Any suggestions?
Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can reset the questions; nobody on these boards can.
(90863) -
I tried tocreate an ITunes acc do download free apps from the app store, but it does not give me the NONE option in the billing screen. What do I do?
Hi Zeadee,
If you want to be able to download free apps without a credit card, you will need to set up a new Apple ID by following the instructions exactly in this article:
http://support.apple.com/kb/ht2534
Cheers,
GB -
I downloaded iOS 7 and one song does not give the option to delete
Same problem. Certain songs simply cannot be deleted. I'd love someone to acknowledge it's a bug.
-
How do I get itunes to recognize my bookmarks in Mozilla. When I sync my iphone, it does not give an option to sync Mozilla, only IE and Safari
Hello pbdanner,
It seems your iPhone isn't recognized in iTunes for Windows. The following article provides troubleshooting steps which may help you find a solution:
iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
Thank you for contributing to Apple Support Communities.
Cheers,
Bobby_D
Maybe you are looking for
-
CUCM 8.6 Integration to Nortel CS2100 SE16
Hey All, Previously we had integration to a Nortel CS2100 working great via a SIP trunk. Recently we had to upgrade the Nortel to SE16 and since then I have been having an issue with the following call flow. 1. Call originates from Cisco IP(SIP) phon
-
Service order confirmation/completion
Hi, Can anyone tell me what exactly is meant by service order completion ( flag order) and confirm ( IW41). At what state of the business process do I need it. To my understanding a service order is complete after billing and confirmed once customer
-
Problem keying graphics over video when exported.
Hey I'm new to FCE, but I work professionally in the television industry doing graphics/compositing/3d. Outside of work, I mess around with my own movies and hardware. I'm cutting together a piece shot with my Canon VIXIA HG20 camera. The footage/pro
-
Why are existing songs updated sometimes?
Does anyone know why it happens that, during a sync, I will get a message "updating files on _'s ipod" and that it is copying songs that are already on the ipod. Usually it is just a few song, but in my most recent sync it was 109 songs, all of which
-
Can varargs in SessionBeans be deployed in WL9.2? modifier transient
Hello, We're trying to deploy an ear onto an AdminServer in development mode. We want to declare some local stateless session beans with vararg input parameters. e.g. public String[] getValidIDsOfType(String validOnDate, String... filterTypes); It co