Searching after update

If I create a CONTEXT index on a column and then update the value in the column for a single row, that row is no longer found when I do a CONTAINS() search, even if the new and old value both match the CONTAIN() condition. Is there any way to include updated rows in the search results before a sync_index is performed?

No, as far as I know, there is no way to include updated rows in a contains query until after synchronization or rebuild or optimization or drop and recreate or some such thing. When the row is updated, it is removed from the ...$k table and marked as unused in the ...$n table. The demonstration below shows what happens in these tables after update, after synchronization and after dropping and recreating the index.
SCOTT@10gXE> CREATE TABLE test_tab (test_col VARCHAR2 (30))
  2  /
Table created.
SCOTT@10gXE> INSERT INTO test_tab VALUES ('word1 word2')
  2  /
1 row created.
SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col) INDEXTYPE IS CTXSYS.CONTEXT
  2  /
Index created.
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word2
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t WHERE CONTAINS (test_col, 'word1') > 0
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word2
SCOTT@10gXE> SELECT token_text, token_first, token_last FROM dr$test_idx$i
  2  /
TOKEN_TEXT                                                       TOKEN_FIRST TOKEN_LAST
WORD1                                                                      1          1
WORD2                                                                      1          1
SCOTT@10gXE> SELECT * FROM dr$test_idx$k
  2  /
     DOCID TEXTKEY
         1 AAAH6CAABAAAKwiAAA
SCOTT@10gXE> SELECT * FROM dr$test_idx$n
  2  /
no rows selected
SCOTT@10gXE> UPDATE test_tab
  2  SET    test_col = 'word1 word3'
  3  WHERE  test_col = 'word1 word2'
  4  /
1 row updated.
SCOTT@10gXE> COMMIT
  2  /
Commit complete.
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word3
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t WHERE CONTAINS (test_col, 'word1') > 0
  2  /
no rows selected
SCOTT@10gXE> SELECT token_text, token_first, token_last FROM dr$test_idx$i
  2  /
TOKEN_TEXT                                                       TOKEN_FIRST TOKEN_LAST
WORD1                                                                      1          1
WORD2                                                                      1          1
SCOTT@10gXE> SELECT * FROM dr$test_idx$k
  2  /
no rows selected
SCOTT@10gXE> SELECT * FROM dr$test_idx$n
  2  /
NLT_DOCID N
         1 U
SCOTT@10gXE> EXEC CTX_DDL.SYNC_INDEX ('TEST_IDX')
PL/SQL procedure successfully completed.
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word3
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t WHERE CONTAINS (test_col, 'word1') > 0
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word3
SCOTT@10gXE> SELECT token_text, token_first, token_last FROM dr$test_idx$i
  2  /
TOKEN_TEXT                                                       TOKEN_FIRST TOKEN_LAST
WORD1                                                                      1          1
WORD1                                                                      2          2
WORD2                                                                      1          1
WORD3                                                                      2          2
SCOTT@10gXE> SELECT * FROM dr$test_idx$k
  2  /
     DOCID TEXTKEY
         2 AAAH6CAABAAAKwiAAA
SCOTT@10gXE> SELECT * FROM dr$test_idx$n
  2  /
NLT_DOCID N
         1 U
SCOTT@10gXE> DROP INDEX test_idx
  2  /
Index dropped.
SCOTT@10gXE> CREATE INDEX test_idx ON test_tab (test_col) INDEXTYPE IS CTXSYS.CONTEXT
  2  /
Index created.
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word3
SCOTT@10gXE> SELECT ROWID, t.* FROM test_tab t WHERE CONTAINS (test_col, 'word1') > 0
  2  /
ROWID              TEST_COL
AAAH6CAABAAAKwiAAA word1 word3
SCOTT@10gXE> SELECT token_text, token_first, token_last FROM dr$test_idx$i
  2  /
TOKEN_TEXT                                                       TOKEN_FIRST TOKEN_LAST
WORD1                                                                      1          1
WORD3                                                                      1          1
SCOTT@10gXE> SELECT * FROM dr$test_idx$k
  2  /
     DOCID TEXTKEY
         1 AAAH6CAABAAAKwiAAA
SCOTT@10gXE> SELECT * FROM dr$test_idx$n
  2  /
no rows selected
SCOTT@10gXE>

