How to search for documents that do not contain a word in a section?

For example: (deleted% within folder) finds all documents that have deleted in the folder
I want to find all documents that do not contain "deleted%" within folder.

If you have other criteria, then you can use "other criteria NOT deleted% within folder". However, if there is no other criteria, then you cannot just begin with NOT, so you have to use "% NOT deleted% within folder", but on a large data set that will result in an error about the wildcard expanding to too many terms.
SCOTT@orcl_11g> create table test_tab
  2    (id     number,
  3       folder     varchar2(30),
  4       col2     varchar2(15),
  5       dummy     varchar2(1))
  6  /
Table created.
SCOTT@orcl_11g> insert all
  2  into test_tab values (1, 'something deleted', 'something', null)
  3  into test_tab values (2, 'whatever', 'deleted', null)
  4  into test_tab values (3, 'something', 'whatever', null)
  5  select * from dual
  6  /
3 rows created.
SCOTT@orcl_11g> begin
  2    ctx_ddl.create_preference ('test_datastore', 'multi_column_datastore');
  3    ctx_ddl.set_attribute ('test_datastore', 'columns', 'folder, col2');
  4    ctx_ddl.create_section_group ('test_group', 'basic_section_group');
  5    ctx_ddl.add_field_section ('test_group', 'folder', 'folder', true);
  6    ctx_ddl.add_field_section ('test_group', 'col2', 'col2', true);
  7  end;
  8  /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> create index test_idx
  2  on test_tab (dummy)
  3  indextype is ctxsys.context
  4  parameters
  5    ('datastore     test_datastore
  6        section group     test_group')
  7  /
Index created.
SCOTT@orcl_11g> select * from test_tab
  2  where  contains (dummy, 'something NOT deleted% within folder') > 0
  3  /
        ID FOLDER                         COL2            D
         3 something                      whatever
SCOTT@orcl_11g> select * from test_tab
  2  where  contains (dummy, '% NOT deleted% within folder') > 0
  3  /
        ID FOLDER                         COL2            D
         2 whatever                       deleted
         3 something                      whatever
SCOTT@orcl_11g>

Similar Messages

  • Finder Searches for Files That Do NOT Contain Certain Words

    Is it possible to do a search in the Finder for files that do NOT contain a certain word?

    As far as I know you can't do that. It would be lovely to pipe the results of one search into another....
    What happens is if you specify a type folder, then exclude a file system name, the command excludes folders that have the word in their name.
    You may want to take a look at this:
    http://developer.apple.com/documentation/Carbon/Conceptual/SpotlightQuery/index. html
    See the section on "Query Expression Syntax" and the one on "Spotlight Metadata Attributes Reference" (click link, then click the link in the Introduction to the section). Most the other stuff is of interest mainly to programmers, but those two sections are actually useful to regular folks.
    Francine
    Francine
    Schwieder

  • How do I use the location bar to search for phrases that do not contain spaces?

    When I type phrases that contain spaces into the search bar, it brings up a google search as specified by my about:config under keyword.URL
    However, when I type anything that *does not* contain a space (e.g. potatoes), firefox tries to connect to http://potatoes/, returning a "cannot establish connection to server at potatoes"
    my keyword.URL is set to: http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=
    browser.fixup.alternate.enabled is *false*
    browser.urlbar.autocomplete.enabled is *true* (though I don't think this has anything to do with it)

    hello jywang74, please update to firefox version 33.0.2 - there you'll see a different behaviour (keyword.url is no longer used btw, the address bar uses the same search provider as set in the searchbar).
    http://msujaws.wordpress.com/2014/08/01/faster-and-snappier-searches-now-in-firefox-aurora/

  • How to search for packages that Names including "'" [solved]

    Hi everyone
    first ,forgive my english lvevel
    and I want to know
    How to search for packages that Names including "'"
    for instance
    $ pacman -Ss America's Army
    it returned
    >
    Please help me ,many thanks!
    Last edited by icywalk (2010-04-05 13:09:26)

    fyi America's Army in the AUR as armyops if you're looking for it.

  • How can I filter messages that do NOT contain a specific word in the subject?

    I want to do the opposite of what filtering normally does. I want to filter out messages that do not contain a word or a string.
    For example, I want to display emails that do not contain the word "meeting" in the subject.
    Is this possible? If so, how can it be done?

    It's not built in. The TotalQuickFilter extension allows NOT and lots of other filter features:
    https://addons.mozilla.org/en-US/thunderbird/addon/totalquickfilter/

  • Hierachical search, hiding documents that are not browsable.

    Hello, I apologise if this question has been covered earlier, but I could not find anything on this.
    As I understand iFS searches in a somewhat linear way and therefore does not take the hierachical structure in consideration. This lets a user both find and view a file that is not 'browsable' i.e. even if a folder with a certain ACL restricts a user from viewing the content, the files within may still show up in a search if the file ACL does not explicically restrict viewing. I guess that this is the nature of iFS since the hierachical view is only a conceptual presentation.
    I wonder if there is a way around this, I am mainly interrested in the webUI. Should we implement our own search form or could this be resolved by configuration? I am a little bit new to the iFS so any pointers to where I may start and/or a high level instruction on how to customize the webUI.
    The reason why I am asking about this is that we would like to restrict searches hierachically.
    Regards
    Safi Ahlberg

    Thanks Alison, but if the folder that I restrict the search to contains 'non-visible' folders with 'visible' documents I still get these documents in this restricted search,
    I think that I have to build a completely new search program, but I would like to reuse as much code as possible
    http://technet.oracle.com:89/ubb/Forum36/HTML/000517.html
    Regards
    /Safi

  • How to search for apps that will run on os 4.2

    How do ytou search for apps and things that will run on the older OS 4.2.1??????????

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was released, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • Searching for document that uses a certain font?

    Is there a way to search for a Word document that uses a specific font? There is only one possible document on my hard drive that uses this font.

    There must be a way, that info is stored in the Document near the end, like...
    Still working on it.

  • How to search for events that collide?

    Anyone now a way to find (search for) events, in calenders, that collide?

    Hi Lasse,
    I hope you don't mind an Applescript solution to your problem. I'm assuming all your events are held in one calendar.
    The script here will ask for the calendar name, check all future events in that calendar and highlight any that clash.
    Try out the script by pasting the text below into a new Script Editor window (Applications>Applescript>Script Editor) and pressing "Run". If you want to keep it, save it as file format "application".
    Hope this helps.
    John M
    -- Copy below here into Script Editor--
    -- Find Calendar Overlaps --
    -- John Maisey -- 9 Sept 2005 --
    tell application "iCal"
         activate
         set myNow to my (current date)
         set sourceCal to first calendar whose title is (item 1 of (choose from list ¬
              (title of (every calendar) as list) with prompt "Choose the calendar"))
         set {myStarts, myEnds, myUIDs, mySumm} to {start date, end date, uid, summary} of (events of sourceCal whose start date is greater than myNow)
         repeat with myFirst from 1 to count of myStarts
              repeat with mySecond from 1 to count of myStarts
                   if myFirst is not equal to mySecond then
                        if ((item myFirst of myStarts) is less than (item mySecond of myStarts)) and ((item myFirst of myEnds) is greater than (item mySecond of myStarts)) then
                             show (first event whose uid is (item mySecond of myUIDs)) of sourceCal
                             display alert (item mySecond of mySumm) message "This event happens during another event in this calendar. The other event is titled " & (item myFirst of mySumm) & "." as warning
                        end if
                   end if
              end repeat
         end repeat
    end tell

  • How can I remove files that do not contain the number 1 or ~1?

    I had to convert many .avi files.  The new names all contain ~1.  Those files I want to keep and remove the originals.  There are scripts to remove files with a numeral such as 1.  I need one to remove all files without the 1 or ~1. 
    I tried using a script that removed older files, but the new files seemed to have the same created dates and modified dates so that will just delete all the files.

    Thanks for your input.  I want to keep the files with a 1 or ~1 as it happens and delete the rest.  I have written some scripts.  I think I could write a script to delete all files with a 1, but of course that is not what I want.  I guess
    I need a script to delete all files except if they contain a 1.  I haven't used a forum since way back in the PC mag days.
    Whoops..........I just realized exactly what you were telling me and used your suggestion.  I guess I was trying to do more work than I needed.  I searched for all files with a 1 in the folder and then moved them to a different folder.  Then
    I deleted the rest.  Job done.  Thanks for the help.

  • How do I search for data that's not there?

    Scenario:
    The store managers are supposed to upload the previous days data by 11am the following day.
    I have a table of stores (74 records, 1 for each store) and a table of events (3600+ records,1 for each store per day). When I look at the event data selecting a specific date, I can see I only have 71 records, but I can't easily tell which stores are missing.  I want to gather all the events for a date, then look for the store records and report only if the store is NOT there.  I have tried the following linking options:
    store.store_no (equal to link) event.store_no (gives all 71 event records, as expected, but not the ones that aren't there)
    store.store_no (not equal to link) event.store_no (gives all 71 event records, for each store record, store1, event 1, store1, event2, store2, event1, stove2, event2, etc) I believe this is because it's looking for the store match first, not the date, then the store)
    store.store_no (left outer join) event.store_no (gives all 71 event records, as expected, but not the ones that aren't there at the bottom, like the help states)
    I thought of subreport too, but you can't like on what's not there.
    does anybody have any clues?
    BTW, I'm using 8.5 but can change to 10.
    Thanks,
    Clare

    Carl,
    Thanks so much. I took we a while to get the formatting correct, here's what I ended up with:
    SELECT
        store."store_number", store."address1"
    FROM
        "sac"."store" LEFT OUTER JOIN (SELECT * from "sac"."posj_event"  WHERE  posj_event."business_date" = {d '2009-07-08'} ) ev  ON store."store_number"=ev."store"   
    WHERE
        ev."store" is null
    ORDER BY
        store."store_number" ASC
    My original report was set to look for CurrentDate-1, which translated to {d '2009-07-08'} will that still work here?
    Clare

  • How to search for tasks that are in a given state for a given Process

    Hi,
    I want to write a schedule task to pick up all tasks that are in Pending state and retry those tasks one by one, for all users on a given process definition. Can you please tell me if there is a way to do this and how?
    Thanks

    Hi,
    you could use one of following and get more help by searching oracle docs or web search.
    select * from test_tab where REGEXP_LIKE(test_column, '^T[[:digit:]]');
    select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
    select * from t1 where regexp_like(a1, '^([t]+[0-9]+)$');
    select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
    select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
    select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
    Hope this helps!
    -Chan.

  • Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?

    Before removing iPhoto (latest update crashed the app), I accidently removed it from my purchased Apps from the App Store. I accept iPhoto when I search for it, but does not put it back in my list. How do I get this back so that I can reinstall iPhoto?
    Thank you.

    I found the answer just after posted this.  Thanks to a user named CloudWalker.  Solution is to go in AppStore, View Account under "Store" Menu and unhide any purchases.

  • I want to create a cover page for a document that is not included in the page count. How can I do this?

    I want to create a cover page for a document that is not included in the page count. How can I do this?

    Menu > Insert > Section Break at bottom of cover page.
    click in following page > Inspector > Layout > Section > Page Numbers > Start at: 1
    Peter

  • How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?

    How do I search scanned documents that Adobe Reader reads but shows 0 results from the search?

    If the scanned document was not processed for OCR, then it is just an image and cannot be searched for text.

Maybe you are looking for

  • Multiline container element in workflow

    Dear all, I am using a multiline container element in workflow container.  Can anybody suggest how I can see the values of that element?  After workflow execution is COMPLETED and I go to SWI1, it shows only simple elements.  It doesn't show any of m

  • Using AME in Workflow

    Gurus, I am exhausted trying to find a solution to my problem but with no luck, hope I get some answers here. I want to use AME in my custom workflow. How do I go about it? I am finding articles which says use ame_api2.getnextapprovers.... but which

  • Configuring queue for Producer - first-available Consumer delivery

    Hello, Setting consumerFlowLimit to 1 consumerFlowThreshold to 0 doesn't appear to be enough to ensure that messages from a queue are delivered to the first available consumer. We are trying to implement a classic Producer(s) -> Consumer(s) job distr

  • Jnlp .jar download

    Hi, I am making a java web start application. I have so many jar files, which are being used by that application...I am adding the jar files like this: <jar href="lib/appframework-1.0.3.jar"/> <jar href="lib/swing-worker-1.1.jar"/> Actually When I tr

  • To return the grey color of letters on the iphone keybord

    Is it possible to return the grey color of letters on the iphone keybord & full screen image of the person calling?