Multi Word Fuzzy

If my search text contains one word the query brings the results. If it contains more it gives error ORA-20000 ORACLE TEXT ERROR DRG-50901 TEXT QUERY PARSER SYNTAX ERROR.
Here's the query
SELECT DISTINCT D.DOC_ID,
DOCUBANK.GET_FOLDER( IC.FOLDER_ID ) FOLDER,
IC.INDEX_CARD
FROM DOCS D, INDEX_CARDS IC,
DOC_INDEX_FIELDS DIF
WHERE D.DOC_ID = DIF.DOC_ID
AND D.INDEX_CARD_ID = IC.INDEX_CARD_ID
AND ( (UPPER(DIF.VALUE) LIKE '%'||UPPER(:P10_SEARCH_TEXT)||'%'
OR UPPER(D.REMARKS) LIKE '%'||UPPER(:P10_SEARCH_TEXT)||'%')
OR CONTAINS (theBfile, 'fuzzy (' || :P10_SEARCH_TEXT ||')') > 0 )

You need to apply the fuzzy to each word. You can do so by replacing the single spaces in the middle as shown below. If you have double spaces, you will need to replace those first.
CONTAINS (theBfile, 'fuzzy (' || REPLACE (:P10_SEARCH_TEXT, ' ', ') fuzzy(') || ')') > 0