Similar Messages

  • "Losing" searches after updating to 8.1

    Ever since updating iTunes, I've noticed that if I type a search in the search box, the search will "reset" (the search box will clear) after I minimize iTunes. I should clarify, when I say minimize, I mean shrink the iTunes player to the mini-player, not actually minimizing it to my dock. I should also clarify that the search box clearing doesn't happen immediately, but only after a few songs have played.
    This is really annoying! Has anyone else had this problem?

    Same issue here. I know I've done this in the past without issue so it must be an 8.1.1 issue.
    I can do a search in the library, play with shuffle on and press "next" hundreds of times never leaving the search results. But after switching to mini mode and pressing "next" only a few times iTunes plays random songs from the library which no longer fit under the searched term(s). After restoring the iTunes window I can see that the search field has been cleared.
    Hope they fix this in an update soon.

  • Yahoo Search after updating Adobe Flash

    I just did an update for Flash and now when I open Safari instead of it showing past pages I have visited it pops up with Yahoo Search. Can someone tell me how to get rid of this and get my screen back to the way it was?

    Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    If you get an update prompt for Flash, go to Adobe’s website yourself instead of following any instructions in it.
    (123694)

  • I cannot search through messages after updating to IOS 6.1.2

    After updating to IOS 6.1.2 i cannot search for messages

    Hello jrobbertse,
    I use the search feature in Messages often, and I would be concerned if it wasn't working as well.  I found some steps you can take to help resolve this issue:
    Frozen or unresponsive iPhone
    http://www.apple.com/support/iphone/assistant/phone
    The article is for a frozen and unresponsive iPhone, so the step to recharge the iPhone is not relevant to you.  All the other steps in the article would apply to your situation though.  Before you go through the step to "Restore iPhone," you should definitely back up the contents of your iPhone:
    iOS: How to back up
    http://support.apple.com/kb/HT1766
    I hope this helps! 
    Best,
    Sheila M.

  • After updating to OSX 10.7.3, my search (spotlight) no longer works. Is there a fix for this?

    After updating to OSX 10.7.3, my search (spotlight) no longer works. Is there a fix for this?

    Have you tried going to System Preferences > Spotlight > Privacy and dragging your hard drive into the box then drag it back. That will trigger a re-index.

  • After updating to IOS 8.2 my iphone 5 constantly searches for a network. I have tried resetting network, restoring from an earlier back up, resetting as a new phone - all of which have been unsuccessful- HELP !!

    After updating to IOS 8.2 my iphone 5 constantly searches for a network. I have tried resetting network, restoring from an earlier back up, resetting as a new phone - all of which have been unsuccessful… HELP !!

    Hi chuckrabaw,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like the iPhone is searchiong for a network. It looks like you have already done some troubleshooting. There are a few steps listed in this article you did not mention trying, they may be able to help the issue.
    If you see No Service in the status bar of your iPhone or iPad - Apple Support
    Cheers,
    Mario

  • Hi, I have iPad 2, when I buy it it has old iOS. Then I update it now it has 5.1.1 iOS and modern firmware 4.12.01. After update my wifi is not working. Only searching for wifi. 3G working well. But wifi olso worked with old iOS. So what can do ? Pls

    Hi, I have iPad 2, when I buy it it has old iOS. Then I update it now it has 5.1.1 iOS and modern firmware 4.12.01. After update my wifi is not working. Only searching for wifi. 3G working well. But wifi olso worked with old iOS. So what can do ? Pls

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • What cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

    what cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

    SSince Apple does not support downgrading the iOS I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • Search takes 3 times to recognise internet connection after update

    Hi - after updating to iTunes 7.1.1 the Search works only after 3-4 attempts. The error is that it doesnt recognise that I am connected to the Internet and asks me to check my network settings. Only after I press Search 3-4 times does it work. Occassionally it will work 1st time but then I click on a search result and the same thing happens.
    I've used iTunes for a few years now and it only happens since this upgrade. The only change I made is adding a Bluetooth dongle to connect to my Nokia phone. Any ideas out there?
    Thanks!
    Mesh   Windows XP Pro  

    I have, bu it still doesnt work. I called Apple support because Im really out of options. awww man...

  • Unable to update child after update search criterium of parent

    Hi,
    I'm using JHeadstart 9.0.3.1, Application Structure: BC4J-ServiceFile-UIX.
    I'm not able to update a child-record (child-records on new page) under the following condition:
    - I have a Search-TablePage-DetailPage Construction with a number of level-2 pages for the child-tables.
    - I make a query for a particular parent table record
    - Next I update the field on which I queried so that it does not match the original query-criteria.
    - Next I try to insert a child-record on a level-2 page
    - Error; no child-records saved.
    Is this a known bug/feature? Is there a workaround?
    thanks,
    Anthonie

    Jan,
    As promised:
    The problem occurs in all level-1 pages. After update of a field so that it does not match the original search criteria we see the following:
    1) level-2 pages which had a number of 'new rows' do not show any 'new rows' anymore
    2) Level-2 pages which have an insert-button are not capable of inserting child records. The error returned is:
    Cannot find accessor attribute named ContactenView. Make sure ViewObject FunctionarisView has a viewlink with a Destination Accessor Name that equals ContactenView. If such a ViewLink is present, make sure the MVC Framework process or Struts action that triggered this error (typically GetChildDataSourceSet) specifies the childAttribute in addition to the child resource interface name.
    java.lang.Exception: Cannot find accessor attribute named ContactenView. Make sure ViewObject FunctionarisView has a viewlink with a Destination Accessor Name that equals ContactenView. If such a ViewLink is present, make sure the MVC Framework process or Struts action that triggered this error (typically GetChildDataSourceSet) specifies the childAttribute in addition to the child resource interface name. .....
    regards,
    Anthonie van Dijk

  • I have problem with my iphone 5 after update there's no service or stay searching for network

    hi i just ask for help cuz my iphone5 not work as will after update from ios6 to ios7.0.4 in first time network lose and now saty searching for network !!

    Hey ahmed eg!
    I have an article here that I believe will help you troubleshoot this issue:
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/ts4429
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • After updating ios6 I can't access my downloaded iTunesU videos anymore. They come up in search but video app says 'no videos'. I have the new iPad and the latest version of iTunesU.

    After updating ios6 I can't access my downloaded iTunesU videos anymore. They come up in search but video app says 'no videos'. I have the new iPad and the latest version of iTunesU. How can I get the video app working with the iTunesU again?

    I have a similar problem with ITunesU, I used to be able to access them from my car dock, but now they dont appear and the fwd/back buttons on the steering wheel wont affect them.
    It seems taking them from ITunes into their own app has confused many other applications or dock connectors. Im going to try and remove the ITunesU app as I dont want to have lost the extra functionality

  • After update firmware cannot to search contact use chinese word

    Hi all, My Q10 just update to firmware 10.2.1.537, after update I search the contact use chinese word,  always show “no result”, has anyone have the same issues? Can I back to previous version of firmware? Many thanks to all.
    Software version: 10.2.1.537
    OS version: 10.2.1.1925
    Trad. Chinese version ( Hong Kong)

    Oh, my apologies then, I don't understand your issue.
    Perhaps someone else will have some assistance.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • After updating to latest Firefox - when I click on google taskbar my CPU usage goes to 100% and stays there... and computer is really slow. No other search engine show the 100% usage like Google. There was NOT a problem with older versions of Firefox...?

    My computer got really slow after updating to latest version of Firefox. I checked all processes and I was testing the system. THe CPU usage goes between 2 and 70 percent staying around 25% on average, when I check my e-mail. As soon as I click on Google taskbar (without even typing in anything) the CPU usage jumps to 100% and STAYS at 100 %, and computer extremely slow.

    My computer got really slow after updating to latest version of Firefox. I checked all processes and I was testing the system. THe CPU usage goes between 2 and 70 percent staying around 25% on average, when I check my e-mail. As soon as I click on Google taskbar (without even typing in anything) the CPU usage jumps to 100% and STAYS at 100 %, and computer extremely slow.

  • After 3.6.10 all add-ons disappeared and a search for updates showed none needed. How do I get them back?

    I am running on a Mac OSX 10.6.4. After updating Firefox to 3.6.10, a few add-on disappeared. Specifically, Delicious, 1Password, Stumble ON and Buckts. I looked for updates and none were available. I've run through the view menu and preferences but can't find an option to restore these functions. Do all these add-ons need to be updated to be compatible with 3.6.10 or is there something in the update that wiped out these views.

    Add-ons that worked in 3.6.9 and earlier versions of 3.6 should also work in 3.6.10.
    The first thing I would try is to delete the files that store details of installed add-ons. If one of those files is corrupt it can cause problems with add-ons not being listed. For details of how to do that see the corrupt extension files section of the [[Unable to install add-ons#Corrupt extension files|unable to install add-ons]] article.

Maybe you are looking for