Football game and the characters as markup. ? and!
I posted a few questions a few weeks ago on the same system I'm working on. It's basically a bunch of chat messages that are archived that we want to search. At this point, I'm trying to understand why Oracle Text behaves the way when it comes to some punctuation as characters I thought I configured the text with all index so that he would return and tagging these. Here are some examples of SQL that has the same issues:
I use the following function to the markup, so I can use it as part of a select query:
CREATE OR REPLACE FUNCTION my_markup (p_index_name IN VARCHAR2, p_textkey IN VARCHAR2, p_text_query IN VARCHAR2, p_plaintext IN BOOLEAN DEFAULT TRUE, p_starttag IN VARCHAR2 DEFAULT '<<<', p_endtag IN VARCHAR2 DEFAULT '>>>', p_key_type IN VARCHAR2 DEFAULT 'primary_key') RETURN CLOB AS v_clob CLOB; BEGIN CTX_DOC.SET_KEY_TYPE (p_key_type); CTX_DOC.MARKUP (index_name => p_index_name, textkey => p_textkey, text_query => p_text_query, restab => v_clob, plaintext => p_plaintext, starttag => p_starttag, endtag => p_endtag); RETURN v_clob; END my_markup;
Here is the sample table and some sample data:
create table search_test ( data_id number(19), test_data clob ); alter table search_test add constraint search_test_pk primary key ( data_id ) ; insert into search_test values (1, 'this is, the first. test sentence ?? with ., some ??? content! '); insert into search_test values (2, 'The quick, brown fox > jumps < over the lazy dog.'); insert into search_test values (3, 'Some !@#$%%^&*(()),.<>;:''"[]{}-_=+~ crazy char string '); insert into search_test values (4, 'this is, the first test sentence ?? with ., some ??? content! '); insert into search_test values (5, 'this is, the first; test sentence ?? with ., some ??? content! '); insert into search_test values (6, 'this is, the first: test sentence ?? with ., some ??? content! '); insert into search_test values (7, 'this is, the first? test sentence ?? with ., some ??? content! '); insert into search_test values (8, 'this is, the first! test sentence ?? with ., some ??? content! '); insert into search_test values (9, 'this is, the first@ test sentence ?? with ., some ??? content! '); insert into search_test values (10, 'this is, the first# test sentence ?? with ., some ??? content! '); insert into search_test values (11, 'this is, the first$ test sentence ?? with ., some ??? content! '); insert into search_test values (12, 'this is, the first% test sentence ?? with ., some ??? content! '); insert into search_test values (13, 'this is, the first^ test sentence ?? with ., some ??? content! '); insert into search_test values (14, 'this is, the first& test sentence ?? with ., some ??? content! '); insert into search_test values (15, 'this is, the first* test sentence ?? with ., some ??? content! '); insert into search_test values (16, 'this is, the first( test sentence ?? with ., some ??? content! '); insert into search_test values (17, 'this is, the first) test sentence ?? with ., some ??? content! '); insert into search_test values (18, 'this is, the first[ test sentence ?? with ., some ??? content! '); insert into search_test values (19, 'this is, the first] test sentence ?? with ., some ??? content! '); insert into search_test values (20, 'this is, the first{ test sentence ?? with ., some ??? content! '); insert into search_test values (21, 'this is, the first} test sentence ?? with ., some ??? content! '); insert into search_test values (22, 'this is, the first< test sentence ?? with ., some ??? content! '); insert into search_test values (23, 'this is, the first> test sentence ?? with ., some ??? content! '); insert into search_test values (24, 'this is, the first- test sentence ?? with ., some ??? content! '); insert into search_test values (25, 'this is, the first_ test sentence ?? with ., some ??? content! '); insert into search_test values (26, 'this is, the first= test sentence ?? with ., some ??? content! '); insert into search_test values (27, 'this is, the first+ test sentence ?? with ., some ??? content! '); insert into search_test values (28, 'this is, the first| test sentence ?? with ., some ??? content! '); insert into search_test values (29, 'this is, the first!! test sentence .. with ., some && content! ');
And here's the text index definition:
BEGIN CTX_DDL.CREATE_PREFERENCE('test_lexer', 'BASIC_LEXER'); CTX_DDL.SET_ATTRIBUTE('test_lexer', 'printjoins', '~!@#$%^*()_-+={}[]:;<>,.?/'); CTX_DDL.CREATE_PREFERENCE('test_wordlist', 'BASIC_WORDLIST'); CTX_DDL.SET_ATTRIBUTE('test_wordlist', 'SUBSTRING_INDEX', 'YES'); CTX_DDL.SET_ATTRIBUTE('test_wordlist', 'PREFIX_INDEX', 'TRUE'); CTX_DDL.SET_ATTRIBUTE('test_wordlist', 'PREFIX_MIN_LENGTH', '3'); CTX_DDL.SET_ATTRIBUTE('test_wordlist', 'PREFIX_MAX_LENGTH', '6'); END; / CREATE INDEX search_test_text_idx on search_test(test_data) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS (' DATASTORE CTXSYS.DEFAULT_DATASTORE FILTER CTXSYS.NULL_FILTER STOPLIST CTXSYS.EMPTY_STOPLIST LEXER test_lexer SYNC (EVERY "sysdate+(10/(24*60*60))") WORDLIST test_wordlist');
Therefore, since the index uses an empty list and all special characters are defined in the lexer as joins impression, I expected to research which one '. «, » ! 'or'?' to correspond to these, but this is not the case. E.e. when I run:
select data_id, my_markup('search_test_text_idx', data_id, 'first\?') from search_test where contains(test_data, 'first\?', 1) > 0
Then, I get the following results:
DATA_ID MY_MARKUP('SEARCH_TEST_TEXT_IDX',DATA_ID,'FIRST\?') ------------------- -------------------------------------------------------------------------------- 1 this is, the <<<first>>>. test sentence ?? with ., some ??? content! 4 this is, the <<<first>>> test sentence ?? with ., some ??? content! 7 this is, the <<<first>>>? test sentence ?? with ., some ??? content! 8 this is, the <<<first>>>! test sentence ?? with ., some ??? content! 14 this is, the <<<first>>>& test sentence ?? with ., some ??? content! 28 this is, the <<<first>>>| test sentence ?? with ., some ??? content! 29 this is, the <<<first>>> !! test sentence .. with ., some && content! 7 rows selected
I expect not to see that line with id 7 and I expected the '?' to be included in the tag. Why does it return all of these lines and is at - it something I can do to get what I expected?
A second thing, I stumbled on who is probably related to this issue/question looking for multiples of these characters in a line, for example, a search for '?'. The markup still mark an inferior is specified in the search expression contains it:
select data_id, my_markup('search_test_text_idx', data_id, 'first. test sentence \?\?') from search_test where contains(test_data, 'first. test sentence \?\?', 1) > 0
This returns:
DATA_ID MY_MARKUP('SEARCH_TEST_TEXT_IDX',DATA_ID,'FIRST.TESTSENTENCE\?\?') ------------------- -------------------------------------------------------------------------------- 1 this is, the <<<first. test sentence ?>>>? with ., some ??? content! 4 this is, the <<<first test sentence ?>>>? with ., some ??? content! 7 this is, the <<<first? test sentence ?>>>? with ., some ??? content! 8 this is, the <<<first! test sentence ?>>>? with ., some ??? content! 14 this is, the <<<first& test sentence ?>>>? with ., some ??? content! 28 this is, the <<<first| test sentence ?>>>? with ., some ??? content! 6 rows selected
Again I have only see line with id 1 and all the two? in the end to be included in the tag. Why is not what I expected?
Okay, I think I can see what is happening. The doc:
- If a printjoins character is also defined as a punctuation character, the character is only treated as an alphanumeric character if the character immediately following it is a standard alphanumeric character or has been defined as a character printjoins and skipjoins.
... and...
- punctuation
- Specify the non-alphanumeric characters which, when they appear at the end of a Word, indicate the end of a sentence. The default values are period '. ', question mark'?' and exclamation mark "!".
- Characters which are defined as punctuation marks are removed from a token before full-text indexing. However, if a punctuation character is also defined as a printjoins character, the character is removed only when it is the last character in the token.
So question mark is getting charged at the end of chips. The solution for this is to erase punctuation. You can't really define punctuation NULL or a string empty, but you can set it to a space which has the same effect:
CTX_DDL. SET_ATTRIBUTE ('test_lexer', 'punctuation', ');
Your second question is because you have two question mark characters. In this case, the last is stripped, and it is indexed as a question mark. Try to set punctuation as above, and I think it will solve these two issues.
Tags: Database
Similar Questions
-
Need help - filming of football - to insert the marker of the player!
Hi I'm filming football games and you want to highlight a player in insecting one shape any marker on the player for a viewer to identify remotely during the video
How can I do this? I use Adobe Elements 4.0 on vista. THX
Vista, huh? Just as I suspected. Take a look at this LINK. Why MS stopped, install the necessary CODEC for their own AV files and their own player is beyond me. At least, they offered a pack.
A word on CODECS 'packs '. Others that the present, I'm not a fan of the CODEC "packs". Too much of creates problems. When it comes to the CODEC, I install only those that I need a particular file. I also go to the source, if possible, and will pay for the CODEC appropriate, even if there is others who are free. I want to get the right code in my CODEC and not a pirated version or engineering reverse. In addition, some CODEC packs have included malware - not all, but some. It's another reason that I go to the source and buy most of CODEC. Just a sidenote.
Good luck
Hunt
-
I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game
Apple or App developers read this forum. If you want a refund, contact the developer to the email address. It is to them that they will refund your or not.
-
Get more than 50% of the time on Shockwave.com "crossword" - also occurs on Addictinggames.com
Recent crashes of some multimedia content (this includes the Youtube videos, some flash games and other applications), in collaboration with Firefox are most likely caused by a recent update Flash and/or malfunction like Real Player browser plugin.
To resolve this problem, follow the steps in these articles in the Knowledge Base:
We'll find other information on more technical issues under these links:
Please tell us if it helped!
-
Incorrect impression of the characters in the headers and footers
Recently, the headers and footers in Firefox started the incorrect impression, with the characters sometimes crushed together, sometimes with long spaces between them. This happens on both of my PC, when you print to a printer or pdf and appears in the preview before printing and print. Any idea what went wrong?
It is a known issue in Firefox 4 beta 12. You can expect ' the RC comes out, or you might catch one of the latest compilations nocturnes availible here that solve this problem: ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/ take the version that is compatible with your system.
Direct links:
(Windows)P.S. Nocturnal compilations may be unstable. I would recommend waiting for the CR.
-
Re: Satellite L100 restarts on the games and video
I bought my laptop in August 2006 and a year after that I installed an another 1 GB on top of 256 MB provided with the laptop. After installing the RAM my PC started restarting on games and recently on the videos. I checked the two memory with memtest86, but they were OK. I asked the service of Toshiba in my country that they said could be overheating maybe by the dust and it probably needs to be cleaned. I checked with SpeedFan application, it detects ACPI temperature which was 75 and HDD temperature 44 C.
It's because of the temperature, either because the memory RAM 2 does not work with each other? What should I do?
Post edited by: mcmek
I assume that the laptop restarts due to the faulty RAM memory!
A few days ago my laptop 5 years began to freezes and restarts.
I cleaned the fan and applied new thermal grease to the CPU. Without being properly ;(Finally, I have to delete one of the two rams which are plugged in my laptop and since then everything is ok.
Please note that I have also tested the RAM with the Memtest86 and received no errors!
So I wouldn't try this application! -
The procedure of procurement of the game Clash of Clans first two payments $9.99 $4.44 and the second did not gems continued with the developer of the game and they told me to solve this problem continue with Apple iTunes... help solve me this problem and the compensatory jewelry
Double-see your message, my first response to this topic tells you how to contact iTunes Support (we are fellow users): Re: the procurement process of the Clash game Clans the amount was deducted from the iTunes account and do not have t...
-
Hi I have just signed up for the Apple's music and I forgot to cancel my game from itunes (it is no longer needed) who crossed just automatically - how to cancel the game and can get a refund?
To stop renewing, login to your account (for example by tapping your id settings > iTunes & App Store on your iPad, or by clicking on your name / icon to the top right of the iTunes on iTunes on your computer screen), and go to the iTunes in the cloud Section - see to halfway down this page: subscribe to iTunes game - Apple Support
In terms of refund, try to contact iTunes Support and see if this will change (purchases are considered final), either via http://reportaproblem.apple.com or http://www.apple.com/support/itunes/contact/
-
HP Pavilion g7: gel g7 HP Pavilion at the game and video, loading screens
So, he started like 3 months ago when I got my laptop back from repairs. I wanted to play a game (Splinter Cell: Conviction) via Steam. I turned on the game and saw the intro, but with no sound. Then, it turned out to be black. I waited 2 minutes before it loads. He loaded, fortunately. But then, when I started to play the game, it happens again. A mission has been loading and I could see the game loading icon, but for 3 minutes. When the game started, it was OK. But then, in a cutscene, it happened again. I saw the picture of the main protagonist, but no video or sound. This has happened in each cutscene and loading screen. Even when I'm dead in the game, it happened. Almost all of my games on Steam to do this (Splinter Cell: Conviction, Batman: AA, Injustice). On the other hand, there are few games that don't do this (the origins of Batman Arkham, Splinter Cell: Blacklist, Batman: Arkham City).
Two months earlier, the problem to grow. Even videos on Youtube and all the other video portals are the same thing. I see the screen on a video and the videos on the right, but the video does not play. I have to wait 2 minutes until it loads. Every single video. He then starts, plays and plays. But, when I stop in the middle (anywhere) and then want to watch further, the loading is here again. It takes again like 2-3 minutes.
But the worst is the multiplayer games. I have it be based on Payday: The Heist. Let's say I made a lobby for other people to participate. Then I press "start the game". The loading screen strikes again. All the players in my lobby connection let go me. When I join a game of others, I play like a minute, and then it happens again. It stucks (I can hear the soundtrack) and then told me that I lost the connection to the host. Some games do not have this (Minecraft, Portal 2), but some do (Payday: The Heist, Batman: Arkham origins). There is no connection problems, my brother has a PC and its internet connection in these games is perfect.
When I want to open a file, it's OK. Opening files is not a problem.
When I tried to think about it, I thought that the problem is in the sound. Thus, in Splinter Cell: Conviction, I tried something. Every time there is a loading screen, I turned the sound on my laptop. The screen was completely normal, loading took only 5 seconds. I was very happy, but when I tried a second time, it did not work. And third, fourth, fifth...
Currently, the problem gets bigger. I can't read some of my favorite games of co - op and etc. The loading is very annoying. I'll be very happy if a solution will be found.
Sorry for my English, I am from Czech Republic.
Hi @Thomas_Ber ,
Thank you for visiting the Forums HP's Support and welcome. I saw your question about your HP Pavilion Notebook g7 and the problem with the speed. Here's a document on improving your system.
Make sure that all updates are completed within the control panel or click the Windows key and start typing the laptop settings, then go to update.
You could try a refresh of Windows 8. Please read the entire document before performing. This could restore all the settings on the PC.
Here is a link to faq support with steam. They might have a solution to this problem.
Please let me know how it goes.
Thank you.
-
during the game Dungeon Siege Broken World, it stops the game and I get the exception error
Original title: exception errors
during the game Dungeon Siege Broken World, it stops the game and I get the error of the exception that the program brings together except for the tour program off that I have to start
Hi irishlaird,
1. What is the full error message that you receive?
2. did you of recent changes on the computer?
Check out the links and try the steps mentioned below.
http://garage.gaspowered.com/?q=node/9419
http://garage.gaspowered.com/?q=node/6386
http://garage.gaspowered.com/?q=node/5573
http://garage.gaspowered.com/?q=node/5357
If the previous step fails, then validate your request on the website of the game provider.
http://garage.gaspowered.com/?q=Forum/169
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Screenshots to work in painting with Windows7, unable to work, all I get is a solid black screen capture.
I thought that is no longer a problem in the current version of Windows. In previous versions all that depended on what you were trying to catch and how it was made.
First, make sure the game doesn't have its own ways to make screenshots. There are a lot of games that allow you to do and screenshots that are just after that saved to a folder. You must search settings keyboard... maybe you will find a similar option. What is the name of your game... maybe I can try to find this option.
Other things... maybe it will be possible to intercept a tool cutting, then try this: when you're in the game, press the Windows key (it will open menu start without closing a game) > all programs > Accessories > capture tools > press an arrow next to new , and select full-screen Snip
-
IM playing final fantasy 8 on pc and using my xbox controller but in the game that the cursor just keeps scrolling and don't know what can not please help
Hello
Xbox articles:
http://forums.Xbox.com/xbox_forums/b/default.aspx
For more information:
Contact Xbox support:
http://support.Xbox.com/en-us/
Xbox LIVE Support:
http://support.Xbox.com/en-us/Xbox-Live/browse?XR=shellnav
Games for Windows LIVE errors:
http://support.Xbox.com/en-us/Games/PC-games/games-for-Windows-errors-messages
Management of the Windows Live ID:
-
I can't download and install windows update or games on the internet, I get an error saying that I am not on the internet, when I help
Trinity
Hello
1. what operating system do you use?
2 did you change on your computer?
3. what version of Internet Explore do you use?
Method 1:
If you are using windows 7, I suggest you check in SafeMode with network.
Advanced, including safe mode startup options
http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode
Method 2:
I suggest you of due to windows update, please see the link.
Problems with installing updates
http://Windows.Microsoft.com/en-us/Windows7/troubleshoot-problems-with-installing-updates
Method 3:
I also suggest you perform the clean boot and check.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
See also:
Windows wireless and wired network connection problems
Why can't I connect to the Internet?
http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet
-
Original title: internet exployer__
I keep losing my internet exployer icon and do it for restoration from the xp CD... None of the usual methods of work. I lost the games and accessories and can not restore the XP disc... error message indicates that he is of the necessary files from the service pack 3. I installed sp 3 made a cd and tried to get it there and no luck
Hello
1 how long have you been faced with this problem?
2 have. what troubleshooting steps you tried?
3. What is the exact error message you get?Method 1: You can also try opening internet explore from the following location.
C; \Programs Files\Internet Explorer\iexplore.exe
Method 2: Create a new user account and check if the problem persists there.
http://support.Microsoft.com/kb/811151Method 3: Also to run a scan for virus/malware online on the computer.
http://OneCare.live.com/site/en-us/default.htm
http://www.Microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ad724ae0-e72d-4f54-9ab3-75b8eb148356Thanks and greetings
Umesh P - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
I have all the games Age Of Empires, the versions of Windows and I changed to a Mac computers. How can I get the Mac version of the games and use my existing serial keys?
Hello
As you have bought Age of Empires for Windows OS, you will not be able to install the same copy of Age of Empire Windows version on Mac. However, you can contact the telephone support for confirmation on this issue.
Here is the link:
Maybe you are looking for
-
Why Firefox only opens after update? Told to close, but how?
Windows 7. Attempted to update Firefox later today, but it does not work on my screen. When I try to use the previous version or remove it, he first shut it down. How can I close that I can't see? Thank you.
-
Problem with Audio HD Coexant & Windows 7 drivers
Hello. I have problems with the Conexant HD audio drivers in my HP dv633nr laptop. I just installed Windows 7 Pro through the MSDN Academic Alliance, and now Windows is indicating that the driver is not certified digitally. I tried uninstalling and r
-
Instructions for adding playlists to Clip +? Too many problems.
Hi, I had problems adding playlists to my Clip +. I FOLLOWED THE GUIDE STEP BY STEP and I have a playlist that has only 1 song on 13. I have somewhat the same songs in different playlists, but this shouldn't be a problem. Then, I tried to make a new
-
OfficeJet 4500 G510n - the carriage does not move to the right
Operating system: Win7. Chronic problem - when I need to replace an ink cartridge, open the access door fails to stimulate the transport to move the location of the far right cartridge replacement. Usually solved in electric bicycle and try again, u
-
1102w: computer says printeroffline
I 1102w printer that wolrks fine on Win 7 machines. Drivers installed (both x 86 and 64-bit) on the new laptop Dell with Win 10. Printer is detected by the computer, but shows both in offline or not turned on. Followed first pilot than offerred Win