Similar Messages

  • In Keyword List panel, need to support quotes for AND'ing multi-word keyword searches

    As far as I know (and read around), there's no way to search multi-word keywords in the keywords list panel using the "Filter Keywords" box. i.e. If I want to search for the "Great Blue Heron" keyword in a large animal keywords list I have, Lightroom will OR the three words instead of AND'ing them like Aperture does more intuitively. Adding quotes like "Great Blue Heron" doesn't work either. Again this is to filter a large keyword lists through the "Filter Keywords" box in the Keywords List panel.
    Am I missing something? Is it possible to AND multi-word keywords?
    Thanks.

    Rob,
    as far as I know spaces are also contained and allowed in controlled vocabularies (e.g. for the "official" names of animals 'little panda' for example and plants). I'm using spaces for names very often. As a prof. photographer I need to write captions for all of my images before sending them to my agency with WHEN/WHAT/WHERE/WHO etc. So when shooting persons very often or regular (e.g. politicians or athletes) I started years ago to create keywords and hierarchies for them. So it is much easier and more comfortable to assign them later.
    Please check out PhotoMechanic or IMatch. These progs doesn't have any problems with spaces in keywords and keyword searches...
    BTW: when using a space in a search I expect that the default behaviour of such a space is a locical AND.
    Lars

  • How to Create a Multi Word Keyword

    How do you join a multi-word keyword so it is recognized as one keyword? i.e. If you want "New York", not "New" and "York." Do you put it in quotes? Isolate it with commas? Other?
    Ocean View
    Ocean Front
    Over the Water
    I try to do this in Library Mode, Keyword Creation box, I get 2 words.
    Example, I type Los Angeles and get:  Angeles, Los
    Nothing I try works.  I know it is common since I imported 200,000 images and I see lots of word combos used as keywords.
    I read the manual, looked at tutorials, read an existing thread on this, can't find the simple answer.
    I am about to start keywording my 200,000 images from the last 12 years, I need to learn this at the get go...
    How to friends?
    Dale Dreher
    Los Angeles
    [email protected]

    In my experience, the keyword entry boxes (for adding keywords), properly treat spaces as data.
    You may need to adjust your preferences (Interface tab):
    When searching for said keywords after entry: not so much - Lr treats spaces as delimiter, not data - not as part of the search term...
    I use SpaceUrchin, some people use AnyFilter, for finding metadata with spaces in it.

  • Smart Collection matching a multi-word Keyword

    I have the following multi-word keywords:
    "through the years"
    "kelly through the years"
    "mike through the years"
    I want to create a smart collection which only matches if the keyword is "through the years".  I do not want the smart collection to match the other two.
    Is this possible?

    I agree that this is a design oversight that should be corrected. However, one could argue that a keyword entirely contained in another should be represented by a hierarchy. While the OP does not make it clear what the relationship is between "through the years" alone and "kelly through the years" it would seem that the concept of "kelly through the years" would be better represented with keyword beneath "through the years" and as such would not need to contain the string "through the years".
    Also the OP states that the keyword "Kelly" exists on it's own and is distinct from "kelly through the years". It is not clear to me why just the keywords "through the years" and "Kelly" could not exist as flat keyword (no hierarchy). To achieve the concept of "kelly through the years" you would apply both. Then a simple AND condition would find the desired images.
    In short I think this is a case of a flawed keyword hierarchy.
    Again I agree that an exact match option should be provided.
    -Josh

  • An add on or feature which could do a multi word search ?

    On firefox, if there was an addon or a feature which could do multi word / multi string search.
    Lets say we could add one more find bar or better, add multiple find bars.
    thank you

    Search WP
    https://addons.mozilla.org/en-US/firefox/addon/searchwp/

  • How Separate Keywords?   How Join Multi-Word Keywords?

    1. How are Keywords required to be separated? Is a space sufficient or is a comma or something else required?
    2. How do you join a multi-word keyword so it is recognized as one keyword? i.e. If you want "New York", not "New" and "York." Do you put it in quotes? Isolate it with commas? Other?

    Yes, "New York" should come through as one Keyword. ( At least "Grand Canyon" does on mine.)
    The "user manual": My mistake, I should have written "User Guide". Oops!
    It is essentially the same as the help you get from the Menu>Help>Lightroom Help.
    But it is a .PDF guide that I find easier to navigate and can bookmark.
    You should have gotten a copy with your Lightroom Download but you can download another copy with Menu>Help>Help Resources Online and click on the PDF link.
    Best of Luck
    N

  • K7N2 Delta2 - Multi-Word DMA Mode 2

    Well, I was having problems getting windows XP to access my Seagate SATA 120 Gig Hard Drive at anything other than Multi-Word DMA Mode 2.  Finally figured out what I had to do. After messing with cables and SATA connections and generally mucking around for several days, I decided, just for giggles, to enable RAID.    
    Did not want to run RAID configuration but it worked.  The listing in windows Device Manager now shows the drive as Ultra DMA Mode 6.  When you enable RAID in BIOS make sure to go in and enable it for SATA as well (consult manual).  When I rebooted it asked to hit F10 to set up RAID, this I ignored.  Finished booting into windows and new hardware wizard started up.  Inserted floppy disk (included in Motherboard bundle) with the NVIDIA raid drivers. That was all.  I expect that if you are experiencing similar problems with ATA disks, it might work there too.  Hmmm, maybe I will give that a try next! 
    I had sent a number of email to tech support and they never mentioned this, food for thought!

    Another update just came in from MSI support;
    Quote
    Would you please follow the steps below to verify?
    1.       connect to the SATA HDD to SATA1 on the MB;
    2.       boot system up and enter BIOS, Load Optimized defaults; set Integrated PeripheralsàOnboard DeviceàSerial ATAàEnabled;Save&exit setup;
    3.       enter OS, go to Device Manager, expand IDE ATA/ATAPI Controllers, right click NVIDIA nForce2
    SATA Controller and select Properties,choose Primary Channel,then check what transfer mode the SATA HDD works at. We suggest you capture the picture and send it to us. Thanks!
    Well, since I was already connected to SATA1 I decided, why not.  Maybe third time is a charm (installing the NVIDA drivers that is).  So I downloaded the drivers from their link, installed, and rebooted.  I now have NVidia MCPS2S Parallel ATA Controller (v2.6) and NVidia MCPS2S Serial ATA Compatible Controller (v2.6) in the device manager under "IDE ATA/ATAPI controllers".
    When I checked the details of the Serial ATA controller the Seagate drive shows up as Serial ATA DMA for transfer mode. When I checked the Parallel controller my IDE drive shows up as Ultra DMA 5 - Ultra 100 for transfer mode. Looks like all is good now and as it should be.
    NOTE: had to disable RAID on a reboot to get drive to show up in Windows...hmmm.  It worked what can I say!
    Thanks to the people at MSI support for convincing me to install the NVidia driver set again.   
    P.S. NVIDIA nForce2 System Drivers for MCP2S
    God I like it when a plan comes together!  Hooah! 

  • Order of words, fuzzy and utl_match

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    create table category(cat_id number(20),cat_type varchar2(3000));
    create table category_match(cat_id number(20),cat_type varchar2(3000));
    Insert into category (CAT_ID,CAT_TYPE) values (12790,'AUTO CONSULTANTS');
    INSERT INTO CATEGORY (CAT_ID,CAT_TYPE) VALUES (23803,'AUTO CONSULTANT');
    Insert into category (CAT_ID,CAT_TYPE) values (23804,'CONSULTANT FOR AUTO FINANCE');
    Insert into category_match (CAT_ID,CAT_TYPE) values (12790,'AUTO CONSULTANTS');
    INSERT INTO CATEGORY_match (CAT_ID,CAT_TYPE) VALUES (23803,'AUTO CONSULTANT');
    Insert into category_match (CAT_ID,CAT_TYPE) values (23804,'CONSULTANT FOR AUTO FINANCE');
    CREATE INDEX "LOOKING4"."MYINDEX" ON "CATEGORY_MATCH"
        "CAT_TYPE"
      INDEXTYPE IS "CTXSYS"."CONTEXT" ;
    CREATE INDEX "LOOKING4"."CAT_TYPE_IDX" ON "CATEGORY"
        "CAT_TYPE"
      INDEXTYPE IS "CTXSYS"."CTXCAT" ;
    select cat_id,CAT_TYPE,UTL_MATCH.edit_distance_similarity(CAT_TYPE,'AUTO CONSULTANT') from
    select * from category where catsearch(cat_type,
    '<query>
          <textquery grammar="context">
          <progression>
          <seq>auto consultant</seq>
          <seq>?(auto) and ?(consultant)</seq>
            </progression>
            </textquery>
    </query>'
    ,NULL)>0
    )where rownum<5
    23803     AUTO CONSULTANT     100
    12790     AUTO CONSULTANTS     94
    23804     CONSULTANT FOR AUTO FINANCE     26
    update category set cat_type='CONSULTANTS AUTO' WHERE CAT_ID=12790
    select cat_id,CAT_TYPE,UTL_MATCH.edit_distance_similarity(CAT_TYPE,'AUTO CONSULTANT') from
    select * from category where catsearch(cat_type,
    '<query>
          <textquery grammar="context">
          <progression>
          <seq>auto consultant</seq>
          <seq>?(auto) and ?(consultant)</seq>
            </progression>
            </textquery>
    </query>'
    ,NULL)>0
    )where rownum<5
    23803     AUTO CONSULTANT     100
    12790     CONSULTANTS AUTO     32
    23804     CONSULTANT FOR AUTO FINANCE     26
    select score(1),cat_id,cat_type from CATEGORY_MATCH where cat_id in(
    select cat_id from category where catsearch(cat_type,
    '<query>
          <textquery grammar="context">
          <progression>
          <seq>auto consultant</seq>
          <seq>?(auto) and ?(consultant)</seq>
            </progression>
            </textquery>
    </query>'
    ,NULL)>0) AND
    contains(cat_type,'?(auto) and ?(consultant)',1)>0
    9     23803     AUTO CONSULTANT
    9     12790     AUTO CONSULTANTS
    9     23804     CONSULTANT FOR AUTO FINANCEi have been using catsearch to use progressive relaxation
    there are many "cat_types" like "cat_id" =23803,12790 ,the order of words in a sentence changes
    there are upto 10 words in each row of "cat_types" column
    among others i have referred
    Achieving functionality of many preferences using one context index
    and
    Re: Fuzzy search - more accurate score??
    there is very less possibility of repetition of words in a row
    utl match seems to work perfect only when the order of appearance of words is same
    if you can suggest a way to get a very close score for cat_id 23803 and 12790 it would be much appreciated
    thanks and regards

    select *
        FROM   (SELECT score(1),score(2),score(3),score(4),GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) g_scores,
                      UTL_MATCH.EDIT_DISTANCE_SIMILARITY (CAT_TYPE,'AUTO CONSULTANT') EDS,
                      CAT_ID, CAT_TYPE
                  FROM   category_match
                  WHERE  CONTAINS (cat_type, 'solar water heater* 10 * 10', 1) > 0
                  OR     CONTAINS (cat_type, 'NEAR ((?solar, ?water ,?heater), 0, TRUE) * 10 * 10', 2) > 0
                 OR     CONTAINS (cat_type, 'NEAR ((?solar, ?water ,?heater), 0, FALSE) * 10 * 10', 3) > 0
                 or     CONTAINS (CAT_TYPE, '(?solar AND ?water AND ?heater) * 10 * 10', 4) > 0
                 order  by g_scores desc, EDS desc)
       WHERE  ROWNUM<100
    100     100     100     100     100     23     4                  SOLAR WATER HEATER-ANU
    100     100     100     100     100     22     26901          SOLAR WATER HEATER SUDARSHAN SAUR
    100     100     100     100     100     21     30                  SOLAR WATER HEATER INDUSTRIAL
    100     100     100     100     100     20     17379          SOLAR WATER HEATER DEALERS-TATA
    100     100     100     100     100     20     26906          SOLAR WATER HEATER NUETECH
    100     100     100     100     100     20     11465          SOLAR WATER HEATER DEALERS-ANU
    100     100     100     100     100     20     21                  SOLAR WATER HEATER-ZING TATA BP
    100     100     100     100     100     20     11463          SOLAR WATER HEATER MANUFACTURERS-ANU
    100     100     100     100     100     19     8                  SOLAR WATER HEATER MANUFACTURERS
    100     100     100     100     100     19     23                  SOLAR WATER HEATER EVACUATED TUBE
    100     100     100     100     100     19     49                  SOLAR WATER HEATER-HOTMAX NOVA TATA BP
    100     100     100     100     100     19     13357          SOLAR WATER HEATER INDUSTRIAL DEALERS
    100     100     100     100     100     18     16300          SOLAR WATER HEATER-TECHNOMAX
    100     100     100     100     100     18     9                  SOLAR WATER HEATER DEALERS-TATA BP
    100     100     100     100     100     18     20                  SOLAR WATER HEATER-ZING
    100     100     100     100     100     18     18                  SOLAR WATER HEATER-ORB SOLAR
    100     100     100     100     100     18     22552          SOLAR WATER HEATER-KOTAK URJA
    100     100     100     100     100     18     26908          SOLAR WATER HEATER SUPREME
    100     100     100     100     100     17     26907          SOLAR WATER HEATER TECHNOMAX"
    100     100     100     100     100     17     13322          SOLAR WATER HEATER DISTRIBUTORS
    100     100     100     100     100     17     22                  SOLAR WATER HEATER-ETC TATA BP
    100     100     100     100     100     17     48                  SOLAR WATER HEATER-VAJRA PLUS TATA BP
    100     100     100     100     100     17     27084          SOLAR WATER HEATER SALES
    100     100     100     100     100     16     16236          SOLAR WATER HEATER DEALERS-RACOLD
    100     100     100     100     100     16     15                  SOLAR WATER HEATER-NUTECH
    100     100     100     100     100     16     1                  SOLAR WATER HEATER DEALERS
    100     100     100     100     100     15     2                  SOLAR WATER HEATER DEALERS-TATA BP SOLAR
    100     100     100     100     100     15     31                  SOLAR WATER HEATER DOMESTIC
    100     100     100     100     100     15     13                  SOLAR WATER HEATER DEALERS-V GUARD
    100     100     100     100     100     14     17                  SOLAR WATER HEATER-KAMAL SOLAR
    100     100     100     100     100     13     11467          SOLAR WATER HEATER DEALERS-GILMA
    100     100     100     100     100     13     19                  SOLAR WATER HEATER-GILMA
    100     100     100     100     100     13     10                  SOLAR WATER HEATER REPAIRS & SERVICES-TATA SOLAR
    100     100     100     100     100     12     10578          SOLAR WATER HEATER
    100     100     100     100     100     11     3                  SOLAR WATER HEATER REPAIRS & SERVICES
    0      0     100     100     98     25     10120          WATER HEATER SOLAR INDUSTRIAL
    0      0     100     100     98     20     12953          WATER HEATER SOLAR-RACOLD
    0      0     100     100     98     17     10119          WATER HEATER SOLAR RESIDENCIAL
    {code}
    the query is working accurately technically
    but is there any way to get 10578 on top
    the requirement is
    ---first
    solar water heater
    solar water heater dealers
    solar water heater manufacturers
    solar water heater distributors
    solar water heater sales
    solar water heater repairs and servicing
    ---followed by
    SOLAR WATER HEATER REPAIRS & SERVICES-TATA SOLAR
    SOLAR WATER HEATER-KAMAL SOLAR
    SOLAR WATER HEATER DEALERS-TATA BP SOLAR   etc etc
    so if the end user types in "solar water" the top row would have a row from the table that has what the end user has entered followed by "dealers" or "manufacturers" or "distributors" or "sales" or "repairs and servicing"
    so if a row contains "solar water dealer" it shows up on top
    or(if "solar water dealer" is not there and "solar water manufacturers" or  "solar water distributors" etc is not present)
    a row from the table that has what the end user has entered PLUS "heater" followed by "dealers" or "manufacturers" or "distributors" or "sales" or "repairs and servicing"
    so "solar water heater dealers" shows up on top
    these words - "dealers" , "manufacturers" , "distributors" , "sales" , "repairs and servicing"  etc remain constant
    what i am using right now is
    {code}
    create or replace
    procedure HOME_OLD
    p_cat_type in varchar2,
    P_LOC IN NUMBER,
    P_MAX IN NUMBER,
    P_MIN IN NUMBER,
    P_OUT OUT SYS_REFCURSOR
    as
    VARIAB varchar2(500);
    VARIAB2 varchar2(500);
    VARIAB3 varchar2(500);
    VARIAB4 varchar2(500);
    begin
    --VARIAB2:='?'||replace(P_CAT_TYPE,' ',', ?');
    --VARIAB3:='?'||replace(P_CAT_TYPE,' ',' ?');
    --DBMS_OUTPUT.PUT_LINE(VARIAB2);
    --DBMS_OUTPUT.PUT_LINE(VARIAB3);
    SELECT stragg(cat_id) into variab
       FROM   (SELECT GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) score,
                                      CAT_ID, CAT_TYPE
                  FROM   category_match
                  -- exact words in order:
                  WHERE  CONTAINS (cat_type,get_basic(P_CAT_TYPE), 1) > 0
                  -- similar words next to each other in order:
                  OR     CONTAINS (cat_type, get_near_syntax(P_CAT_TYPE), 2) > 0
                 -- similar words next to each other in any order:
                 OR     CONTAINS (cat_type, get_near_syntax_desc(P_CAT_TYPE), 3) > 0
                 -- similar words anywhere in any order:
                 OR     CONTAINS (cat_type, get_anywhere(P_CAT_TYPE), 4) > 0
                 order  by score desc)
       where  rownum < 3;
    DBMS_OUTPUT.PUT_LINE(VARIAB);
    open p_out
       FOR select * from(select rownum r,name,address1,telephone,mobile,CAT_TYP,cat_id,
    (case when  address2=p_loc and ACT_STATUS='Y'  then '1' when  address2=p_loc  then '2' when address2 in
    (select NEARBY_LOC from NEAR_BY where LOCALITY_ID=p_loc) and ACT_STATUS='Y' 
    then '3' when ADDRESS2 in (select NEARBY_LOC from NEAR_BY where LOCALITY_ID=p_loc)
    then '4' when ACT_STATUS='Y' and address2<> p_loc then '5' else '6' end) as marker
      FROM TEST_TEST
      WHERE
      CAT_ID in(select * from table(STRING_TO_TABLE_NUM(variab))) and rownum<P_MAX order by marker) where r>P_MIN;
    IF VARIAB IS NULL THEN
    OPEN P_OUT
       FOR SELECT * FROM(SELECT rownum r,name,address1,telephone,mobile,CATS
       FROM   (SELECT GREATEST (SCORE(1), SCORE(2) - 1, SCORE(3) - 2, SCORE(4) - 3) score,
                                      NAME,ADDRESS1,TELEPHONE,MOBILE,CATS
                  FROM   TEST_TEST2
                  -- exact words in order:
                  WHERE  CONTAINS (NAME,get_basic(P_CAT_TYPE), 1) > 0
                  -- similar words next to each other in order:
                  OR     CONTAINS (NAME, get_near_syntax(P_CAT_TYPE), 2) > 0
                 -- similar words next to each other in any order:
                 OR     CONTAINS (NAME, get_near_syntax_desc(P_CAT_TYPE), 3) > 0
                 -- similar words anywhere in any order:
                 OR     CONTAINS (NAME, get_anywhere(P_CAT_TYPE), 4) > 0
                 ORDER  BY SCORE DESC)
       WHERE  ROWNUM < P_MAX)where r>P_MIN;
    END IF;
    end home_old;
    {code}
    the flow is to find what the end user has entered in category table ,if a match exists,find all reg_ids from test_test materialized view that have selected the matched cat_id..
    the test_test materialized view lists each company cat_id-selected-by-that-company number of times 
    if no match is found in category table what the end user has entered could be a company so  a search in name column of test_test2 materialized view..
    this materialized view has one entry for each  company
    {code}
    create or replace
    FUNCTION GET_BASIC(P_CAT_TYPE VARCHAR2)
        RETURN VARCHAR2
      is
      VARIAB2 VARCHAR2(3000);
          begin
    VARIAB2:='{'||P_CAT_TYPE||'}*10*10'; 
    return(VARIAB2);
    END;
    create or replace
    FUNCTION GET_NEAR_SYNTAX(P_CAT_TYPE VARCHAR2)
        RETURN VARCHAR2
      is
      VARIAB2 VARCHAR2(3000);
          begin
    VARIAB2:='NEAR((?{'||replace(P_CAT_TYPE,' ','}, ?{')||'}),10,TRUE)*10*10'; 
    return(VARIAB2);
    END;
    create or replace
    FUNCTION GET_NEAR_SYNTAX_DESC(P_CAT_TYPE VARCHAR2)
        RETURN VARCHAR2
      is
      VARIAB2 VARCHAR2(3000);
          begin
    VARIAB2:='NEAR((?{'||replace(P_CAT_TYPE,' ','}, ?{')||'}),10,FALSE)*10*10'; 
    return(VARIAB2);
    END;
    {code}
    can anything be done to ameliorate this whole flow
    can anything be done to eliminate the near_by and act_status and locality checking in ordering by "marker" clause
    below is the materialized view creation ddl
    SELECT IN_V.REG_ID,
        IN_V.NAME,
        IN_V.TELEPHONE,
        IN_V.MOBILE,
        IN_V.ADDRESS1,
        IN_V.ADDRESS2,
        IN_V.ACT_STATUS,
        resec.cat_id,
        UPPER(STRAGG(IN_V.CAT_TYPE)) AS cat_typ
      FROM
        (SELECT RSC.REG_ID,
          R.NAME,
          RSC.CAT_ID,
          C.CAT_TYPE,
          R.ADDRESS1,
          R.ADDRESS2,
          R.ACT_STATUS,
          R.TELEPHONE,
          R.MOBILE,
          ROW_NUMBER() OVER (PARTITION BY RSC.REG_ID ORDER BY rsc.reg_id) AS TT
        FROM REG_SEG_CAT RSC,
          category C,
          REGISTRATION R
        WHERE C.CAT_ID=RSC.CAT_ID
        AND R.REG_ID  =RSC.REG_ID
        ) IN_V,
        REG_SEG_CAT RESEC
      WHERE in_v.reg_id=resec.reg_id
      AND IN_V.TT      <6
      GROUP BY IN_V.REG_ID,
        IN_V.NAME,
        IN_V.TELEPHONE,
        IN_V.MOBILE,
        IN_V.ADDRESS2,
        IN_V.ACT_STATUS,
        IN_V.ADDRESS1,
        resec.cat_id;
      and sql>desc test_test
    REG_ID
    NAME
    TELEPHONE
    MOBILE
    ADDRESS1
    ADDRESS2
    ACT_STATUS
    CAT_ID
    CAT_TYP
    please let me know if you need more info
    Edited by: 946207 on Apr 19, 2013 6:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using multi-word keywords in "Find"

    Let's say I have a keyword: "Downtown LA", and another keyword, "Downtown SLC". If I use the Lightroom "Find" option to search for "Downtown LA", it will actually find any images with "Downtown" as part of its keywording, including the "Downtown SLC" images.
    I tried wrapping the keyword phrase in quotes to see if that would give me an exact phrase search, but it doesn't work that way apparently. I know I could drop down to the keyword browser, but let's say I'm looking for all images with both the "Downtown LA" keyword, AND the "Family Vacation" keyword. How would I search for such an intersection when the "find" menu locks in on individual words rather than the entire keyword phrase?

    >You might want to check out the Keyboard Shortcuts and Search Rules document in the FAQ on this forum. There is a section which contains all the search arguments which allow you to do some pretty fancy stuff, including finding just "Salt Lake City"
    I have a copy of that...it doesn't work.
    Text: Keywords
    Rule: Contains All
    Text Field: Black Canyon
    What I expect are photos with a keyword containing "black" and "canyon".
    What I get are any photo with a keyword or any of its parents containing "black" and a keyword or any of its parents containing "canyon".
    So, in addition to photos of Black Canyon Dam and photos taken in Back Canyon I also get photos of Black Birds taken in Canyon County.
    This can be "fixed" by changing "Black birds" to "Blackbirds" and surrounding "Black" in the text field with plus signs...this is silly.
    The space character is a ligitimate keyword character and ought to be treat as such if it does not appear at the beginning or end of a keyword.
    The keyword entry panel uses commas as delimiters. Why are spaces used as delimiters in the Find panel?
    How about the same delimiter (a comma) everywhere?
    Winston Mitchell
    Boise, Idaho

  • Crash when adding new multi-word event to month view

    Recently updated(?) to Leopard from 10.4.11. Now, adding a new event to iCal when in month view often causes a crash. Sequence is:
    0) click in desired date box to start new event
    1) type first word of event, type space, start typing second word
    2) input freezes after a few chars and acts as if I had exited the input box
    3) reclick on the input to edit/complete it
    4) * crash *
    Log shows:
    Nov 29 16:20:44 dhcp108 iCal[7097]: * -[NSCFString occurrenceItemsForKey:]: unrecognized selector sent to instance 0x26271fe0
    Nov 29 16:20:48: --- last message repeated 1 time ---
    Nov 29 16:20:48 dhcp108 ReportCrash[7099]: Formulating crash report for process iCal[7097]
    Nov 29 16:20:50 dhcp108 ReportCrash[7099]: Saved crashreport to /Users/chuck/Library/Logs/CrashReporter/iCal2007-11-29-162045MacPro.crash using uid: 502 gid: 20, euid: 502 egid: 20
    Nov 29 16:20:49 dhcp108 com.apple.launchd[148] ([0x0-0x351351].com.apple.iCal[7097]): Exited abnormally: Segmentation fault
    I've sent crash report to Apple. Has anyone else seen/found a fix for this?
    Regards,
    Chuck

    This is also driving me nuts... Actually, I have not even figured out how to even enter a new appointment in month view. It used to be double-click, enter name, hit <tab> and fill out he rest in the panel, but this routine does not work any more.

  • How to pass multiple words as a search argument on the Acrobat Command Line?

    I am trying to launch Acrobat using a multi-word search parameter on a Windows XP box. However, Acrobat is stripping the spaces between words. For example, I am trying to load Acrobat and have it search for the phrase "vision changes" using a Command Line like this:
    C:\>"C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" /A search="vision changes" c:\temp\theDocument.pdf
    When Acrobat loads, it shows the search panel with the phrase "visionchanges" in it. The space between the two words is gone and naturally it can't find the phrase.
    I have read both the PDF Command Line parameter documents I could find. This format works fine for URLs, but for Shelling Acrobat on the local system, it doesn't work because of the space stripping problem. I have tried lots of different variants of quote characters, escape characters, even HTML characters like "&nbps;", but nothing works.
    Does anyone have an answer?
    For the curious here are links to the two PDF documents I found that cover the command line arguments:
    http://www.adobe.com/devnet/acrobat/pdfs/PDFOpenParameters.pdf
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Thanks,
    Robert

    Hey Robert,
    Did you note that in the "pdf_open_parameters.pdf" document, it says that the value of the Search parameter is treated as a list of (single) words, not as a string of words (phrase)?
    It says it explicitly: "You can search only for single words. You cannot search for a string of words."
    PS: I'm replying to your query as a sort of thank you for posting the links to those documents. It helped me to find the way of conditioning how to open a pdf.

  • How can you detect all words and phrases in a text document using java?

    Is there some java API which would help me extract all words, multi-word phrases, punctuations in an English text document? I would also like to get the order in which they appear with sentence detection. I've been searching for this in java NLP packages, but haven't found anything yet.
    Any help would be appreciated.
    Thanks,
    Ajith

    I don't understand what you actually want, but if your on about having a file and splitting it up into sentences then i would look into either psudocode or parsing strings, theres not a java api as far as i know that does anything like you want, you would have to write it yourself or find a project someone else has made.

  • How do I find duplicate words in a Numbers spreadsheet?

    Hello, I've created my first document on Numbers and am trying to figure out how to find duplicate words. Ideally, a list of words that repeat in the document and how many times. Is this possible? Thank you in advance for the advice

    It's easy enough to find and count duplicate entries, especially if they are all in a single column, but if you want to count individual words within multi word entries, the problem is more complicated.
    Here's an example for the 'simple' case, using a familiar 155 word passage from English literature.
    The words in the passage are separated into a single line for each word, and stripped of all punctuation. This may be done in Pages, or in Text edit, or in pretty much any word processing software or text editor. Paste the passage into a WP or text document, then use the application's Find/Replace feature to replace all of the spaces with returns. I would also do a second pass replacing all double returns with single returns, then repeat that until Find/Replace reported replacing zero occurrences.
    Punctuation was stripped using Find/Replace
    The prepared list was pasted into column A of a Numbers table.
    Formulas:
    B2: =COUNTIF($A$1:A2,A2)
    C2: =IF(AND(B>1,B=COUNTIF($A,A2)),ROW()-1,999999)
    Fill both down their respective columns to the end of the table.
    The small table is inserted as a Basic table using the Tables button. It contains a Header row, but no Header columns.
    Formula:
    A2: =IFERROR(OFFSET(Table 1 :: $A$1,SMALL(Table 1 :: $C,ROW()-1),COLUMN()-1),"")
    Fill right into B2, then fill both down to the end of the table.
    Descriptions of the functions used, along with their syntax and at least one example of their use in a table are available in the Numbers '09 User Guide, which may be downloaded via the Help menu in Numbers.
    Regards,
    Barry
    PS: Regards to the late Mr. Shakespeare, and thank you for providing the text used.

  • Underlining just the word(s) in selected text string

    How do I get InDesign 2 or 3 to underline just the individual words selected and NOT the spaces?
    We work with legal documents and we have to style them exactly the way the judge has indicated (some underline everything, some just the words). This can become a time consuming endeavor when there are multi-worded court cases cited and sometimes over one hundred cites within one document.
    This was quick and easy under Quark, either from the control palette (click of a button) or the keyboard shortcut (Apple + shift + W). This shortcut closes the document in InDesign (even though the keyboard shortcut for that is supposed to be just Apple + W, both do the same thing). I could reassign the shortcut if I could find the action to link it too (but can't find the action even mentioned in the Help or the forums).
    Have checked under the Underline Options dialog, but there isn't anything there that would solve this problem.
    If there isn't a direct way to do it in InDesign, is there some sort of plug-in available that anyone knows about?
    Thanks in advance.
    LRP2

    I don't believe there's a direct way to do it in Indesign. There are some shortcuts that help.
    In CS4 you can set up a GREP search to find Words, set Change Format to change "basic character format" to include underline, then do a replace all in selection. You can set up keyboard shortcuts for some of this, but a script would be even more convenient.
    Unfortunately, with the normal "Find" function, the "character" wildcard also seems to find spaces, and there isn't a "whole word" wildcard, so this won't work in CS2 or CS3.
    The best I can think of at the moment is: Underline the whole text. Set Find What to find spaces (^w), leave Change To blank but in the Change Format box, turn off underline on Basic Character Formatting. Close the dialog box. Then, placing the cursor at the beginning, press shift-F3 (the standard shortcut for "Replace with Change To text and find next") for each space in the sentence. You can zip through the section fairly quickly.
    This is really a job for scripting -- the script should change all characters in the selection to underline, then change all white space characters in the selection back to non-underline. Scripts can be assigned a keyboard shortcut for ultimate convenience.
    Rodney

  • Preview thumbnail sidebar fuzzy

    Not sure what changed on my system but the sidebar in preview for thumbnails is for lack of a better word fuzzy.  see attached.  Any idea of what is going on here or better yet what the fix is?
    OS: Yosemite
    Macbook Pro 15 inch, early 2011
    Processor: 2 GHz Intel Core i7
    Memory: 8 GB 1333 MHz DDR3
    Graphics: AMD Radeon HD 6490M 256 MB
    Preview App Version: Version 8.0 (859.7)

    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Remove the following. You may not find them all.
    Containers/com.apple.Preview
    Containers/com.apple.quicklook.ui.helper
    Preferences/com.apple.Preview.LSSharedFileList.plist
    Preferences/com.apple.Preview.SandboxedPersistentURLs.LSSharedFileList.plist
    Saved Application State/com.apple.Preview.savedState
    Credit Linc Davis  for this solution.

Maybe you are looking for